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

[CPU] Switch to new pass generation tablegen definitions #18132

Merged
merged 5 commits into from
Aug 8, 2024

Conversation

hanhanW
Copy link
Contributor

@hanhanW hanhanW commented Aug 7, 2024

This is mostly an NFC change. It does more cleanups on ConvertToLLVM pass which moves private options to tablegen definition. Also, the revision removes a duplicated option from the ConvertToLLVM pass. The additional change is that it adds dependent dialects to ConvertToLLVM pass.

This is generally good because it removes the duplication of pass definition, and remove the magic numbers from the pass declarations. Before the change, we duplicate all the option default values to Passes.h.

Some passes are still defined in Passes.h because passing tablegen option struct is a visual noise. It makes the pipeline configuration much cleaner.

Copy link
Collaborator

@benvanik benvanik left a comment

Choose a reason for hiding this comment

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

nice cleanup! <3

@hanhanW hanhanW marked this pull request as ready for review August 7, 2024 01:04
@hanhanW hanhanW requested review from lialan, pashu123 and Max191 August 7, 2024 01:04
@hanhanW
Copy link
Contributor Author

hanhanW commented Aug 7, 2024

The getDependentDialects issue in ConvertToLLVM pass is annoying... It's still failing even I dup what we have in upstream.. I'll try to register the dialects myself. Sadly, I can't reproduce it locally, so I will rely on CI to test it..

@hanhanW
Copy link
Contributor Author

hanhanW commented Aug 8, 2024

Okay, the PR is ready to go. Can someone review it?

Copy link
Contributor

@MaheshRavishankar MaheshRavishankar left a comment

Choose a reason for hiding this comment

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

Nice!! Thanks! One folder down!

Copy link
Contributor

@Max191 Max191 left a comment

Choose a reason for hiding this comment

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

Nice! Thanks Hanhan!

@hanhanW hanhanW merged commit 050a449 into iree-org:main Aug 8, 2024
44 checks passed
@hanhanW hanhanW deleted the cpu-pass-cleanup branch August 8, 2024 16:05
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.

4 participants