[llvm-commits] CVS: llvm/utils/TableGen/InstrSelectorEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Aug 14 23:29:02 PDT 2003
Changes in directory llvm/utils/TableGen:
InstrSelectorEmitter.cpp updated: 1.31 -> 1.32
---
Log message:
Add support for nodes with void arguments, like chain nodes
---
Diffs of the changes:
Index: llvm/utils/TableGen/InstrSelectorEmitter.cpp
diff -u llvm/utils/TableGen/InstrSelectorEmitter.cpp:1.31 llvm/utils/TableGen/InstrSelectorEmitter.cpp:1.32
--- llvm/utils/TableGen/InstrSelectorEmitter.cpp:1.31 Tue Aug 12 00:19:49 2003
+++ llvm/utils/TableGen/InstrSelectorEmitter.cpp Thu Aug 14 23:28:04 2003
@@ -299,6 +299,9 @@
MadeChange |= Child->updateNodeType(ISE.getTarget().getPointerType(),
TheRecord->getName());
break;
+ case NodeType::Void:
+ MadeChange |= Child->updateNodeType(MVT::isVoid, TheRecord->getName());
+ break;
default: assert(0 && "Invalid argument ArgType!");
}
}
@@ -449,8 +452,6 @@
throw "In node " + Node->getName() + ", arg 0 cannot have type 'arg0'!";
if (a == 1 && ArgTypes.back() == NodeType::Arg1)
throw "In node " + Node->getName() + ", arg 1 cannot have type 'arg1'!";
- if (ArgTypes.back() == NodeType::Void)
- throw "In node " + Node->getName() + ", args cannot be void type!";
}
if ((RetTy == NodeType::Arg0 && Args->getSize() == 0) ||
(RetTy == NodeType::Arg1 && Args->getSize() < 2))
More information about the llvm-commits
mailing list