diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-09-12 23:39:49 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-09-12 23:39:49 +0000 |
commit | bb6a574def37639ecc2b723e2af41b71c832bc51 (patch) | |
tree | 363cc27d1817d75cfa13c03a70ae74bf8b53e90b /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 59c39dc197162c6ae2bbffe3df5f3e14579312d8 (diff) | |
download | bcm5719-llvm-bb6a574def37639ecc2b723e2af41b71c832bc51.tar.gz bcm5719-llvm-bb6a574def37639ecc2b723e2af41b71c832bc51.zip |
Yet another getTargetNode variant.
llvm-svn: 41898
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index ed1777e34ad..de313c2836d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3041,6 +3041,18 @@ SDNode *SelectionDAG::getTargetNode(unsigned Opcode, MVT::ValueType VT1, const MVT::ValueType *VTs = getNodeValueTypes(VT1, VT2, VT3); return getNode(ISD::BUILTIN_OP_END+Opcode, VTs, 3, Ops, NumOps).Val; } +SDNode *SelectionDAG::getTargetNode(unsigned Opcode, MVT::ValueType VT1, + MVT::ValueType VT2, MVT::ValueType VT3, + MVT::ValueType VT4, + const SDOperand *Ops, unsigned NumOps) { + std::vector<MVT::ValueType> VTList; + VTList.push_back(VT1); + VTList.push_back(VT2); + VTList.push_back(VT3); + VTList.push_back(VT4); + const MVT::ValueType *VTs = getNodeValueTypes(VTList); + return getNode(ISD::BUILTIN_OP_END+Opcode, VTs, 4, Ops, NumOps).Val; +} /// ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead. /// This can cause recursive merging of nodes in the DAG. |