[all-commits] [llvm/llvm-project] dd1b1d: [mlir][python] Allow adding to existing pass manager

rk via All-commits all-commits at lists.llvm.org
Fri Nov 4 09:04:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd1b1d44503288f98b298f1ec8b374137d2812e2
      https://github.com/llvm/llvm-project/commit/dd1b1d44503288f98b298f1ec8b374137d2812e2
  Author: rkayaith <rkayaith at gmail.com>
  Date:   2022-11-04 (Fri, 04 Nov 2022)

  Changed paths:
    M mlir/lib/Bindings/Python/Pass.cpp
    M mlir/test/python/integration/dialects/linalg/opsrun.py
    M mlir/test/python/pass_manager.py

  Log Message:
  -----------
  [mlir][python] Allow adding to existing pass manager

This adds a `PassManager.add` method which adds pipeline elements to the
pass manager. This allows for progressively building up a pipeline from
python without string manipulation.

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list