[llvm] c07a430 - [NFC][Value] Fixup comments, "N users" is NOT the same as "N uses".

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 10:20:55 PDT 2020


Author: Roman Lebedev
Date: 2020-08-26T20:20:41+03:00
New Revision: c07a430bd39cccb64712ddcba85254a5bb1cd89b

URL: https://github.com/llvm/llvm-project/commit/c07a430bd39cccb64712ddcba85254a5bb1cd89b
DIFF: https://github.com/llvm/llvm-project/commit/c07a430bd39cccb64712ddcba85254a5bb1cd89b.diff

LOG: [NFC][Value] Fixup comments, "N users" is NOT the same as "N uses".

In those cases, it really means "N uses".

Added: 
    

Modified: 
    llvm/include/llvm/IR/Value.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/Value.h b/llvm/include/llvm/IR/Value.h
index eec96373a1a9..723868af729d 100644
--- a/llvm/include/llvm/IR/Value.h
+++ b/llvm/include/llvm/IR/Value.h
@@ -424,7 +424,7 @@ class Value {
     return materialized_users();
   }
 
-  /// Return true if there is exactly one user of this value.
+  /// Return true if there is exactly one use of this value.
   ///
   /// This is specialized because it is a common request and does not require
   /// traversing the whole use list.
@@ -434,15 +434,15 @@ class Value {
     return ++I == E;
   }
 
-  /// Return true if this Value has exactly N users.
+  /// Return true if this Value has exactly N uses.
   bool hasNUses(unsigned N) const;
 
-  /// Return true if this value has N users or more.
+  /// Return true if this value has N uses or more.
   ///
   /// This is logically equivalent to getNumUses() >= N.
   bool hasNUsesOrMore(unsigned N) const;
 
-  /// Return true if there is exactly one user of this value that cannot be
+  /// Return true if there is exactly one use of this value that cannot be
   /// dropped.
   ///
   /// This is specialized because it is a common request and does not require
@@ -455,7 +455,7 @@ class Value {
   /// traversing the whole use list.
   bool hasNUndroppableUses(unsigned N) const;
 
-  /// Return true if this value has N users or more.
+  /// Return true if this value has N uses or more.
   ///
   /// This is logically equivalent to getNumUses() >= N.
   bool hasNUndroppableUsesOrMore(unsigned N) const;


        


More information about the llvm-commits mailing list