[Mlir-commits] [mlir] ef8e859 - [mlir] Fix Python tests after "module_terminator" migrated to ODS

Alex Zinenko llvmlistbot at llvm.org
Tue Nov 17 05:16:47 PST 2020


Author: Alex Zinenko
Date: 2020-11-17T14:16:31+01:00
New Revision: ef8e859c0b3c89846e9ceb6b292b1f9d622d6e51

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

LOG: [mlir] Fix Python tests after "module_terminator" migrated to ODS

The "module_terminator" op now has a custom syntax and therefore is
printed without quotes. Adapt Python tests to check for this syntax.

Added: 
    

Modified: 
    mlir/test/Bindings/Python/ir_operation.py

Removed: 
    


################################################################################
diff  --git a/mlir/test/Bindings/Python/ir_operation.py b/mlir/test/Bindings/Python/ir_operation.py
index 16407ca98e68..ddc4c2129844 100644
--- a/mlir/test/Bindings/Python/ir_operation.py
+++ b/mlir/test/Bindings/Python/ir_operation.py
@@ -60,7 +60,7 @@ def walk_operations(indent, op):
   # CHECK:         BLOCK 0:
   # CHECK:           OP 0: %0 = "custom.addi"
   # CHECK:           OP 1: return
-  # CHECK:    OP 1: "module_terminator"
+  # CHECK:    OP 1: module_terminator
   walk_operations("", op)
 
 run(testTraverseOpRegionBlockIterators)
@@ -97,7 +97,7 @@ def walk_operations(indent, op):
   # CHECK:         BLOCK 0:
   # CHECK:           OP 0: %0 = "custom.addi"
   # CHECK:           OP 1: return
-  # CHECK:    OP 1: "module_terminator"
+  # CHECK:    OP 1: module_terminator
   walk_operations("", module.operation)
 
 run(testTraverseOpRegionBlockIndices)


        


More information about the Mlir-commits mailing list