mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Try committing again. Add OptionalDefOperand. Remove clobbersPred.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38498 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user