Skip to content

[NFC] mark_dependence handling for coroutines and accessors. #77695

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 6 commits into from
Nov 19, 2024

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Nov 19, 2024

Preparation for lifetime dependent coroutines and accessors.

Includes a minor fix to BeginApply that I missed in the previous PR.

Add flexibility to mark_dependence diagnostics. This allows SILGen to emit mark_dependence [unresolved] in more places.

These changes are covered by unit tests on the branch that they were pulled from.

isScopeEndingUse is not the same as endsLifetime.
This allows emitting mark_dependence [unresolved] in some cases even if the
diagnostics can't currently handle them.
During SIL parsing, allow `@``lifetime(borrow <argNum>)` on trivial arguments.
Mark unresolved mark_depends as nonescaping so they don't leak into the
optimizer pipeline.
@atrick
Copy link
Contributor Author

atrick commented Nov 19, 2024

@swift-ci test

@atrick atrick merged commit e4e0760 into swiftlang:main Nov 19, 2024
5 checks passed
@atrick atrick deleted the handle_markdep branch November 19, 2024 18:22
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.

1 participant