Skip to content

Swift Optimizer: add AccessUtils #60512

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
Aug 12, 2022
Merged

Conversation

Angelogeb
Copy link
Contributor

This pr adds a set of utilities and concepts (AccessBase, AccessPath and AccessStoragePath) to identify and analyze formal accesses in SIL.

This allows passes to reason about memory accesses relying solely on these concepts without having to implement ad-hoc traversals. This is similar in spirit to what is presentated SILMemoryAccess.md and MemAccessUtils.

@Angelogeb Angelogeb requested a review from eeckstein August 11, 2022 17:55
@Angelogeb
Copy link
Contributor Author

@swift-ci test

@Angelogeb
Copy link
Contributor Author

@swift-ci test

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

This set of utilities introduce concepts such as `AccessBase`,
`AccessPath` and `AccessStoragePath` useful to analyze memory accesses.
@Angelogeb
Copy link
Contributor Author

@swift-ci test

@Angelogeb Angelogeb merged commit 633cc34 into swiftlang:main Aug 12, 2022
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