@@ -14,7 +14,7 @@ func @deduplicate_map_input(%arg0: f32) {
14
14
// CHECK: ^bb0(%[[V1:.*]]: f32):
15
15
^bb0 (%arg1: f32 , %arg2: f32 ):
16
16
// CHECK: addf %[[V1]], %[[V1]] : f32
17
- %1 = addf %arg1 , %arg2 : f32
17
+ %1 = arith. addf %arg1 , %arg2 : f32
18
18
call @use (%1 ) : (f32 ) -> ()
19
19
sair.return
20
20
// CHECK: } : #sair.shape<()>, (f32) -> ()
@@ -39,7 +39,7 @@ func @deduplicate_map_input_instances(%arg0: f32) {
39
39
]
40
40
} {
41
41
^bb0 (%arg1: f32 , %arg2: f32 ):
42
- %1 = addf %arg1 , %arg2 : f32
42
+ %1 = arith. addf %arg1 , %arg2 : f32
43
43
call @use (%1 ) : (f32 ) -> ()
44
44
sair.return
45
45
} : #sair.shape <()>, (f32 , f32 ) -> ()
@@ -54,8 +54,8 @@ func @deduplicate_map_output() {
54
54
// CHECK: %[[V0:.*]] = sair.map
55
55
%0 , %1 = sair.map {
56
56
^bb0 :
57
- // CHECK: %[[V1:.*]] = constant
58
- %2 = constant 1.0 : f32
57
+ // CHECK: %[[V1:.*]] = arith. constant
58
+ %2 = arith. constant 1.0 : f32
59
59
// CHECK: sair.return %[[V1]] : f32
60
60
sair.return %2 , %2 : f32 , f32
61
61
// CHECK: #sair.shape<()>, () -> f32
@@ -68,7 +68,7 @@ func @deduplicate_map_output() {
68
68
69
69
// CHECK-LABEL: @fold_empty_proj
70
70
func @fold_empty_proj (%arg0: f32 ) {
71
- %n = constant 8 : index
71
+ %n = arith. constant 8 : index
72
72
%0 = sair.program {
73
73
%sn = sair.from_scalar %n : !sair.value <(), index >
74
74
%1 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -86,7 +86,7 @@ func @fold_empty_proj(%arg0: f32) {
86
86
87
87
// CHECK-LABEL: @fold_empty_fby
88
88
func @fold_empty_fby (%arg0: f32 ) {
89
- %n = constant 8 : index
89
+ %n = arith. constant 8 : index
90
90
%0 = sair.program {
91
91
%sn = sair.from_scalar %n : !sair.value <(), index >
92
92
%1 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -104,7 +104,7 @@ func @fold_empty_fby(%arg0: f32) {
104
104
105
105
// CHECK-LABEL: @merge_proj
106
106
func @merge_proj (%arg0: f32 ) {
107
- %n = constant 8 : index
107
+ %n = arith. constant 8 : index
108
108
%0 = sair.program {
109
109
%sn = sair.from_scalar %n : !sair.value <(), index >
110
110
%1 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -124,7 +124,7 @@ func @merge_proj(%arg0: f32) {
124
124
125
125
// CHECK-LABEL: @remove_cyclic_fby
126
126
func @remove_cyclic_fby (%arg0: f32 , %arg1: memref <?x?x?xf32 >) {
127
- %n = constant 8 : index
127
+ %n = arith. constant 8 : index
128
128
sair.program {
129
129
%sn = sair.from_scalar %n : !sair.value <(), index >
130
130
%0 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -145,7 +145,7 @@ func @remove_cyclic_fby(%arg0: f32, %arg1: memref<?x?x?xf32>) {
145
145
146
146
// CHECK-LABEL: @remove_useless_dims_fby
147
147
func @remove_useless_dims_fby (%arg0: f32 ) {
148
- %n = constant 8 : index
148
+ %n = arith. constant 8 : index
149
149
%0 = sair.program {
150
150
%sn = sair.from_scalar %n : !sair.value <(), index >
151
151
%0 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -167,7 +167,7 @@ func @remove_useless_dims_fby(%arg0: f32) {
167
167
168
168
// CHECK-LABEL: @remove_useless_dims_proj
169
169
func @remove_useless_dims_proj (%arg0: f32 ) {
170
- %n = constant 8 : index
170
+ %n = arith. constant 8 : index
171
171
%0 = sair.program {
172
172
%sn = sair.from_scalar %n : !sair.value <(), index >
173
173
%0 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -189,7 +189,7 @@ func @remove_useless_dims_proj(%arg0: f32) {
189
189
190
190
// CHECK-LABEL: @remove_useless_dims_proj_dependent
191
191
func @remove_useless_dims_proj_dependent (%arg0: f32 , %arg1: index ) {
192
- %n = constant 8 : index
192
+ %n = arith. constant 8 : index
193
193
%0 = sair.program {
194
194
%sn = sair.from_scalar %n : !sair.value <(), index >
195
195
%0 = sair.from_scalar %arg0 : !sair.value <(), f32 >
@@ -217,7 +217,7 @@ func @remove_useless_dims_proj_dependent(%arg0: f32, %arg1: index) {
217
217
218
218
// CHECK-LABEL: @mappings
219
219
func @mappings (%arg0: f32 ) {
220
- %n = constant 8 : index
220
+ %n = arith. constant 8 : index
221
221
%0 = sair.program {
222
222
%sn = sair.from_scalar %n : !sair.value <(), index >
223
223
%0 = sair.from_scalar %arg0 : !sair.value <(), f32 >
0 commit comments