[llvm] [SelectionDAG] Rename SDNode::uses() to users(). (PR #120499)

Sergey Barannikov via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 18 16:23:26 PST 2024


================
@@ -750,7 +750,7 @@ END_TWO_BYTE_PACK()
   bool use_empty() const { return UseList == nullptr; }
 
   /// Return true if there is exactly one use of this node.
-  bool hasOneUse() const { return hasSingleElement(uses()); }
+  bool hasOneUse() const { return hasSingleElement(users()); }
----------------
s-barannikov wrote:

Changing this name will be difficult, but maybe it is worth fixing the comment at least?
This method returns one if all users are the same node.


https://github.com/llvm/llvm-project/pull/120499


More information about the llvm-commits mailing list