From c07a430bd39cccb64712ddcba85254a5bb1cd89b Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Wed, 26 Aug 2020 17:09:51 +0300 Subject: [PATCH] [NFC][Value] Fixup comments, "N users" is NOT the same as "N uses". In those cases, it really means "N uses". --- llvm/include/llvm/IR/Value.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 @@ public: 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 @@ public: 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 @@ public: /// 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;