Skip to content

Document version of introduction for new async-related manglings #36823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions docs/ABI/Mangling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -514,13 +514,17 @@ Types

type ::= 'Bb' // Builtin.BridgeObject
type ::= 'BB' // Builtin.UnsafeValueBuffer
type ::= 'Bc' // Builtin.RawUnsafeContinuation
type ::= 'BD' // Builtin.DefaultActorStorage
type ::= 'Be' // Builtin.Executor
#if SWIFT_RUNTIME_VERSION >= 5.5
type ::= 'Bc' // Builtin.RawUnsafeContinuation
type ::= 'BD' // Builtin.DefaultActorStorage
type ::= 'Be' // Builtin.Executor
#endif
type ::= 'Bf' NATURAL '_' // Builtin.Float<n>
type ::= 'Bi' NATURAL '_' // Builtin.Int<n>
type ::= 'BI' // Builtin.IntLiteral
type ::= 'Bj' // Builtin.Job
#if SWIFT_RUNTIME_VERSION >= 5.5
type ::= 'Bj' // Builtin.Job
#endif
type ::= 'BO' // Builtin.UnknownObject (no longer a distinct type, but still used for AnyObject)
type ::= 'Bo' // Builtin.NativeObject
type ::= 'Bp' // Builtin.RawPointer
Expand Down Expand Up @@ -570,8 +574,10 @@ Types
// they are mangled separately as part of the entity.
params-type ::= empty-list // shortcut for no parameters

async ::= 'Ya' // 'async' annotation on function types
sendable ::= 'Yb' // @Sendable on function types
#if SWIFT_RUNTIME_VERSION >= 5.5
async ::= 'Ya' // 'async' annotation on function types
sendable ::= 'Yb' // @Sendable on function types
#endif
throws ::= 'K' // 'throws' annotation on function types
differentiable ::= 'Yjf' // @differentiable(_forward) on function type
differentiable ::= 'Yjr' // @differentiable(reverse) on function type
Expand Down Expand Up @@ -666,8 +672,10 @@ mangled in to disambiguate.
COROUTINE-KIND ::= 'A' // yield-once coroutine
COROUTINE-KIND ::= 'G' // yield-many coroutine

SENDABLE ::= 'h' // @Sendable
ASYNC ::= 'H' // @async
#if SWIFT_RUNTIME_VERSION >= 5.5
SENDABLE ::= 'h' // @Sendable
ASYNC ::= 'H' // @async
#endif

PARAM-CONVENTION ::= 'i' // indirect in
PARAM-CONVENTION ::= 'c' // indirect in constant
Expand Down