Skip to content

[Frontend] Some pipeline refactoring #32601

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
Jun 30, 2020

Conversation

hamishknight
Copy link
Contributor

@hamishknight hamishknight commented Jun 29, 2020

Move mangling stats, dependency verification, and API dumping to performEndOfPipeline. In the latter two cases this allows us to free the ASTContext before LLVM.

In addition, internalize the creation of the intermodule dependency tracker such that it's only set by CompilerInstance::setup.

@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight requested a review from CodaFi June 29, 2020 17:17
And call from `CompilerInstance::setup`.
Expand the FrontendOptions to allow the enabling
of the dependency tracker for non-system
dependencies, and switch the previous clients of
`createDependencyTracker` over to using this
option. This ensures that the dependency tracker
is now set only during `CompilerInstance::setup`.
Allow the verification of dependencies before LLVM,
allowing the freeing of the ASTContext.
This allows us to remove another condition that
was previously preventing the ASTContext from being
freed before LLVM.
@hamishknight hamishknight force-pushed the not-yet-over-and-out branch from 9e0f6c2 to 553dadd Compare June 29, 2020 22:28
@hamishknight
Copy link
Contributor Author

swiftlang/llvm-project#1392

@swift-ci please test

@swiftlang swiftlang deleted a comment from swift-ci Jun 29, 2020
@hamishknight hamishknight changed the title [Frontend] Move some more stats + outputs to end of pipeline [Frontend] Some pipeline refactoring Jun 29, 2020
@swiftlang swiftlang deleted a comment from swift-ci Jun 30, 2020
@swiftlang swiftlang deleted a comment from swift-ci Jun 30, 2020
@swiftlang swiftlang deleted a comment from swift-ci Jun 30, 2020
hamishknight added a commit to swiftlang/llvm-project that referenced this pull request Jun 30, 2020
@hamishknight hamishknight merged commit 5c27465 into swiftlang:master Jun 30, 2020
@hamishknight hamishknight deleted the not-yet-over-and-out branch June 30, 2020 15:49
hamishknight added a commit to swiftlang/llvm-project that referenced this pull request Jun 30, 2020
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