Reland [mlir] Remove uses of LLVM's legacy pass manager
authorArthur Eubanks <aeubanks@google.com>
Fri, 8 Apr 2022 22:18:16 +0000 (15:18 -0700)
committerArthur Eubanks <aeubanks@google.com>
Mon, 11 Apr 2022 23:53:32 +0000 (16:53 -0700)
commit7ccd026cf2819ba9f0e89f5100e9363ce5f3bcad
tree648aa8bd663d2202726d29c4bbe20d15038742a1
parentff84cb1660485b644085601d5f21c33a82ef0898
Reland [mlir] Remove uses of LLVM's legacy pass manager

Use the new pass manager.

This also removes the ability to run arbitrary sets of passes. Not sure if this functionality is used, but it doesn't seem to be tested.

No need to initialize passes outside of constructing the PassBuilder with the new pass manager.

Reland: Fixed custom calls to `-lower-matrix-intrinsics` in integration tests by replacing them with `-O0 -enable-matrix`.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D123425
12 files changed:
mlir/include/mlir/ExecutionEngine/OptUtils.h
mlir/lib/CAPI/ExecutionEngine/ExecutionEngine.cpp
mlir/lib/ExecutionEngine/CMakeLists.txt
mlir/lib/ExecutionEngine/JitRunner.cpp
mlir/lib/ExecutionEngine/OptUtils.cpp
mlir/test/Integration/Dialect/Vector/CPU/test-flat-transpose-col.mlir
mlir/test/Integration/Dialect/Vector/CPU/test-flat-transpose-row.mlir
mlir/test/Integration/Dialect/Vector/CPU/test-matrix-multiply-col.mlir
mlir/test/Integration/Dialect/Vector/CPU/test-matrix-multiply-row.mlir
mlir/tools/mlir-cpu-runner/mlir-cpu-runner.cpp
mlir/tools/mlir-spirv-cpu-runner/mlir-spirv-cpu-runner.cpp
mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp