[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAG.h
Nate Begeman
natebegeman at mac.com
Thu Aug 18 17:56:39 PDT 2005
Changes in directory llvm/include/llvm/CodeGen:
SelectionDAG.h updated: 1.42 -> 1.43
---
Log message:
Add support for target nodes with more than 3 operands, required by ppc
---
Diffs of the changes: (+10 -0)
SelectionDAG.h | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.42 llvm/include/llvm/CodeGen/SelectionDAG.h:1.43
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.42 Thu Aug 18 02:25:46 2005
+++ llvm/include/llvm/CodeGen/SelectionDAG.h Thu Aug 18 19:56:28 2005
@@ -241,6 +241,16 @@
SDOperand Op1, SDOperand Op2, SDOperand Op3) {
return getNode(ISD::BUILTIN_OP_END+Opcode, VT, Op1, Op2, Op3);
}
+ SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT,
+ SDOperand Op1, SDOperand Op2, SDOperand Op3,
+ SDOperand Op4) {
+ return getNode(ISD::BUILTIN_OP_END+Opcode, VT, Op1, Op2, Op3, Op4);
+ }
+ SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT,
+ SDOperand Op1, SDOperand Op2, SDOperand Op3,
+ SDOperand Op4, SDOperand Op5) {
+ return getNode(ISD::BUILTIN_OP_END+Opcode, VT, Op1, Op2, Op3, Op4, Op5);
+ }
/// ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
/// This can cause recursive merging of nodes in the DAG.
More information about the llvm-commits
mailing list