From 8927bf468d08b085377f74b8d09a1c9f0699677a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 21 Aug 2005 22:30:30 +0000 Subject: [PATCH] add anew method llvm-svn: 22957 --- lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 851e99b0d4a..3bae15c6aab 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1832,6 +1832,16 @@ void SelectionDAG::SelectNodeTo(SDNode *N, MVT::ValueType VT, N->setValueTypes(VT); N->setOperands(Op1, Op2, Op3); } +void SelectionDAG::SelectNodeTo(SDNode *N, MVT::ValueType VT1, + MVT::ValueType VT2, + unsigned TargetOpc, SDOperand Op1, + SDOperand Op2, SDOperand Op3) { + RemoveNodeFromCSEMaps(N); + N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc); + N->setValueTypes(VT1, VT2); + N->setOperands(Op1, Op2, Op3); +} + void SelectionDAG::SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc, SDOperand Op1, SDOperand Op2, SDOperand Op3, SDOperand Op4) {