forked from OSchip/llvm-project
Fix python test to register all passes before using "normalize-memrefs"
The pass moved from mlir.transforms to the Memref dialect.
This commit is contained in:
parent
63b8018468
commit
e51a20e166
|
@ -71,6 +71,7 @@ run(testParseFail)
|
||||||
def testInvalidNesting():
|
def testInvalidNesting():
|
||||||
with Context():
|
with Context():
|
||||||
try:
|
try:
|
||||||
|
import mlir.all_passes_registration
|
||||||
pm = PassManager.parse("builtin.func(normalize-memrefs)")
|
pm = PassManager.parse("builtin.func(normalize-memrefs)")
|
||||||
except ValueError as e:
|
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?
|
# CHECK: Can't add pass 'NormalizeMemRefs' restricted to 'builtin.module' on a PassManager intended to run on 'builtin.func', did you intend to nest?
|
||||||
|
|
Loading…
Reference in New Issue