[mlir] Add macro for enabling all generated pass declarations
authorrkayaith <rkayaith@gmail.com>
Tue, 27 Sep 2022 21:23:59 +0000 (17:23 -0400)
committerrkayaith <rkayaith@gmail.com>
Wed, 28 Sep 2022 15:49:28 +0000 (11:49 -0400)
commit868a8fd88f84b26e810ccf18af8e621947031cbb
treef75436ef562e29f848beda08fb398ab1cf6554f8
parent35f2584ef9897ec9e5455ad2660dc1be5171c38c
[mlir] Add macro for enabling all generated pass declarations

Currently the generated pass declarations have to be enabled per-pass
using multiple `GEN_PASS_DECL_{PASSNAME}` defines. This adds
`GEN_PASS_DECL`, which enables the declarations for all passes in the
group with a single macro. This is convenient for cases where a single
header is used for all passes in the group.

Reviewed By: mehdi_amini, mscuttari

Differential Revision: https://reviews.llvm.org/D134766
mlir/docs/PassManagement.md
mlir/tools/mlir-tblgen/PassGen.cpp
mlir/unittests/TableGen/PassGenTest.cpp