[llvm-commits] CVS: llvm/include/llvm/Instruction.h

Tanya Brethour tbrethou at niobe.cs.uiuc.edu
Wed Jul 30 23:07:01 PDT 2003


Changes in directory llvm/include/llvm:

Instruction.h updated: 1.43 -> 1.44

---
Log message:

Added function to determine if an Instruction may trap.


---
Diffs of the changes:

Index: llvm/include/llvm/Instruction.h
diff -u llvm/include/llvm/Instruction.h:1.43 llvm/include/llvm/Instruction.h:1.44
--- llvm/include/llvm/Instruction.h:1.43	Mon Jul 28 11:53:28 2003
+++ llvm/include/llvm/Instruction.h	Wed Jul 30 23:05:50 2003
@@ -97,7 +97,13 @@
   bool isCommutative() const { return isCommutative(getOpcode()); }
   static bool isCommutative(unsigned op);
 
-
+  /// isTrappingInstruction - Return true if the instruction may trap.
+  ///
+  bool isTrappingInstruction() const {
+    return isTrappingInstruction(getOpcode()); 
+  }
+  static bool isTrappingInstruction(unsigned op);
+  
   virtual void print(std::ostream &OS) const;
 
   /// Methods for support type inquiry through isa, cast, and dyn_cast:





More information about the llvm-commits mailing list