diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-08-26 18:35:58 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-08-26 18:35:58 +0000 |
| commit | fa0be24960fa9a05fb9aad49c968f6aee1e39a1c (patch) | |
| tree | 2f3aa94e1e6c5fa09e5e0628c2936b7dbdbcb9ad /llvm | |
| parent | 76eea9a4800a5a6fa93835df78db57632bbf60be (diff) | |
| download | bcm5719-llvm-fa0be24960fa9a05fb9aad49c968f6aee1e39a1c.tar.gz bcm5719-llvm-fa0be24960fa9a05fb9aad49c968f6aee1e39a1c.zip | |
Add a new version of ReplaceAllUsesWith, make the comments more useful.
llvm-svn: 23086
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAG.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h index 97934a536fe..27331db1bb0 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAG.h +++ b/llvm/include/llvm/CodeGen/SelectionDAG.h @@ -279,8 +279,11 @@ public: } /// 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); |

