-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[PassBuilder] Expose parametrized passes related functions #85357
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some example names? I'm not sure exactly what you're talking about
assert(false && | ||
"unable to strip pass name from parametrized pass specification"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
llvm_unreachable
} | ||
if (!Params.empty() && | ||
(!Params.consume_front("<") || !Params.consume_back(">"))) { | ||
assert(false && "invalid format for parametrized pass name"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
llvm_unreachable
Example in AMDGPU, |
Can you add to the commit description? |
9a0c055
to
2200b53
Compare
Some targets have passes with parameters, e.g. ARM, AMDGPU and MIPS. For example, AMDGPU has a pass `AMDGPUAtomicOptimizerPass` which need a `ScanOption`, this commit enables the syntax like `-passes=amdgpu-atomic-optimizer<strategy=dpp>` for backend passes.
Some targets have passes with parameters, e.g. ARM, AMDGPU and MIPS.
For example, AMDGPU has a pass
AMDGPUAtomicOptimizerPass
which need a
ScanOption
, this commit enables the syntaxlike
-passes=amdgpu-atomic-optimizer<strategy=dpp>
for backend passes.