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

In those cases, it really means "N uses".
This commit is contained in:
Roman Lebedev 2020-08-26 17:09:51 +03:00
parent 8bfe46dce2
commit c07a430bd3
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0
1 changed files with 5 additions and 5 deletions

View File

@ -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;