summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-21 22:30:30 +0000
committerChris Lattner <sabre@nondot.org>2005-08-21 22:30:30 +0000
commitc975e1dedcffd55894a14b41ccdb7255aaf19034 (patch)
tree9a3caaa457ff21cb45c3439b250a306e9770c576 /lib/CodeGen
parent81e72b13d778772738747b0d9fd2131855db42c4 (diff)
downloadllvm-c975e1dedcffd55894a14b41ccdb7255aaf19034.tar.gz
llvm-c975e1dedcffd55894a14b41ccdb7255aaf19034.tar.bz2
llvm-c975e1dedcffd55894a14b41ccdb7255aaf19034.tar.xz
add anew method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 851e99b0d4..3bae15c6aa 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) {