Skip to content

IRNormalizer: Replace cl::opts with pass parameters #133874

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

Conversation

arsenm
Copy link
Contributor

@arsenm arsenm commented Apr 1, 2025

Not sure why the "fold-all" option naming didn't match the
variable "FoldPreOutputs", but I've preserved the difference.

More annoyingly, the pass name "normalize" does not match the pass
name IRNormalizer and should probably be fixed one way or the other.

Also the existing test coverage for the flags is lacking. I've added
a test that shows they parse, but we should have tests that they
do something.

Not sure why the "fold-all" option naming didn't match the
variable "FoldPreOutputs", but I've preserved the difference.

More annoyingly, the pass name "normalize" does not match the pass
name IRNormalizer and should probably be fixed one way or the other.

Also the existing test coverage for the flags is lacking. I've added
a test that shows they parse, but we should have tests that they
do something.
Copy link
Contributor Author

arsenm commented Apr 1, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor Author

arsenm commented Apr 1, 2025

Merge activity

  • Apr 1, 12:25 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Apr 1, 12:27 PM EDT: A user merged this pull request with Graphite.

@arsenm arsenm merged commit 7e25b24 into main Apr 1, 2025
14 checks passed
@arsenm arsenm deleted the users/arsenm/ir-normalizer/use-pass-params-instead-of-cl-opts branch April 1, 2025 16:27
Ankur-0429 pushed a commit to Ankur-0429/llvm-project that referenced this pull request Apr 2, 2025
Not sure why the "fold-all" option naming didn't match the
variable "FoldPreOutputs", but I've preserved the difference.

More annoyingly, the pass name "normalize" does not match the pass
name IRNormalizer and should probably be fixed one way or the other.

Also the existing test coverage for the flags is lacking. I've added
a test that shows they parse, but we should have tests that they
do something.
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