From: Chris Lattner Date: Mon, 26 Nov 2001 16:47:10 +0000 (+0000) Subject: New Method isLosslesslyConvertableTo X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=283f4e5ac413b952354e3bc5233c65f09b59bd52;p=oota-llvm.git New Method isLosslesslyConvertableTo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1330 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Type.h b/include/llvm/Type.h index cc682669ce5..04780e9e3c2 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 //