[all-commits] [llvm/llvm-project] 97f15e: [mlir][python] Provide "all passes" registration m...

Aart Bik via All-commits all-commits at lists.llvm.org
Wed May 26 15:15:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 97f15eda4f26eb18c914884ce808b4e366e29c34
      https://github.com/llvm/llvm-project/commit/97f15eda4f26eb18c914884ce808b4e366e29c34
  Author: Aart Bik <ajcbik at google.com>
  Date:   2021-05-26 (Wed, 26 May 2021)

  Changed paths:
    M mlir/include/mlir-c/Registration.h
    A mlir/lib/Bindings/Python/AllPassesRegistration.cpp
    M mlir/lib/Bindings/Python/CMakeLists.txt
    M mlir/lib/CAPI/Registration/Registration.cpp
    A mlir/python/mlir/all_passes_registration/__init__.py

  Log Message:
  -----------
  [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




More information about the All-commits mailing list