mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Swift SIL: escape effects for function arguments.
Store a list of argument effects in a function, which specify if and how arguments escape. Such effects can be specified in the Swift source code (for details see docs/ReferenceGuides/UnderscoredAttributes.md) or derived in an optimization pass. For details see the documentation in SwiftCompilerSources/Sources/SIL/Effects.swift.
This commit is contained in:
@@ -66,6 +66,10 @@ ATTRIBUTE_NODES = [
|
||||
kind='DerivativeRegistrationAttributeArguments'),
|
||||
Child('NamedAttributeString',
|
||||
kind='NamedAttributeStringArgument'),
|
||||
# TokenList for custom effects which are parsed by
|
||||
# `FunctionEffects.parse()` in swift.
|
||||
Child('TokenList', kind='TokenList',
|
||||
collection_element_name='Token'),
|
||||
], description='''
|
||||
The arguments of the attribute. In case the attribute
|
||||
takes multiple arguments, they are gather in the
|
||||
|
||||
Reference in New Issue
Block a user