[mlir][python] Provide "all passes" registration module in Python
authorAart Bik <ajcbik@google.com>
Wed, 26 May 2021 19:44:33 +0000 (12:44 -0700)
committerAart Bik <ajcbik@google.com>
Wed, 26 May 2021 22:14:57 +0000 (15:14 -0700)
commit97f15eda4f26eb18c914884ce808b4e366e29c34
tree7de5a89623c20ee70edab0766a37ec7b06a63f68
parent0283abee5c87e86552b456a34d01311b66c37207
[mlir][python] Provide "all passes" registration module in Python

Currently, passes are registered on a per-dialect basis, which
provides the smallest footprint obviously. But for prototyping
and experimentation, a convenience "all passes" module is provided,
which registers all known MLIR passes in one run.

Usage in Python:

import mlir.all_passes_registration

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D103130
mlir/include/mlir-c/Registration.h
mlir/lib/Bindings/Python/AllPassesRegistration.cpp [new file with mode: 0644]
mlir/lib/Bindings/Python/CMakeLists.txt
mlir/lib/CAPI/Registration/Registration.cpp
mlir/python/mlir/all_passes_registration/__init__.py [new file with mode: 0644]