Skip to content
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

[sycl-post-link][NewPM] Port passes execution for extracted submodule… #5337

Merged

Conversation

mlychkov
Copy link
Contributor

… into new PM

Signed-off-by: Mikhail Lychkov mikhail.lychkov@intel.com

… into new PM

Signed-off-by: Mikhail Lychkov <mikhail.lychkov@intel.com>
@mlychkov mlychkov marked this pull request as ready for review January 19, 2022 12:20
@mlychkov mlychkov requested a review from a team as a code owner January 19, 2022 12:20
// TODO: Use the new PassManager instead?
legacy::PassManager Passes;
ModuleAnalysisManager MAM;
MAM.registerPass([&] { return PassInstrumentationAnalysis(); });
Copy link
Contributor

Choose a reason for hiding this comment

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

For the sake of my own education, could you please comment why this pass is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PassInstrumentationAnalysis pass is used by the new Pass Manager on each iteration over user specified passes.
So, it should be registered always.
Another option to register it is to call PassBuilder::registerModuleAnalyses(ModuleAnalysisManager &);

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that current variant is short enough, so we can leave it as-is. I just wanted to make sure that this is mandatory step

@AlexeySachkov AlexeySachkov merged commit 1f8bcbb into intel:sycl Jan 21, 2022
@mlychkov mlychkov deleted the private/mlychkov/newPM_port_sycl-post-link branch January 25, 2022 09:17
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.

None yet

2 participants