projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c0cdc0
)
New Method isLosslesslyConvertableTo
author
Chris Lattner
<sabre@nondot.org>
Mon, 26 Nov 2001 16:47:10 +0000
(16:47 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 26 Nov 2001 16:47:10 +0000
(16:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1330
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Type.h
patch
|
blob
|
history
diff --git
a/include/llvm/Type.h
b/include/llvm/Type.h
index cc682669ce51c939501d1c71d6bd00011e0e1e8d..04780e9e3c2c99447a957bd9902af8653a513fc1 100644
(file)
--- a/
include/llvm/Type.h
+++ b/
include/llvm/Type.h
@@
-141,6
+141,11
@@
public:
//
inline bool isRecursive() const { return Recursive; }
+ // isLosslesslyConvertableTo - Return true if this type can be converted to
+ // 'Ty' without any reinterpretation of bits. For example, uint to int.
+ //
+ bool isLosslesslyConvertableTo(const Type *Ty) const;
+
//===--------------------------------------------------------------------===//
// Type Iteration support
//