diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-07 02:39:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-07 02:39:19 +0000 |
commit | e55e11561676c943d1042e35c0f6962a2eb30b9c (patch) | |
tree | 39c803f8b4ef9eacc3eea7ac5bee6a1c9b065c2a /llvm/utils/TableGen/InstrInfoEmitter.cpp | |
parent | c7e991b7c3353c6b3b5e724eb8a389763966b797 (diff) | |
download | bcm5719-llvm-e55e11561676c943d1042e35c0f6962a2eb30b9c.tar.gz bcm5719-llvm-e55e11561676c943d1042e35c0f6962a2eb30b9c.zip |
Add predicates methods to TargetOperandInfo, and switch all clients
over to using them, instead of diddling Flags directly. Change the
various flags from const variables to enums.
llvm-svn: 45677
Diffstat (limited to 'llvm/utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/InstrInfoEmitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp index 93642f904be..6d08b20f3a8 100644 --- a/llvm/utils/TableGen/InstrInfoEmitter.cpp +++ b/llvm/utils/TableGen/InstrInfoEmitter.cpp @@ -94,17 +94,17 @@ InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) { // Ptr value whose register class is resolved via callback. if (OpR->getName() == "ptr_rc") - Res += "|M_LOOK_UP_PTR_REG_CLASS"; + Res += "|TOI::LookupPtrRegClass"; // Predicate operands. Check to see if the original unexpanded operand // was of type PredicateOperand. if (Inst.OperandList[i].Rec->isSubClassOf("PredicateOperand")) - Res += "|M_PREDICATE_OPERAND"; + Res += "|TOI::Predicate"; // Optional def operands. Check to see if the original unexpanded operand // was of type OptionalDefOperand. if (Inst.OperandList[i].Rec->isSubClassOf("OptionalDefOperand")) - Res += "|M_OPTIONAL_DEF_OPERAND"; + Res += "|TOI::OptionalDef"; // Fill in constraint info. Res += ", " + Inst.OperandList[i].Constraints[j]; |