diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-07-10 18:05:01 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-07-10 18:05:01 +0000 |
commit | 6e3c705d746f104f83fc9ce899a062349f286857 (patch) | |
tree | e5e762d87757267e22cf6069193a17a3c1f658f0 /llvm/utils/TableGen/CodeGenTarget.cpp | |
parent | 9c88457abefc3a17b2b0784979f53083e5ecd550 (diff) | |
download | bcm5719-llvm-6e3c705d746f104f83fc9ce899a062349f286857.tar.gz bcm5719-llvm-6e3c705d746f104f83fc9ce899a062349f286857.zip |
Try committing again. Add OptionalDefOperand. Remove clobbersPred.
llvm-svn: 38498
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp index 18e11bdb6ff..71fc824eadf 100644 --- a/llvm/utils/TableGen/CodeGenTarget.cpp +++ b/llvm/utils/TableGen/CodeGenTarget.cpp @@ -370,8 +370,8 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr) usesCustomDAGSchedInserter = R->getValueAsBit("usesCustomDAGSchedInserter"); hasCtrlDep = R->getValueAsBit("hasCtrlDep"); noResults = R->getValueAsBit("noResults"); - clobbersPred = R->getValueAsBit("clobbersPred"); isNotDuplicable = R->getValueAsBit("isNotDuplicable"); + hasOptionalDef = false; hasVariableNumberOfOperands = false; DagInit *DI; @@ -411,9 +411,10 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr) if (unsigned NumArgs = MIOpInfo->getNumArgs()) NumOps = NumArgs; - if (Rec->isSubClassOf("PredicateOperand")) { + if (Rec->isSubClassOf("PredicateOperand")) isPredicable = true; - } + else if (Rec->isSubClassOf("OptionalDefOperand")) + hasOptionalDef = true; } else if (Rec->getName() == "variable_ops") { hasVariableNumberOfOperands = true; continue; |