[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.
This commit is contained in:
Alex Zinenko 2020-11-17 14:15:11 +01:00
parent d44edfc109
commit ef8e859c0b
1 changed files with 2 additions and 2 deletions

View 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)