[Mlir-commits] [mlir] e51a20e - Fix python test to register all passes before using "normalize-memrefs"
Mehdi Amini
llvmlistbot at llvm.org
Mon Jan 24 21:15:50 PST 2022
Author: Mehdi Amini
Date: 2022-01-25T05:15:42Z
New Revision: e51a20e166b6c4c7e610fa323d8dcf1213ce88a3
URL: https://github.com/llvm/llvm-project/commit/e51a20e166b6c4c7e610fa323d8dcf1213ce88a3
DIFF: https://github.com/llvm/llvm-project/commit/e51a20e166b6c4c7e610fa323d8dcf1213ce88a3.diff
LOG: Fix python test to register all passes before using "normalize-memrefs"
The pass moved from mlir.transforms to the Memref dialect.
Added:
Modified:
mlir/test/python/pass_manager.py
Removed:
################################################################################
diff --git a/mlir/test/python/pass_manager.py b/mlir/test/python/pass_manager.py
index 380dc7ca3fb28..e5a42573a0e22 100644
--- a/mlir/test/python/pass_manager.py
+++ b/mlir/test/python/pass_manager.py
@@ -71,6 +71,7 @@ def testParseFail():
def testInvalidNesting():
with Context():
try:
+ import mlir.all_passes_registration
pm = PassManager.parse("builtin.func(normalize-memrefs)")
except ValueError as e:
# CHECK: Can't add pass 'NormalizeMemRefs' restricted to 'builtin.module' on a PassManager intended to run on 'builtin.func', did you intend to nest?
More information about the Mlir-commits
mailing list