New Method isLosslesslyConvertableTo
authorChris Lattner <sabre@nondot.org>
Mon, 26 Nov 2001 16:47:10 +0000 (16:47 +0000)
committerChris 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

index cc682669ce51c939501d1c71d6bd00011e0e1e8d..04780e9e3c2c99447a957bd9902af8653a513fc1 100644 (file)
@@ -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
   //