Skip to content

Commit d1da9f1

Browse files
committed
Py syntax fix -- 4 of n
1 parent cbca7b7 commit d1da9f1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mlir/test/python/dialects/transform_tune_ext.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,19 @@ def testAlternativesOp(target):
127127
2,
128128
selected_region=outcome_of_left_or_right_decision,
129129
)
130-
with ir.InsertionPoint(left_or_right_as_before.alternatives[_left:=0].blocks[0]):
130+
with ir.InsertionPoint(
131+
left_or_right_as_before.alternatives[idx_for_left].blocks[0]
132+
):
131133
# CHECK: transform.param.constant 1337
132134
i32_1337 = ir.IntegerAttr.get(ir.IntegerType.get_signless(32), 1337)
133135
c1337 = transform.ParamConstantOp(transform.AnyParamType.get(), i32_1337)
134136
# CHECK: transform.debug.emit_param_as_remark
135137
debug.emit_param_as_remark(c1337)
136138
transform.yield_([])
137139
# CHECK-NEXT: }, {
138-
with ir.InsertionPoint(left_or_right_as_before.alternatives[_right:=1].blocks[0]):
140+
with ir.InsertionPoint(
141+
left_or_right_as_before.alternatives[idx_for_right].blocks[0]
142+
):
139143
# CHECK: transform.param.constant 42
140144
i32_42 = ir.IntegerAttr.get(ir.IntegerType.get_signless(32), 42)
141145
c42 = transform.ParamConstantOp(transform.AnyParamType.get(), i32_42)

0 commit comments

Comments
 (0)