[llvm-commits] CVS: llvm/utils/TableGen/CodeGenInstruction.h CodeGenTarget.cpp InstrInfoEmitter.cpp

Evan Cheng evan.cheng at apple.com
Wed Jun 6 03:15:17 PDT 2007



Changes in directory llvm/utils/TableGen:

CodeGenInstruction.h updated: 1.27 -> 1.28
CodeGenTarget.cpp updated: 1.90 -> 1.91
InstrInfoEmitter.cpp updated: 1.59 -> 1.60
---
Log message:

Add clobbersPred - instruction that clobbers condition code / register which are used to predicate instructions.

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

 CodeGenInstruction.h |    1 +
 CodeGenTarget.cpp    |    1 +
 InstrInfoEmitter.cpp |    1 +
 3 files changed, 3 insertions(+)


Index: llvm/utils/TableGen/CodeGenInstruction.h
diff -u llvm/utils/TableGen/CodeGenInstruction.h:1.27 llvm/utils/TableGen/CodeGenInstruction.h:1.28
--- llvm/utils/TableGen/CodeGenInstruction.h:1.27	Wed May 16 15:45:24 2007
+++ llvm/utils/TableGen/CodeGenInstruction.h	Wed Jun  6 05:14:55 2007
@@ -97,6 +97,7 @@
     bool hasVariableNumberOfOperands;
     bool hasCtrlDep;
     bool noResults;
+    bool clobbersPred;
     
     /// ParseOperandName - Parse an operand name like "$foo" or "$foo.bar",
     /// where $foo is a whole operand and $foo.bar refers to a suboperand.


Index: llvm/utils/TableGen/CodeGenTarget.cpp
diff -u llvm/utils/TableGen/CodeGenTarget.cpp:1.90 llvm/utils/TableGen/CodeGenTarget.cpp:1.91
--- llvm/utils/TableGen/CodeGenTarget.cpp:1.90	Mon Jun  4 11:11:03 2007
+++ llvm/utils/TableGen/CodeGenTarget.cpp	Wed Jun  6 05:14:55 2007
@@ -360,6 +360,7 @@
   usesCustomDAGSchedInserter = R->getValueAsBit("usesCustomDAGSchedInserter");
   hasCtrlDep   = R->getValueAsBit("hasCtrlDep");
   noResults    = R->getValueAsBit("noResults");
+  clobbersPred = R->getValueAsBit("clobbersPred");
   hasVariableNumberOfOperands = false;
   
   DagInit *DI;


Index: llvm/utils/TableGen/InstrInfoEmitter.cpp
diff -u llvm/utils/TableGen/InstrInfoEmitter.cpp:1.59 llvm/utils/TableGen/InstrInfoEmitter.cpp:1.60
--- llvm/utils/TableGen/InstrInfoEmitter.cpp:1.59	Wed May 16 15:45:24 2007
+++ llvm/utils/TableGen/InstrInfoEmitter.cpp	Wed Jun  6 05:14:55 2007
@@ -241,6 +241,7 @@
   if (Inst.isCommutable) OS << "|M_COMMUTABLE";
   if (Inst.isTerminator) OS << "|M_TERMINATOR_FLAG";
   if (Inst.isReMaterializable) OS << "|M_REMATERIALIZIBLE";
+  if (Inst.clobbersPred) OS << "|M_CLOBBERS_PRED";
   if (Inst.usesCustomDAGSchedInserter)
     OS << "|M_USES_CUSTOM_DAG_SCHED_INSERTION";
   if (Inst.hasVariableNumberOfOperands)






More information about the llvm-commits mailing list