Skip to content

Commit

Permalink
[mlir] Fix Python tests after "module_terminator" migrated to ODS
Browse files Browse the repository at this point in the history
The "module_terminator" op now has a custom syntax and therefore is
printed without quotes. Adapt Python tests to check for this syntax.
  • Loading branch information
ftynse committed Nov 17, 2020
1 parent d44edfc commit ef8e859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlir/test/Bindings/Python/ir_operation.py
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ef8e859

Please sign in to comment.