[Mlir-commits] [mlir] faeb7ec - [mlir] Fix broken build in pass_manager.py

Matthias Springer llvmlistbot at llvm.org
Tue Aug 3 21:31:23 PDT 2021


Author: Matthias Springer
Date: 2021-08-04T13:12:17+09:00
New Revision: faeb7ec68bc18215667dc6fe31531b703670158d

URL: https://github.com/llvm/llvm-project/commit/faeb7ec68bc18215667dc6fe31531b703670158d
DIFF: https://github.com/llvm/llvm-project/commit/faeb7ec68bc18215667dc6fe31531b703670158d.diff

LOG: [mlir] Fix broken build in pass_manager.py

This test ensures that an error is generated from the Python side when running a module pass on a function. The test used to instantiate ViewOpGraph, however, this pass was changed into a general "any op" pass in D106253. Therefore, a different pass must be used in this test.

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

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 0f0c9ac0ea55c..380dc7ca3fb28 100644
--- a/mlir/test/python/pass_manager.py
+++ b/mlir/test/python/pass_manager.py
@@ -71,10 +71,10 @@ def testParseFail():
 def testInvalidNesting():
   with Context():
     try:
-      pm = PassManager.parse("builtin.func(view-op-graph)")
+      pm = PassManager.parse("builtin.func(normalize-memrefs)")
     except ValueError as e:
-      # CHECK: Can't add pass 'ViewOpGraphPass' restricted to 'builtin.module' on a PassManager intended to run on 'builtin.func', did you intend to nest?
-      # CHECK: ValueError exception: invalid pass pipeline 'builtin.func(view-op-graph)'.
+      # 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: ValueError exception: invalid pass pipeline 'builtin.func(normalize-memrefs)'.
       log("ValueError exception:", e)
     else:
       log("Exception not produced")


        


More information about the Mlir-commits mailing list