Skip to content

Conversation

@rajbarik
Copy link
Contributor

@rajbarik rajbarik commented Jun 1, 2018

Currently SILCombiner defines and uses findInitExistential and its associated functions as static and uses them. With the new ExistentialSpecializer pass (#13991), these utility functions are needed outside of SILCombiner. This PR only reorganizes the code (no new code added) and moves findInitExistentialFromGlobalAddr, getAddressOfStackInit, and findInitExistential functions to Local.h/cpp.

@atrick
Copy link
Contributor

atrick commented Jun 1, 2018

I don't see anything controversial about this.

@slavapestov
Copy link
Contributor

Maybe create a new Existential.h?

@rajbarik
Copy link
Contributor Author

rajbarik commented Jun 2, 2018 via email

@rajbarik rajbarik force-pushed the raj_reorg branch 2 times, most recently from 1379443 to fdbdcdc Compare June 4, 2018 18:04
…ial.cpp/h in order for other passes such as ExistentialSpecializer to use it apart from SILCombiner
@rajbarik
Copy link
Contributor Author

rajbarik commented Jun 4, 2018

@slavapestov @atrick Please have a look. thanks.

@atrick
Copy link
Contributor

atrick commented Jun 5, 2018

LGTM

@atrick
Copy link
Contributor

atrick commented Jun 5, 2018

@swift-ci smoke test.

@slavapestov
Copy link
Contributor

@swift-ci Please smoke test

@slavapestov slavapestov merged commit 718246a into swiftlang:master Jun 5, 2018
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