No need for noResults anymore.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 20 Jul 2007 00:21:23 +0000 (00:21 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 20 Jul 2007 00:21:23 +0000 (00:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40075 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenInstruction.h
utils/TableGen/CodeGenTarget.cpp
utils/TableGen/DAGISelEmitter.cpp

index 99da8d6e49a8737c79a174982b85db79a17c11cb..6abe972880d3e482e30022140a4b961877fb572b 100644 (file)
@@ -100,7 +100,6 @@ namespace llvm {
     bool usesCustomDAGSchedInserter;
     bool hasVariableNumberOfOperands;
     bool hasCtrlDep;
-    bool noResults;
     bool isNotDuplicable;
     bool hasOptionalDef;
     
index 268711da53b3f47ef081a1fda8e5ee63855b3c0e..c2e736968ef0a6adcd9b7a37c3abac9215044fe8 100644 (file)
@@ -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;
index e8049d6baf52fdf17b69a922e6bb06d2b983ab22..6da4b987d2df64ef46967aae944e6596526981b9 100644 (file)
@@ -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);