HomePhabricator

[mlir][Pass] Add support for generating pass utilities via tablegen

Authored by rriddle on Apr 1 2020, 1:50 AM.

Description

[mlir][Pass] Add support for generating pass utilities via tablegen

This revision adds support for generating utilities for passes such as options/statistics/etc. that can be inferred from the tablegen definition. This removes additional boilerplate from the pass, and also makes it easier to remove the reliance on the pass registry to provide certain things(e.g. the pass argument).

Differential Revision: https://reviews.llvm.org/D76659