[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAG.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Aug 17 11:59:29 PDT 2005
Changes in directory llvm/include/llvm/CodeGen:
SelectionDAG.h updated: 1.40 -> 1.41
---
Log message:
add ReplaceAllUsesWith, and a helper to implemented it
---
Diffs of the changes: (+7 -0)
SelectionDAG.h | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.40 llvm/include/llvm/CodeGen/SelectionDAG.h:1.41
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.40 Tue Aug 16 19:33:30 2005
+++ llvm/include/llvm/CodeGen/SelectionDAG.h Wed Aug 17 13:59:17 2005
@@ -239,10 +239,17 @@
SDOperand Op1, SDOperand Op2, SDOperand Op3) {
return getNode(ISD::BUILTIN_OP_END+Opcode, VT, Op1, Op2, Op3);
}
+
+ /// ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
+ /// This can cause recursive merging of nodes in the DAG.
+ ///
+ void ReplaceAllUsesWith(SDNode *From, SDNode *To);
+
void dump() const;
private:
void RemoveNodeFromCSEMaps(SDNode *N);
+ SDNode *AddNonLeafNodeToCSEMaps(SDNode *N);
void DeleteNodeIfDead(SDNode *N, void *NodeSet);
/// SimplifySetCC - Try to simplify a setcc built with the specified operands
More information about the llvm-commits
mailing list