add a new method
authorChris Lattner <sabre@nondot.org>
Fri, 17 Feb 2006 21:57:00 +0000 (21:57 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 17 Feb 2006 21:57:00 +0000 (21:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26268 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h

index f928c6be6b3b7b39df47bfa6d7581cf1c823c562..1986b4531c897a7bd49ae02135dd2b161ebe2d87 100644 (file)
@@ -408,6 +408,13 @@ public:
   void ReplaceAllUsesWith(SDNode *From, const std::vector<SDOperand> &To,
                           std::vector<SDNode*> *Deleted = 0);
 
+  /// ReplaceAllUsesOfValueWith - Replace any uses of From with To, leaving
+  /// uses of other values produced by From.Val alone.  The Deleted vector is
+  /// handled the same was as for ReplaceAllUsesWith, but it is required for
+  /// this method.
+  void ReplaceAllUsesOfValueWith(SDOperand From, SDOperand To,
+                                 std::vector<SDNode*> &Deleted);
+
   /// DeleteNode - Remove the specified node from the system.  This node must
   /// have no referrers.
   void DeleteNode(SDNode *N);