[mlir][Pass] Add a new PassNameCLParser specifically for parsing lists of pass names
authorRiver Riddle <riddleriver@gmail.com>
Tue, 15 Dec 2020 22:42:16 +0000 (14:42 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Tue, 15 Dec 2020 22:56:09 +0000 (14:56 -0800)
commite9cda7c5a0b70dd029e201cd2cc2e1d7105d0672
tree846b7375959762e6199c71b9fcf5c27ed9cab07b
parent7e7f38f853fbf96c6ab2a0e5f9d7747ef8a76ffe
[mlir][Pass] Add a new PassNameCLParser specifically for parsing lists of pass names

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

Differential Revision: https://reviews.llvm.org/D92987
mlir/include/mlir/Pass/PassRegistry.h
mlir/lib/Pass/PassManagerOptions.cpp
mlir/lib/Pass/PassRegistry.cpp