Add a new version of ReplaceAllUsesWith, make the comments more useful.
authorChris Lattner <sabre@nondot.org>
Fri, 26 Aug 2005 18:35:58 +0000 (18:35 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 26 Aug 2005 18:35:58 +0000 (18:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23086 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h

index 97934a536fed678fd425e53f0c58ac64087ddb13..27331db1bb06d330f96279b2ed2313ba8295aeba 100644 (file)
@@ -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);