[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAG.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Aug 26 11:36:09 PDT 2005
Changes in directory llvm/include/llvm/CodeGen:
SelectionDAG.h updated: 1.54 -> 1.55
---
Log message:
Add a new version of ReplaceAllUsesWith, make the comments more useful.
---
Diffs of the changes: (+4 -1)
SelectionDAG.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.54 llvm/include/llvm/CodeGen/SelectionDAG.h:1.55
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.54 Fri Aug 26 12:14:27 2005
+++ llvm/include/llvm/CodeGen/SelectionDAG.h Fri Aug 26 13:35:58 2005
@@ -279,8 +279,11 @@
}
/// ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
- /// This can cause recursive merging of nodes in the DAG.
+ /// This can cause recursive merging of nodes in the DAG. Use the first
+ /// version if 'From' is known to have a single result, use the second
+ /// if you have two nodes with identical results, use the third otherwise.
///
+ void ReplaceAllUsesWith(SDOperand From, SDOperand Op);
void ReplaceAllUsesWith(SDNode *From, SDNode *To);
void ReplaceAllUsesWith(SDNode *From, const std::vector<SDOperand> &To);
More information about the llvm-commits
mailing list