diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-07-20 00:21:23 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-07-20 00:21:23 +0000 |
commit | 869852b03e12f5665d82e82124fc83b15d9bde23 (patch) | |
tree | 3bf04c9197b7d4af91881299cc60ba8db0e3fa46 /llvm | |
parent | 9081ab81277c92a2d2b1d0557f05b243c0bf1d71 (diff) | |
download | bcm5719-llvm-869852b03e12f5665d82e82124fc83b15d9bde23.tar.gz bcm5719-llvm-869852b03e12f5665d82e82124fc83b15d9bde23.zip |
No need for noResults anymore.
llvm-svn: 40075
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.h | 1 | ||||
-rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.cpp | 1 | ||||
-rw-r--r-- | llvm/utils/TableGen/DAGISelEmitter.cpp | 5 |
3 files changed, 2 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h index 99da8d6e49a..6abe972880d 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.h +++ b/llvm/utils/TableGen/CodeGenInstruction.h @@ -100,7 +100,6 @@ namespace llvm { bool usesCustomDAGSchedInserter; bool hasVariableNumberOfOperands; bool hasCtrlDep; - bool noResults; bool isNotDuplicable; bool hasOptionalDef; diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp index 268711da53b..c2e736968ef 100644 --- a/llvm/utils/TableGen/CodeGenTarget.cpp +++ b/llvm/utils/TableGen/CodeGenTarget.cpp @@ -369,7 +369,6 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr) hasDelaySlot = R->getValueAsBit("hasDelaySlot"); usesCustomDAGSchedInserter = R->getValueAsBit("usesCustomDAGSchedInserter"); hasCtrlDep = R->getValueAsBit("hasCtrlDep"); - noResults = R->getValueAsBit("noResults"); isNotDuplicable = R->getValueAsBit("isNotDuplicable"); hasOptionalDef = false; hasVariableNumberOfOperands = false; diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp index e8049d6baf5..6da4b987d2d 100644 --- a/llvm/utils/TableGen/DAGISelEmitter.cpp +++ b/llvm/utils/TableGen/DAGISelEmitter.cpp @@ -752,7 +752,7 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) { CodeGenInstruction &InstInfo = ISE.getTargetInfo().getInstruction(getOperator()->getName()); // Apply the result type to the node - if (NumResults == 0 || InstInfo.noResults) { // FIXME: temporary hack. + if (NumResults == 0 || InstInfo.NumDefs == 0) { MadeChange = UpdateNodeType(MVT::isVoid, TP); } else { Record *ResultNode = Inst.getResult(0); @@ -1452,8 +1452,7 @@ void DAGISelEmitter::ParseInstructions() { CodeGenInstruction &InstInfo =Target.getInstruction(Instrs[i]->getName()); if (InstInfo.OperandList.size() != 0) { - // FIXME: temporary hack... - if (InstInfo.noResults) { + if (InstInfo.NumDefs == 0) { // These produce no results for (unsigned j = 0, e = InstInfo.OperandList.size(); j < e; ++j) Operands.push_back(InstInfo.OperandList[j].Rec); |