[llvm-commits] [llvm] r37963 - in /llvm/trunk/utils/TableGen: CodeGenTarget.cpp InstrInfoEmitter.cpp

Evan Cheng evan.cheng at apple.com
Fri Jul 6 16:23:38 PDT 2007


Author: evancheng
Date: Fri Jul  6 18:23:38 2007
New Revision: 37963

URL: http://llvm.org/viewvc/llvm-project?rev=37963&view=rev
Log:
ImmutablePredicateOperand is no more.

Modified:
    llvm/trunk/utils/TableGen/CodeGenTarget.cpp
    llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp

Modified: llvm/trunk/utils/TableGen/CodeGenTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenTarget.cpp?rev=37963&r1=37962&r2=37963&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenTarget.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenTarget.cpp Fri Jul  6 18:23:38 2007
@@ -412,8 +412,7 @@
         NumOps = NumArgs;
 
       if (Rec->isSubClassOf("PredicateOperand")) {
-        if (!Rec->getValueAsBit("isImmutable"))
-          isPredicable = true;
+        isPredicable = true;
       }
     } else if (Rec->getName() == "variable_ops") {
       hasVariableNumberOfOperands = true;

Modified: llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp?rev=37963&r1=37962&r2=37963&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp Fri Jul  6 18:23:38 2007
@@ -107,8 +107,7 @@
 
       // Predicate operands.  Check to see if the original unexpanded operand
       // was of type PredicateOperand.
-      if (Inst.OperandList[i].Rec->isSubClassOf("PredicateOperand") &&
-          !Inst.OperandList[i].Rec->getValueAsBit("isImmutable"))
+      if (Inst.OperandList[i].Rec->isSubClassOf("PredicateOperand"))
         Res += "|M_PREDICATE_OPERAND";
         
       // Fill in constraint info.





More information about the llvm-commits mailing list