@@ -14,7 +14,7 @@ func @deduplicate_map_input(%arg0: f32) {
1414 // CHECK: ^bb0(%[[V1:.*]]: f32):
1515 ^bb0 (%arg1: f32 , %arg2: f32 ):
1616 // CHECK: addf %[[V1]], %[[V1]] : f32
17- %1 = addf %arg1 , %arg2 : f32
17+ %1 = arith. addf %arg1 , %arg2 : f32
1818 call @use (%1 ) : (f32 ) -> ()
1919 sair.return
2020 // CHECK: } : #sair.shape<()>, (f32) -> ()
@@ -39,7 +39,7 @@ func @deduplicate_map_input_instances(%arg0: f32) {
3939 ]
4040 } {
4141 ^bb0 (%arg1: f32 , %arg2: f32 ):
42- %1 = addf %arg1 , %arg2 : f32
42+ %1 = arith. addf %arg1 , %arg2 : f32
4343 call @use (%1 ) : (f32 ) -> ()
4444 sair.return
4545 } : #sair.shape <()>, (f32 , f32 ) -> ()
@@ -54,8 +54,8 @@ func @deduplicate_map_output() {
5454 // CHECK: %[[V0:.*]] = sair.map
5555 %0 , %1 = sair.map {
5656 ^bb0 :
57- // CHECK: %[[V1:.*]] = constant
58- %2 = constant 1.0 : f32
57+ // CHECK: %[[V1:.*]] = arith. constant
58+ %2 = arith. constant 1.0 : f32
5959 // CHECK: sair.return %[[V1]] : f32
6060 sair.return %2 , %2 : f32 , f32
6161 // CHECK: #sair.shape<()>, () -> f32
@@ -68,7 +68,7 @@ func @deduplicate_map_output() {
6868
6969// CHECK-LABEL: @fold_empty_proj
7070func @fold_empty_proj (%arg0: f32 ) {
71- %n = constant 8 : index
71+ %n = arith. constant 8 : index
7272 %0 = sair.program {
7373 %sn = sair.from_scalar %n : !sair.value <(), index >
7474 %1 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -86,7 +86,7 @@ func @fold_empty_proj(%arg0: f32) {
8686
8787// CHECK-LABEL: @fold_empty_fby
8888func @fold_empty_fby (%arg0: f32 ) {
89- %n = constant 8 : index
89+ %n = arith. constant 8 : index
9090 %0 = sair.program {
9191 %sn = sair.from_scalar %n : !sair.value <(), index >
9292 %1 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -104,7 +104,7 @@ func @fold_empty_fby(%arg0: f32) {
104104
105105// CHECK-LABEL: @merge_proj
106106func @merge_proj (%arg0: f32 ) {
107- %n = constant 8 : index
107+ %n = arith. constant 8 : index
108108 %0 = sair.program {
109109 %sn = sair.from_scalar %n : !sair.value <(), index >
110110 %1 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -124,7 +124,7 @@ func @merge_proj(%arg0: f32) {
124124
125125// CHECK-LABEL: @remove_cyclic_fby
126126func @remove_cyclic_fby (%arg0: f32 , %arg1: memref <?x?x?xf32 >) {
127- %n = constant 8 : index
127+ %n = arith. constant 8 : index
128128 sair.program {
129129 %sn = sair.from_scalar %n : !sair.value <(), index >
130130 %0 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -145,7 +145,7 @@ func @remove_cyclic_fby(%arg0: f32, %arg1: memref<?x?x?xf32>) {
145145
146146// CHECK-LABEL: @remove_useless_dims_fby
147147func @remove_useless_dims_fby (%arg0: f32 ) {
148- %n = constant 8 : index
148+ %n = arith. constant 8 : index
149149 %0 = sair.program {
150150 %sn = sair.from_scalar %n : !sair.value <(), index >
151151 %0 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -167,7 +167,7 @@ func @remove_useless_dims_fby(%arg0: f32) {
167167
168168// CHECK-LABEL: @remove_useless_dims_proj
169169func @remove_useless_dims_proj (%arg0: f32 ) {
170- %n = constant 8 : index
170+ %n = arith. constant 8 : index
171171 %0 = sair.program {
172172 %sn = sair.from_scalar %n : !sair.value <(), index >
173173 %0 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -189,7 +189,7 @@ func @remove_useless_dims_proj(%arg0: f32) {
189189
190190// CHECK-LABEL: @remove_useless_dims_proj_dependent
191191func @remove_useless_dims_proj_dependent (%arg0: f32 , %arg1: index ) {
192- %n = constant 8 : index
192+ %n = arith. constant 8 : index
193193 %0 = sair.program {
194194 %sn = sair.from_scalar %n : !sair.value <(), index >
195195 %0 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -217,7 +217,7 @@ func @remove_useless_dims_proj_dependent(%arg0: f32, %arg1: index) {
217217
218218// CHECK-LABEL: @mappings
219219func @mappings (%arg0: f32 ) {
220- %n = constant 8 : index
220+ %n = arith. constant 8 : index
221221 %0 = sair.program {
222222 %sn = sair.from_scalar %n : !sair.value <(), index >
223223 %0 = sair.from_scalar %arg0 : !sair.value <(), f32 >
0 commit comments