diff options
author | Chris Lattner <sabre@nondot.org> | 2005-10-25 21:02:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-10-25 21:02:21 +0000 |
commit | 753c8f20e45f6e4198c7cf4096ecc8948a029e9c (patch) | |
tree | 501a014c3281089ecc4a1ae5de0c5df5e97818ea | |
parent | 3075a4e94d820402159d81896a7e5fe89a459650 (diff) |
Add a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23989 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/SelectionDAG.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 8750cdee1a..d818f8ec1d 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -280,7 +280,10 @@ public: void SelectNodeTo(SDNode *N, unsigned TargetOpc, MVT::ValueType VT1, MVT::ValueType VT2, SDOperand Op1, SDOperand Op2, SDOperand Op3); - + + SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT) { + return getNode(ISD::BUILTIN_OP_END+Opcode, VT); + } SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT, SDOperand Op1) { return getNode(ISD::BUILTIN_OP_END+Opcode, VT, Op1); |