This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Pass] Add a new PassNameCLParser specifically for parsing lists of pass names
ClosedPublic

Authored by rriddle on Dec 9 2020, 5:33 PM.

Details

Summary

This parser does not include the general pass_pipeline option, the pass pipeline entries, or the options of pass entries. This is useful for cases such as print-ir-after that just want the user to select specific pass types. This revision greatly reduces the amount of text in --help for several MLIR based tools.

Fixes PR#45495

Diff Detail

Event Timeline

rriddle created this revision.Dec 9 2020, 5:33 PM
rriddle requested review of this revision.Dec 9 2020, 5:33 PM
mehdi_amini accepted this revision.Dec 14 2020, 7:12 PM
This revision is now accepted and ready to land.Dec 14 2020, 7:12 PM
This revision was landed with ongoing or failed builds.Dec 15 2020, 2:59 PM
This revision was automatically updated to reflect the committed changes.