Skip to content

[next] Coro: Add a function attribute for resume from call async functlets #11013

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

Conversation

nate-chandler
Copy link

This change adds a function attribute async_ret for any funclet generated from a async function marked with async_entry that models a return from an async function.

We recognize these continuations by a __swift_async_resume_project_context projection function argument to the suspend function.

rdar://134460666

This change adds a function attribute `async_ret` for any funclet
generated from a async function marked with `async_entry` that models a
return from an async function.

We recognize these continuations by a `__swift_async_resume_project_context`
projection function argument to the suspend function.

rdar://134460666
@nate-chandler nate-chandler force-pushed the cherrypick/next/async_call_ret_metadata branch from 48ab174 to 39968ec Compare July 16, 2025 23:07
@nate-chandler
Copy link
Author

@swift-ci please test

@nate-chandler
Copy link
Author

@swift-ci please test llvm

@nate-chandler nate-chandler merged commit 7592fe5 into swiftlang:next Jul 17, 2025
0 of 5 checks passed
@nate-chandler nate-chandler deleted the cherrypick/next/async_call_ret_metadata branch July 17, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants