[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Evan Cheng
evan.cheng at apple.com
Thu Jul 20 16:36:33 PDT 2006
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.223 -> 1.224
---
Log message:
Also checks for noResults field.
---
Diffs of the changes: (+4 -1)
DAGISelEmitter.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.223 llvm/utils/TableGen/DAGISelEmitter.cpp:1.224
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.223 Tue Jul 18 19:24:41 2006
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Thu Jul 20 18:36:20 2006
@@ -742,8 +742,11 @@
assert(NumResults <= 1 &&
"Only supports zero or one result instrs!");
+
+ CodeGenInstruction &InstInfo =
+ ISE.getTargetInfo().getInstruction(getOperator()->getName());
// Apply the result type to the node
- if (NumResults == 0) {
+ if (NumResults == 0 || InstInfo.noResults) { // FIXME: temporary hack...
MadeChange = UpdateNodeType(MVT::isVoid, TP);
} else {
Record *ResultNode = Inst.getResult(0);
More information about the llvm-commits
mailing list