From: Evan Cheng Date: Fri, 6 Jul 2007 23:23:38 +0000 (+0000) Subject: ImmutablePredicateOperand is no more. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c419bd3396cc035942b219efae30dd2890ae430f;p=oota-llvm.git ImmutablePredicateOperand is no more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37963 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index e4d80ee6698..18e11bdb6ff 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/utils/TableGen/CodeGenTarget.cpp @@ -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; diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index a57770de468..af01e4cd75a 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -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.