Skip to content

libswift: add instructions and some analysis #38196

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
Jul 2, 2021

Conversation

eeckstein
Copy link
Contributor

This PR adds some infrastructure to libswift:

  • new instructions
  • the ApplySite/FullApplySite protocols
  • basic block predecessors/successors
  • AliasAnalysis
  • CalleeAnalysis

eeckstein added 5 commits July 1, 2021 15:17
Add many new instruction classes in libswift, including all terminator instructions.
This allows to support BasicBlock predecessors and successors.
This avoids copying a SmallVector in case of multiple callees in the list.
Instead, just reference the callee list in the cache.
@eeckstein
Copy link
Contributor Author

@swift-ci test

Bridging to BasicCalleeAnalysis
@eeckstein eeckstein force-pushed the libswift-infrastructure branch from 072cd2a to 7ed04c3 Compare July 1, 2021 15:31
@eeckstein
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

swift-ci commented Jul 1, 2021

Build failed
Swift Test OS X Platform
Git Sha - 7ed04c3

@swift-ci
Copy link
Contributor

swift-ci commented Jul 1, 2021

Build failed
Swift Test Linux Platform
Git Sha - 7ed04c3

@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit aa3ede1 into swiftlang:main Jul 2, 2021
@eeckstein eeckstein deleted the libswift-infrastructure branch July 2, 2021 06:52
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