[all-commits] [llvm/llvm-project] 7e2217: [mlir-opt] Delay pass manager creation until after...

rk via All-commits all-commits at lists.llvm.org
Tue Sep 27 17:34:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e22179d38c438fedb0d9bb0cff1585843bd7082
      https://github.com/llvm/llvm-project/commit/7e22179d38c438fedb0d9bb0cff1585843bd7082
  Author: rkayaith <rkayaith at gmail.com>
  Date:   2022-09-27 (Tue, 27 Sep 2022)

  Changed paths:
    M mlir/include/mlir/Pass/PassRegistry.h
    M mlir/lib/Pass/PassCrashRecovery.cpp
    M mlir/lib/Tools/mlir-opt/MlirOptMain.cpp

  Log Message:
  -----------
  [mlir-opt] Delay pass manager creation until after parsing

Currently the pass manager is created before parsing, which requires an
assumption that the top-level operation will be `builtin.module`.
Delaying the creation allows for using the parsed top-level operation as
the PassManager operation instead.

A followup change will allow for parsing top-level operations other than
`builtin.module`.

Reviewed By: rriddle

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




More information about the All-commits mailing list