aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/test/Bindings/Python/ods_helpers.py')
-rw-r--r--mlir/test/Bindings/Python/ods_helpers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/test/Bindings/Python/ods_helpers.py b/mlir/test/Bindings/Python/ods_helpers.py
index badeac37034f..5aa9bef22a6b 100644
--- a/mlir/test/Bindings/Python/ods_helpers.py
+++ b/mlir/test/Bindings/Python/ods_helpers.py
@@ -29,7 +29,7 @@ def testOdsBuildDefaultImplicitRegions():
with Context() as ctx, Location.unknown():
ctx.allow_unregistered_dialects = True
m = Module.create()
- with InsertionPoint.at_block_terminator(m.body):
+ with InsertionPoint(m.body):
op = TestFixedRegionsOp.build_generic(results=[], operands=[])
# CHECK: NUM_REGIONS: 2
print(f"NUM_REGIONS: {len(op.regions)}")
@@ -84,7 +84,7 @@ def testOdsBuildDefaultNonVariadic():
with Context() as ctx, Location.unknown():
ctx.allow_unregistered_dialects = True
m = Module.create()
- with InsertionPoint.at_block_terminator(m.body):
+ with InsertionPoint(m.body):
v0 = add_dummy_value()
v1 = add_dummy_value()
t0 = IntegerType.get_signless(8)
@@ -111,7 +111,7 @@ def testOdsBuildDefaultSizedVariadic():
with Context() as ctx, Location.unknown():
ctx.allow_unregistered_dialects = True
m = Module.create()
- with InsertionPoint.at_block_terminator(m.body):
+ with InsertionPoint(m.body):
v0 = add_dummy_value()
v1 = add_dummy_value()
v2 = add_dummy_value()
@@ -187,7 +187,7 @@ def testOdsBuildDefaultCastError():
with Context() as ctx, Location.unknown():
ctx.allow_unregistered_dialects = True
m = Module.create()
- with InsertionPoint.at_block_terminator(m.body):
+ with InsertionPoint(m.body):
v0 = add_dummy_value()
v1 = add_dummy_value()
t0 = IntegerType.get_signless(8)