Author: evancheng Date: Thu Jul 19 19:21:23 2007 New Revision: 40075 URL: http://llvm.org/viewvc/llvm-project?rev=40075&view=rev Log: No need for noResults anymore.
Modified: llvm/trunk/utils/TableGen/CodeGenInstruction.h llvm/trunk/utils/TableGen/CodeGenTarget.cpp llvm/trunk/utils/TableGen/DAGISelEmitter.cpp Modified: llvm/trunk/utils/TableGen/CodeGenInstruction.h URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenInstruction.h?rev=40075&r1=40074&r2=40075&view=diff ============================================================================== --- llvm/trunk/utils/TableGen/CodeGenInstruction.h (original) +++ llvm/trunk/utils/TableGen/CodeGenInstruction.h Thu Jul 19 19:21:23 2007 @@ -100,7 +100,6 @@ bool usesCustomDAGSchedInserter; bool hasVariableNumberOfOperands; bool hasCtrlDep; - bool noResults; bool isNotDuplicable; bool hasOptionalDef; Modified: llvm/trunk/utils/TableGen/CodeGenTarget.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenTarget.cpp?rev=40075&r1=40074&r2=40075&view=diff ============================================================================== --- llvm/trunk/utils/TableGen/CodeGenTarget.cpp (original) +++ llvm/trunk/utils/TableGen/CodeGenTarget.cpp Thu Jul 19 19:21:23 2007 @@ -369,7 +369,6 @@ hasDelaySlot = R->getValueAsBit("hasDelaySlot"); usesCustomDAGSchedInserter = R->getValueAsBit("usesCustomDAGSchedInserter"); hasCtrlDep = R->getValueAsBit("hasCtrlDep"); - noResults = R->getValueAsBit("noResults"); isNotDuplicable = R->getValueAsBit("isNotDuplicable"); hasOptionalDef = false; hasVariableNumberOfOperands = false; Modified: llvm/trunk/utils/TableGen/DAGISelEmitter.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DAGISelEmitter.cpp?rev=40075&r1=40074&r2=40075&view=diff ============================================================================== --- llvm/trunk/utils/TableGen/DAGISelEmitter.cpp (original) +++ llvm/trunk/utils/TableGen/DAGISelEmitter.cpp Thu Jul 19 19:21:23 2007 @@ -752,7 +752,7 @@ 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 @@ 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); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits