[llvm-commits] CVS: llvm/utils/TableGen/InstrInfoEmitter.cpp
Chris Lattner
sabre at nondot.org
Mon Nov 6 15:53:46 PST 2006
Changes in directory llvm/utils/TableGen:
InstrInfoEmitter.cpp updated: 1.49 -> 1.50
---
Log message:
Mark predicate operands as such in operand info.
---
Diffs of the changes: (+4 -0)
InstrInfoEmitter.cpp | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/utils/TableGen/InstrInfoEmitter.cpp
diff -u llvm/utils/TableGen/InstrInfoEmitter.cpp:1.49 llvm/utils/TableGen/InstrInfoEmitter.cpp:1.50
--- llvm/utils/TableGen/InstrInfoEmitter.cpp:1.49 Mon Nov 6 17:49:51 2006
+++ llvm/utils/TableGen/InstrInfoEmitter.cpp Mon Nov 6 17:53:31 2006
@@ -100,6 +100,10 @@
// Ptr value whose register class is resolved via callback.
if (OpR && OpR->getName() == "ptr_rc")
Res += "|M_LOOK_UP_PTR_REG_CLASS";
+
+ // Predicate operands.
+ if (j == 0 && Inst.OperandList[i].Rec->isSubClassOf("PredicateOperand"))
+ Res += "|M_PREDICATE_OPERAND";
// fill in constraint info.
Res += ", " + Inst.OperandList[i].Constraint;
More information about the llvm-commits
mailing list