Changes in directory llvm/include/llvm/Target:

TargetInstrInfo.h updated: 1.125 -> 1.126
---
Log message:

Add a machine instruction flag indicating the instruction can clobber condition 
code / register(s) used to predicate instructions.

---
Diffs of the changes:  (+6 -0)

 TargetInstrInfo.h |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/include/llvm/Target/TargetInstrInfo.h
diff -u llvm/include/llvm/Target/TargetInstrInfo.h:1.125 
llvm/include/llvm/Target/TargetInstrInfo.h:1.126
--- llvm/include/llvm/Target/TargetInstrInfo.h:1.125    Tue May 29 13:30:54 2007
+++ llvm/include/llvm/Target/TargetInstrInfo.h  Wed Jun  6 05:13:55 2007
@@ -82,6 +82,9 @@
 // at any time, e.g. constant generation, load from constant pool.
 const unsigned M_REMATERIALIZIBLE = 1 << 13;
 
+// M_CLOBBERS_PRED - Set if this instruction may clobbers the condition code
+// register and / or registers that are used to predicate instructions.
+const unsigned M_CLOBBERS_PRED = 1 << 14;
 
 // Machine operand flags
 // M_LOOK_UP_PTR_REG_CLASS - Set if this operand is a pointer value and it
@@ -211,6 +214,9 @@
   bool isPredicable(MachineOpCode Opcode) const {
     return get(Opcode).Flags & M_PREDICABLE;
   }
+  bool clobbersPredicate(MachineOpCode Opcode) const {
+    return get(Opcode).Flags & M_CLOBBERS_PRED;
+  }
   bool isReMaterializable(MachineOpCode Opcode) const {
     return get(Opcode).Flags & M_REMATERIALIZIBLE;
   }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to