diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2007-10-05 01:10:49 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2007-10-05 01:10:49 +0000 |
| commit | 39305cf55363046162c5a992f96f26d607a204e5 (patch) | |
| tree | 4ee6051271a909a0779ad9a991e6c2c39da52d83 /lib | |
| parent | daccea18ca8357b4193ac3ba42a168e650b807e0 (diff) | |
| download | external_llvm-39305cf55363046162c5a992f96f26d607a204e5.zip external_llvm-39305cf55363046162c5a992f96f26d607a204e5.tar.gz external_llvm-39305cf55363046162c5a992f96f26d607a204e5.tar.bz2 | |
Add a variant of getTargetNode() that takes a vector of MVT::ValueType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 5ed676e..8e55850 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3054,6 +3054,13 @@ SDNode *SelectionDAG::getTargetNode(unsigned Opcode, MVT::ValueType VT1, const MVT::ValueType *VTs = getNodeValueTypes(VTList); return getNode(ISD::BUILTIN_OP_END+Opcode, VTs, 4, Ops, NumOps).Val; } +SDNode *SelectionDAG::getTargetNode(unsigned Opcode, + std::vector<MVT::ValueType> &ResultTys, + const SDOperand *Ops, unsigned NumOps) { + const MVT::ValueType *VTs = getNodeValueTypes(ResultTys); + return getNode(ISD::BUILTIN_OP_END+Opcode, VTs, ResultTys.size(), + Ops, NumOps).Val; +} /// ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead. /// This can cause recursive merging of nodes in the DAG. |
