mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user