Mark predicate operands as such in operand info.
authorChris Lattner <sabre@nondot.org>
Mon, 6 Nov 2006 23:53:31 +0000 (23:53 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 6 Nov 2006 23:53:31 +0000 (23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31483 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/InstrInfoEmitter.cpp

index 9202308ffdb1abbe199004936920038d4998605d..0c5c4552035954eb3113a09f1bdaf6b9fbe6cd2c 100644 (file)
@@ -100,6 +100,10 @@ InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) {
         // 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;