[mlir] Fix Python tests after "module_terminator" migrated to ODS
authorAlex Zinenko <zinenko@google.com>
Tue, 17 Nov 2020 13:15:11 +0000 (14:15 +0100)
committerAlex Zinenko <zinenko@google.com>
Tue, 17 Nov 2020 13:16:31 +0000 (14:16 +0100)
The "module_terminator" op now has a custom syntax and therefore is
printed without quotes. Adapt Python tests to check for this syntax.

mlir/test/Bindings/Python/ir_operation.py

index 16407ca..ddc4c21 100644 (file)
@@ -60,7 +60,7 @@ def testTraverseOpRegionBlockIterators():
   # 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 testTraverseOpRegionBlockIndices():
   # 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)