Skip to content

Commit c82592c

Browse files
committed
Fix py formatting -- 2 out of n
1 parent 940a719 commit c82592c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mlir/test/python/dialects/transform_tune_ext.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ def testAlternativesOp(target):
8484
left_or_right = tune.AlternativesOp(
8585
[transform.AnyParamType.get()], "left_or_right", 2
8686
)
87-
with ir.InsertionPoint(left_or_right.alternatives[_left := 0].blocks[0]):
87+
with ir.InsertionPoint(left_or_right.alternatives[_left:=0].blocks[0]):
8888
# CHECK: %[[C0:.*]] = transform.param.constant 0
8989
i32_0 = ir.IntegerAttr.get(ir.IntegerType.get_signless(32), 0)
9090
c0 = transform.ParamConstantOp(transform.AnyParamType.get(), i32_0)
9191
# CHECK: transform.yield %[[C0]]
9292
transform.yield_(c0)
9393
# CHECK-NEXT: }, {
94-
with ir.InsertionPoint(left_or_right.alternatives[_right := 1].blocks[0]):
94+
with ir.InsertionPoint(left_or_right.alternatives[_right:=1].blocks[0]):
9595
# CHECK: %[[C1:.*]] = transform.param.constant 1
9696
i32_1 = ir.IntegerAttr.get(ir.IntegerType.get_signless(32), 1)
9797
c1 = transform.ParamConstantOp(transform.AnyParamType.get(), i32_1)
@@ -104,14 +104,14 @@ def testAlternativesOp(target):
104104
fork_in_the_road = tune.AlternativesOp(
105105
[transform.AnyParamType.get()], "fork_in_the_road", 2, selected_region=0
106106
)
107-
with ir.InsertionPoint(fork_in_the_road.alternatives[_left := 0].blocks[0]):
107+
with ir.InsertionPoint(fork_in_the_road.alternatives[_left:=0].blocks[0]):
108108
# CHECK: %[[C0:.*]] = transform.param.constant 0
109109
i32_0 = ir.IntegerAttr.get(ir.IntegerType.get_signless(32), 0)
110110
c0 = transform.ParamConstantOp(transform.AnyParamType.get(), i32_0)
111111
# CHECK: transform.yield %[[C0]]
112112
transform.yield_(c0)
113113
# CHECK-NEXT: }, {
114-
with ir.InsertionPoint(fork_in_the_road.alternatives[_right := 1].blocks[0]):
114+
with ir.InsertionPoint(fork_in_the_road.alternatives[_right:=1].blocks[0]):
115115
# CHECK: %[[C1:.*]] = transform.param.constant 1
116116
i32_1 = ir.IntegerAttr.get(ir.IntegerType.get_signless(32), 1)
117117
c1 = transform.ParamConstantOp(transform.AnyParamType.get(), i32_1)
@@ -126,15 +126,15 @@ def testAlternativesOp(target):
126126
2,
127127
selected_region=outcome_of_left_or_right_decision,
128128
)
129-
with ir.InsertionPoint(left_or_right_as_before.alternatives[_left := 0].blocks[0]):
129+
with ir.InsertionPoint(left_or_right_as_before.alternatives[_left:=0].blocks[0]):
130130
# CHECK: transform.param.constant 1337
131131
i32_1337 = ir.IntegerAttr.get(ir.IntegerType.get_signless(32), 1337)
132132
c1337 = transform.ParamConstantOp(transform.AnyParamType.get(), i32_1337)
133133
# CHECK: transform.debug.emit_param_as_remark
134134
debug.emit_param_as_remark(c1337)
135135
transform.yield_([])
136136
# CHECK-NEXT: }, {
137-
with ir.InsertionPoint(left_or_right_as_before.alternatives[_right := 1].blocks[0]):
137+
with ir.InsertionPoint(left_or_right_as_before.alternatives[_right:=1].blocks[0]):
138138
# CHECK: transform.param.constant 42
139139
i32_42 = ir.IntegerAttr.get(ir.IntegerType.get_signless(32), 42)
140140
c42 = transform.ParamConstantOp(transform.AnyParamType.get(), i32_42)

0 commit comments

Comments
 (0)