Skip to content

[5.7][SE-0349] Implementation for unaligned loads from raw memory #42401

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 13 commits into from
Apr 28, 2022

Conversation

glessard
Copy link
Contributor

Implementation for SE-0349, cherry-picked from #41033

@glessard glessard requested a review from a team as a code owner April 15, 2022 22:48
@glessard
Copy link
Contributor Author

@swift-ci please test

@glessard
Copy link
Contributor Author

Force-pushed to resolve changelog conflict!

@glessard
Copy link
Contributor Author

@swift-ci please test

@glessard glessard changed the title [SE-0349] Implementation for unaligned loads from raw memory [5.7][SE-0349] Implementation for unaligned loads from raw memory Apr 22, 2022
amartini51 and others added 13 commits April 27, 2022 14:02
Here, as in UnsafeMutableRawPointer.storeBytes(of:toByteOffset:as:)
"as" is an argument label and "type" is the parameter.

Because the function body doesn't use this -- it's just for type
information -- changing its name from "as" to "type" doesn't have
any impact there.
- preserve previous version for ABI and source stability.
- add new version without alignment restriction.
- add explicit POD type enforcement in new version.
- preserve previous version for ABI and source stability.
- add new version without alignment restriction.
- add explicit POD type enforcement in new version.
@glessard
Copy link
Contributor Author

@swift-ci please test

@glessard glessard merged commit 85e2a7b into swiftlang:release/5.7 Apr 28, 2022
@glessard glessard deleted the se-unaligned-5.7 branch April 28, 2022 00:21
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.

3 participants