summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-21 18:49:33 +0000
committerChris Lattner <sabre@nondot.org>2005-08-21 18:49:33 +0000
commit707b39fb8c80cc3fe91bfab24bf98c9d501481d8 (patch)
treed929890e5480807858181caf37c810686868123a /llvm/lib/CodeGen
parent154b2bc59b2df75b8e5ba46a7a3afdf61ae9e138 (diff)
downloadbcm5719-llvm-707b39fb8c80cc3fe91bfab24bf98c9d501481d8.tar.gz
bcm5719-llvm-707b39fb8c80cc3fe91bfab24bf98c9d501481d8.zip
add a method
llvm-svn: 22949
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 405933d3313..a7531a84172 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1831,6 +1831,15 @@ void SelectionDAG::SelectNodeTo(SDNode *N, MVT::ValueType VT,
N->setValueTypes(VT);
N->setOperands(Op1, Op2, Op3, Op4);
}
+void SelectionDAG::SelectNodeTo(SDNode *N, MVT::ValueType VT,
+ unsigned TargetOpc, SDOperand Op1,
+ SDOperand Op2, SDOperand Op3, SDOperand Op4,
+ SDOperand Op5) {
+ RemoveNodeFromCSEMaps(N);
+ N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
+ N->setValueTypes(VT);
+ N->setOperands(Op1, Op2, Op3, Op4, Op5);
+}
/// ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
/// This can cause recursive merging of nodes in the DAG.
OpenPOWER on IntegriCloud