From 9d1784afff3ee257e6a357ccebf0c8bc6631ac16 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 26 Nov 2001 16:47:10 +0000 Subject: [PATCH] New Method isLosslesslyConvertableTo llvm-svn: 1330 --- include/llvm/Type.h | 5 +++++ 1 file changed, 5 insertions(+) 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 //