add a helper method
[oota-llvm.git] / include / llvm / Instructions.h
index d7e52d1d6aa021fe61d413531d44c273864ae042..03ce2467a50edbb59c7387db8d6fd51418941ed4 100644 (file)
@@ -498,6 +498,11 @@ public:
     : UnaryInstruction(Ty, Cast, S, Name, InsertAtEnd) {
   }
 
+  /// isTruncIntCast - Return true if this is a truncating integer cast
+  /// instruction, e.g. a cast from long to uint.
+  bool isTruncIntCast() const;
+  
+  
   virtual CastInst *clone() const;
 
   // Methods for support type inquiry through isa, cast, and dyn_cast: