ImmutablePredicateOperand is no more.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 6 Jul 2007 23:23:38 +0000 (23:23 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 6 Jul 2007 23:23:38 +0000 (23:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37963 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenTarget.cpp
utils/TableGen/InstrInfoEmitter.cpp

index e4d80ee669862639638c3605eff2af282b01a55b..18e11bdb6ff6494205659cea4b5087f08ca1540c 100644 (file)
@@ -412,8 +412,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
         NumOps = NumArgs;
 
       if (Rec->isSubClassOf("PredicateOperand")) {
-        if (!Rec->getValueAsBit("isImmutable"))
-          isPredicable = true;
+        isPredicable = true;
       }
     } else if (Rec->getName() == "variable_ops") {
       hasVariableNumberOfOperands = true;
index a57770de4689fbb87a035be0f12c7cc68133dcb6..af01e4cd75a14e033cae3a1d2506ee1ff4f6e8b1 100644 (file)
@@ -107,8 +107,7 @@ InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) {
 
       // 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.