mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Clarify what it means for a SIL instruction to have side effects.
Swift SVN r7067
This commit is contained in:
@@ -46,7 +46,9 @@ class VarDecl;
|
||||
enum class SILInstructionMemoryBehavior {
|
||||
None,
|
||||
/// \brief The instruction may have side effects not captured solely by its
|
||||
/// users.
|
||||
/// users. Specifically, it can return, release memory, or store. Note,
|
||||
/// alloc is not considered to have side effects because its
|
||||
/// result/users represnet its effect.
|
||||
MayHaveSideEffects,
|
||||
/// \brief The istruction may write to memory.
|
||||
MayWrite,
|
||||
|
||||
Reference in New Issue
Block a user