@@ -204,9 +204,9 @@ func.func @invalid_options_due_to_reserved_attr() {
204
204
module attributes {transform.with_named_sequence } {
205
205
transform.named_sequence @__transform_main (%arg1: !transform.any_op ) {
206
206
%1 = transform.structured.match ops {[" func.func" ]} in %arg1 : (!transform.any_op ) -> !transform.any_op
207
- // expected-error @+2 {{the param_operand_index attribute is a marker reserved for indicating a value will be passed via params and is only used in the generic print format}}
207
+ // expected-error @+2 {{the param_operand attribute is a marker reserved for indicating a value will be passed via params and is only used in the generic print format}}
208
208
%2 = transform.apply_registered_pass " canonicalize"
209
- with options = { " top-down" = #transform.param_operand_index < 0 > } to %1 : (!transform.any_op ) -> !transform.any_op
209
+ with options = { " top-down" = #transform.param_operand < index = 0 > } to %1 : (!transform.any_op ) -> !transform.any_op
210
210
transform.yield
211
211
}
212
212
}
@@ -306,7 +306,7 @@ module attributes {transform.with_named_sequence} {
306
306
// Check that the following cases are caugh in the generic format. //
307
307
/////////////////////////////////////////////////////////////////////
308
308
309
- // Invalid due to param_operand_index occurences in options dict not being
309
+ // Invalid due to param_operand occurences in options dict not being
310
310
// one-to-one with the dynamic options provided as params:
311
311
// param_operand_index out of bounds w.r.t. the number of options provided via params.
312
312
@@ -317,7 +317,7 @@ module attributes {transform.with_named_sequence} {
317
317
%1 = " transform.param.constant" () <{value = 10 : i64 }> : () -> !transform.any_param
318
318
// expected-error @below {{dynamic option index 1 is out of bounds for the number of dynamic options: 1}}
319
319
%2 = " transform.apply_registered_pass" (%1 , %0 ) <{
320
- options = {" max-iterations" = #transform.param_operand_index < 1 : i64 >,
320
+ options = {" max-iterations" = #transform.param_operand < index = 1 : i64 >,
321
321
" test-convergence" = true ,
322
322
" top-down" = false },
323
323
pass_name = " canonicalize" }>
@@ -328,10 +328,10 @@ module attributes {transform.with_named_sequence} {
328
328
329
329
// -----
330
330
331
- // Invalid due to param_operand_index occurences in options dict not being
331
+ // Invalid due to param_operand occurences in options dict not being
332
332
// one-to-one with the dynamic options provided as params:
333
333
// the first option-param is referred to twice and the second one not at all.
334
- // (The pretty-printed format supports this by passing in the same param twice.)
334
+ // (In the pretty-printed format, if you want to refer to a param SSA-value twice, it counts as two param arguments .)
335
335
336
336
" builtin.module" () ({
337
337
" transform.named_sequence" () <{function_type = (!transform.any_op ) -> (), sym_name = " __transform_main" }> ({
@@ -341,8 +341,8 @@ module attributes {transform.with_named_sequence} {
341
341
%2 = " transform.param.constant" () <{value = 1 : i64 }> : () -> !transform.any_param
342
342
// expected-error @below {{dynamic option index 0 is already used in options}}
343
343
%3 = " transform.apply_registered_pass" (%1 , %2 , %0 ) <{
344
- options = {" max-iterations" = #transform.param_operand_index < 0 : i64 >,
345
- " max-num-rewrites" = #transform.param_operand_index < 0 : i64 >,
344
+ options = {" max-iterations" = #transform.param_operand < index = 0 : i64 >,
345
+ " max-num-rewrites" = #transform.param_operand < index = 0 : i64 >,
346
346
" test-convergence" = true ,
347
347
" top-down" = false },
348
348
pass_name = " canonicalize" }>
@@ -353,7 +353,7 @@ module attributes {transform.with_named_sequence} {
353
353
354
354
// -----
355
355
356
- // Invalid due to param_operand_index occurences in options dict not being
356
+ // Invalid due to param_operand occurences in options dict not being
357
357
// one-to-one with the dynamic options provided as params:
358
358
// two option-params are provide though only the first one is referred to from the options-dict.
359
359
@@ -363,9 +363,9 @@ module attributes {transform.with_named_sequence} {
363
363
%0 = " transform.structured.match" (%arg0 ) <{ops = [" func.func" ]}> : (!transform.any_op ) -> !transform.any_op
364
364
%1 = " transform.param.constant" () <{value = 10 : i64 }> : () -> !transform.any_param
365
365
%2 = " transform.param.constant" () <{value = 1 : i64 }> : () -> !transform.any_param
366
- // expected-error @below {{a param operand does not have a corresponding param_operand_index attr in the options dict}}
366
+ // expected-error @below {{a param operand does not have a corresponding param_operand attr in the options dict}}
367
367
%3 = " transform.apply_registered_pass" (%1 , %2 , %0 ) <{
368
- options = {" max-iterations" = #transform.param_operand_index < 0 : i64 >,
368
+ options = {" max-iterations" = #transform.param_operand < index = 0 : i64 >,
369
369
" test-convergence" = true ,
370
370
" top-down" = false },
371
371
pass_name = " canonicalize" }>
0 commit comments