summaryrefslogtreecommitdiff
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-26 16:47:10 +0000
committerChris Lattner <sabre@nondot.org>2001-11-26 16:47:10 +0000
commit283f4e5ac413b952354e3bc5233c65f09b59bd52 (patch)
treeb4a73ffe6c00732c698ee005a40ca25a713aaf33 /include/llvm/Type.h
parent7c0cdc0cc813b0db8bb1348590443d24534cda3d (diff)
downloadllvm-283f4e5ac413b952354e3bc5233c65f09b59bd52.tar.gz
llvm-283f4e5ac413b952354e3bc5233c65f09b59bd52.tar.bz2
llvm-283f4e5ac413b952354e3bc5233c65f09b59bd52.tar.xz
New Method isLosslesslyConvertableTo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r--include/llvm/Type.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index cc682669ce..04780e9e3c 100644
--- 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
//