Skip to content

Refine The Frontend's Understanding of SwiftOnoneSupport #18410

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 1 commit into from
Aug 1, 2018

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Jul 31, 2018

Continuing work from #18344, be more conservative about when we load
SwiftOnoneSupport. Specifically, -emit-silgen and -emit-sibgen, despite
not going through the SIL Optimizer, may silently introduce dependencies
on SwiftOnoneSupport.

Because we want to support the ability to posthumously compile SILGen
and SIBGen'd files with these implicit dependencies, and because SIL
is not yet capable of expressing the dependency itself, we must always
assume we need to load SwiftOnoneSupport.

@CodaFi CodaFi requested review from gottesmm and jrose-apple July 31, 2018 20:15
@jrose-apple
Copy link
Contributor

Sure, okay. I guess it's too late to do the implicit import by the time we reload a SIL or SIB file.

@jrose-apple
Copy link
Contributor

Maybe just going back to doesActionGenerateSIL would make more sense, though. That's a potentially-reusable predicate.

@CodaFi
Copy link
Contributor Author

CodaFi commented Jul 31, 2018

@swift-ci please smoke test

@CodaFi CodaFi force-pushed the in-sib-id-attitudes branch from 80977d9 to 5e41183 Compare July 31, 2018 23:50
Continuing work from swiftlang#18344, be more conservative about when we load
SwiftOnoneSupport.  Specifically, -emit-silgen and -emit-sibgen, despite
not going through the SIL Optimizer, may silently introduce dependencies
on SwiftOnoneSupport.

Because we want to support the ability to posthumously compile SILGen
and SIBGen'd files with these implicit dependencies, and because SIL
is not yet capable of expressing the dependency itself, we must always
assume we need to load SwiftOnoneSupport.
@CodaFi CodaFi force-pushed the in-sib-id-attitudes branch from 5e41183 to 3defe3b Compare August 1, 2018 00:25
@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 1, 2018

@swift-ci please smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 1, 2018

⛵️

@CodaFi CodaFi merged commit 501a5ef into swiftlang:master Aug 1, 2018
@CodaFi CodaFi deleted the in-sib-id-attitudes branch August 1, 2018 15:37
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