Skip to content

IRGen support for closures that capture metadata and witness table packs #64679

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 5 commits into from
Mar 29, 2023

Conversation

slavapestov
Copy link
Contributor

No description provided.

@slavapestov slavapestov force-pushed the varidic-generic-captures branch 2 times, most recently from 7d3e314 to 1be23c3 Compare March 28, 2023 19:33
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

This removes the "optimization" where a function type, metatype or
tuple type was split up into structural components, because it seems
that in general we need this structural type metadata again.

Similarly, this no longer tries to split up dependent concrete
conformances and instead passes the witness table in the context.

This makes the context larger potentially, but it avoids calls to
metadata access functions and swift_getWitnessTable() every time the
closure is invoked.
@slavapestov slavapestov force-pushed the varidic-generic-captures branch from 1be23c3 to 2d2b024 Compare March 28, 2023 23:22
@slavapestov slavapestov force-pushed the varidic-generic-captures branch from 2d2b024 to 8a6bb30 Compare March 29, 2023 01:45
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

@slavapestov slavapestov merged commit 5c9c059 into swiftlang:main Mar 29, 2023
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