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 | fc61b59cece3f3dcea0076ffd25f69b3adb4f0ec (patch) | |
tree | aa0352b202ad9e9769ae3a1ad2ba1107ecdd9c03 /utils/TableGen/DAGISelEmitter.cpp | |
parent | eface714b5b91b222e4243999c21b79a85149807 (diff) | |
download | external_llvm-fc61b59cece3f3dcea0076ffd25f69b3adb4f0ec.zip external_llvm-fc61b59cece3f3dcea0076ffd25f69b3adb4f0ec.tar.gz external_llvm-fc61b59cece3f3dcea0076ffd25f69b3adb4f0ec.tar.bz2 |
No need for noResults anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelEmitter.cpp')
-rw-r--r-- | utils/TableGen/DAGISelEmitter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index e8049d6..6da4b98 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/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); |