diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-08-19 00:56:28 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-08-19 00:56:28 +0000 |
commit | 1d37296e02d729d89d80b481ecbbfd91a0ba12d2 (patch) | |
tree | 022a82528b643cc39a329e8c188a1a52de88e68f | |
parent | 8cbddfc8c5c347ef5e0956b84d9c83799db08545 (diff) | |
download | bcm5719-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.h | 10 |
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. |