@@ -26,8 +26,8 @@ func.func @fixed_size_loop_nest() {
26
26
%min_i = affine.min #map_dim_i (%i )[%c4_vscale ]
27
27
scf.for %j = %c0 to %c16 step %c4_vscale {
28
28
%min_j = affine.min #map_dim_j (%j )[%c4_vscale ]
29
- %bound_i = " test.reify_scalable_bound " (%min_i ) {type = " UB" , vscale_min = 1 , vscale_max = 16 } : (index ) -> index
30
- %bound_j = " test.reify_scalable_bound " (%min_j ) {type = " UB" , vscale_min = 1 , vscale_max = 16 } : (index ) -> index
29
+ %bound_i = " test.reify_bound " (%min_i ) {type = " UB" , vscale_min = 1 , vscale_max = 16 , scalable } : (index ) -> index
30
+ %bound_j = " test.reify_bound " (%min_j ) {type = " UB" , vscale_min = 1 , vscale_max = 16 , scalable } : (index ) -> index
31
31
" test.some_use" (%bound_i , %bound_j ) : (index , index ) -> ()
32
32
}
33
33
}
@@ -58,8 +58,8 @@ func.func @dynamic_size_loop_nest(%dim0: index, %dim1: index) {
58
58
%min_i = affine.min #map_dynamic_dim (%i )[%c4_vscale , %dim0 ]
59
59
scf.for %j = %c0 to %dim1 step %c4_vscale {
60
60
%min_j = affine.min #map_dynamic_dim (%j )[%c4_vscale , %dim1 ]
61
- %bound_i = " test.reify_scalable_bound " (%min_i ) {type = " UB" , vscale_min = 1 , vscale_max = 16 } : (index ) -> index
62
- %bound_j = " test.reify_scalable_bound " (%min_j ) {type = " UB" , vscale_min = 1 , vscale_max = 16 } : (index ) -> index
61
+ %bound_i = " test.reify_bound " (%min_i ) {type = " UB" , vscale_min = 1 , vscale_max = 16 , scalable } : (index ) -> index
62
+ %bound_j = " test.reify_bound " (%min_j ) {type = " UB" , vscale_min = 1 , vscale_max = 16 , scalable } : (index ) -> index
63
63
" test.some_use" (%bound_i , %bound_j ) : (index , index ) -> ()
64
64
}
65
65
}
@@ -80,7 +80,7 @@ func.func @add_to_vscale() {
80
80
%vscale = vector.vscale
81
81
%c8 = arith.constant 8 : index
82
82
%vscale_plus_c8 = arith.addi %vscale , %c8 : index
83
- %bound = " test.reify_scalable_bound " (%vscale_plus_c8 ) {type = " EQ" , vscale_min = 1 , vscale_max = 16 } : (index ) -> index
83
+ %bound = " test.reify_bound " (%vscale_plus_c8 ) {type = " EQ" , vscale_min = 1 , vscale_max = 16 , scalable } : (index ) -> index
84
84
" test.some_use" (%bound ) : (index ) -> ()
85
85
return
86
86
}
@@ -94,7 +94,7 @@ func.func @add_to_vscale() {
94
94
// CHECK: "test.some_use"(%[[C2]]) : (index) -> ()
95
95
func.func @vscale_fixed_size () {
96
96
%vscale = vector.vscale
97
- %bound = " test.reify_scalable_bound " (%vscale ) {type = " EQ" , vscale_min = 2 , vscale_max = 2 } : (index ) -> index
97
+ %bound = " test.reify_bound " (%vscale ) {type = " EQ" , vscale_min = 2 , vscale_max = 2 , scalable } : (index ) -> index
98
98
" test.some_use" (%bound ) : (index ) -> ()
99
99
return
100
100
}
@@ -107,7 +107,7 @@ func.func @unknown_bound(%a: index) {
107
107
%vscale = vector.vscale
108
108
%vscale_plus_a = arith.muli %vscale , %a : index
109
109
// expected-error @below{{could not reify bound}}
110
- %bound = " test.reify_scalable_bound " (%vscale_plus_a ) {type = " UB" , vscale_min = 1 , vscale_max = 16 } : (index ) -> index
110
+ %bound = " test.reify_bound " (%vscale_plus_a ) {type = " UB" , vscale_min = 1 , vscale_max = 16 , scalable } : (index ) -> index
111
111
" test.some_use" (%bound ) : (index ) -> ()
112
112
return
113
113
}
@@ -134,7 +134,7 @@ func.func @duplicate_vscale_values() {
134
134
%c2_vscale = arith.muli %vscale_1 , %c2 : index
135
135
%add = arith.addi %c2_vscale , %c4_vscale : index
136
136
137
- %bound = " test.reify_scalable_bound " (%add ) {type = " EQ" , vscale_min = 1 , vscale_max = 16 } : (index ) -> index
137
+ %bound = " test.reify_bound " (%add ) {type = " EQ" , vscale_min = 1 , vscale_max = 16 , scalable } : (index ) -> index
138
138
" test.some_use" (%bound ) : (index ) -> ()
139
139
return
140
140
}
@@ -154,7 +154,7 @@ func.func @non_scalable_code() {
154
154
%c0 = arith.constant 0 : index
155
155
scf.for %i = %c0 to %c1024 step %c4 {
156
156
%min_i = affine.min #map_dim_i (%i )[%c4 ]
157
- %bound_i = " test.reify_scalable_bound " (%min_i ) {type = " UB" , vscale_min = 1 , vscale_max = 16 } : (index ) -> index
157
+ %bound_i = " test.reify_bound " (%min_i ) {type = " UB" , vscale_min = 1 , vscale_max = 16 , scalable } : (index ) -> index
158
158
" test.some_use" (%bound_i ) : (index ) -> ()
159
159
}
160
160
return
0 commit comments