Rename some arc routines to use may instead of can as a prefix to match AliasAnalysis more closely.

Swift SVN r24509
This commit is contained in:
Michael Gottesman
2015-01-19 10:03:06 +00:00
parent c4e6fb5f5f
commit 38a0c69fc1
4 changed files with 13 additions and 13 deletions

View File

@@ -33,15 +33,15 @@ class SILFunction;
namespace swift {
/// \returns True if the user \p User decrement the ref count of pointer \p Ptr.
bool canDecrementRefCount(SILInstruction *User, SILValue Ptr,
bool mayDecrementRefCount(SILInstruction *User, SILValue Ptr,
AliasAnalysis *AA);
/// \returns True if the user \p User checks the ref count of a pointer.
bool canCheckRefCount(SILInstruction *User);
bool mayCheckRefCount(SILInstruction *User);
/// \returns True if the user \p User can use the pointer \p Ptr in a manner
/// that requires \p Ptr to be alive before Inst.
bool canUseValue(SILInstruction *User, SILValue Ptr, AliasAnalysis *AA);
bool mayUseValue(SILInstruction *User, SILValue Ptr, AliasAnalysis *AA);
/// \returns True if \p User can never use a value in a way that requires the
/// value to be alive.