summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-08-19 00:56:28 +0000
committerNate Begeman <natebegeman@mac.com>2005-08-19 00:56:28 +0000
commit1d37296e02d729d89d80b481ecbbfd91a0ba12d2 (patch)
tree022a82528b643cc39a329e8c188a1a52de88e68f
parent8cbddfc8c5c347ef5e0956b84d9c83799db08545 (diff)
downloadbcm5719-llvm-1d37296e02d729d89d80b481ecbbfd91a0ba12d2.tar.gz
bcm5719-llvm-1d37296e02d729d89d80b481ecbbfd91a0ba12d2.zip
Add support for target nodes with more than 3 operands, required by ppc
llvm-svn: 22894
-rw-r--r--llvm/include/llvm/CodeGen/SelectionDAG.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h
index 5fdf46c3fd8..b38648e303a 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAG.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAG.h
@@ -241,6 +241,16 @@ public:
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.
OpenPOWER on IntegriCloud