Skip to content
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

SILGen: Emit an addressable representation for immutable bindings on demand. #79903

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

jckarter
Copy link
Contributor

To ensure that dependent values have a persistent-enough memory representation to point into, when an immutable binding is referenced as an addressable argument to a call, have SILGen retroactively emit a stack allocation and materialization that covers the binding's scope.

@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter jckarter force-pushed the addressable-representation-silgen branch from 8af0f13 to 147aa75 Compare March 11, 2025 15:14
@jckarter
Copy link
Contributor Author

@swift-ci Please test

1 similar comment
@jckarter
Copy link
Contributor Author

@swift-ci Please test

…demand.

To ensure that dependent values have a persistent-enough memory representation
to point into, when an immutable binding is referenced as an addressable
argument to a call, have SILGen retroactively emit a stack allocation and
materialization that covers the binding's scope.
@jckarter jckarter force-pushed the addressable-representation-silgen branch from 147aa75 to 19a99ea Compare March 11, 2025 22:16
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter jckarter merged commit 2df3211 into swiftlang:main Mar 12, 2025
5 checks passed
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