Skip to content

Reland "[CodeGen] Support start/stop in CodeGenPassBuilder (#70912)" #78570

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
Jan 20, 2024

Conversation

paperchalice
Copy link
Contributor

Unfortunately the legacy pass system can't recognize no-op-module and no-op-function so it causes test failure in CodeGenTests. Add a workaround in function PassInfo *getPassInfo(StringRef PassName), TargetPassConfig.cpp.

@aeubanks
Copy link
Contributor

I'm confused, getPassInfo() should only be used for the legacy pass manager?

@paperchalice
Copy link
Contributor Author

I'm confused, getPassInfo() should only be used for the legacy pass manager?

Yes, but in unit test I use the option -start-after=no-op-module, legacy pass manager doesn't recognize no-op-module.

Add `-start/stop-before/after` support for CodeGenPassBuilder.
Part of llvm#69879.
@paperchalice
Copy link
Contributor Author

Remove the workaround, old implementation and unit test, because we can test it in llc soon.

Copy link
Contributor

@aeubanks aeubanks left a comment

Choose a reason for hiding this comment

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

sure, sgtm

@paperchalice paperchalice merged commit ab0d8fc into llvm:main Jan 20, 2024
@paperchalice paperchalice deleted the startstop branch January 20, 2024 10:50
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