[mlir][Pass] Add a new `Pass::getArgument` hook
authorRiver Riddle <riddleriver@gmail.com>
Sat, 11 Apr 2020 05:48:58 +0000 (22:48 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Sat, 11 Apr 2020 05:50:14 +0000 (22:50 -0700)
commit7824768b2e784b81ea988b86ae944edf6aeb0828
tree530c107111686ac114d298fba0c5a7d65c8db67d
parent7ad46cfe41554627caa9e91313682ad9dd4b9c3a
[mlir][Pass] Add a new `Pass::getArgument` hook

Summary: This hook allows for passes to specify the command line argument without the need for registration. More concretely this will allow for generating pass crash reproducers without needing to have the passes registered. This should remove the need for production tools to register passes, leaving that solely to development tools like mlir-opt.

Differential Revision: https://reviews.llvm.org/D77907
mlir/include/mlir/Pass/Pass.h
mlir/lib/Pass/Pass.cpp
mlir/tools/mlir-tblgen/PassGen.cpp