File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
mlir/test/python/dialects Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments