forked from OSchip/llvm-project
[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:
parent
8bfe46dce2
commit
c07a430bd3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue