Skip to content

Commit 079b3db

Browse files
committed
Add comments to generic format tests
1 parent e1a7803 commit 079b3db

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

mlir/test/Dialect/Transform/test-pass-application.mlir

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,14 @@ module attributes {transform.with_named_sequence} {
302302

303303
// -----
304304

305+
/////////////////////////////////////////////////////////////////////
306+
// Check that the following cases are caugh in the generic format. //
307+
/////////////////////////////////////////////////////////////////////
308+
309+
// Invalid due to param_operand_index occurences in options dict not being
310+
// one-to-one with the dynamic options provided as params:
311+
// param_operand_index out of bounds w.r.t. the number of options provided via params.
312+
305313
"builtin.module"() ({
306314
"transform.named_sequence"() <{function_type = (!transform.any_op) -> (), sym_name = "__transform_main"}> ({
307315
^bb0(%arg0: !transform.any_op):
@@ -320,6 +328,11 @@ module attributes {transform.with_named_sequence} {
320328

321329
// -----
322330

331+
// Invalid due to param_operand_index occurences in options dict not being
332+
// one-to-one with the dynamic options provided as params:
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.)
335+
323336
"builtin.module"() ({
324337
"transform.named_sequence"() <{function_type = (!transform.any_op) -> (), sym_name = "__transform_main"}> ({
325338
^bb0(%arg0: !transform.any_op):
@@ -340,6 +353,10 @@ module attributes {transform.with_named_sequence} {
340353

341354
// -----
342355

356+
// Invalid due to param_operand_index occurences in options dict not being
357+
// one-to-one with the dynamic options provided as params:
358+
// two option-params are provide though only the first one is referred to from the options-dict.
359+
343360
"builtin.module"() ({
344361
"transform.named_sequence"() <{function_type = (!transform.any_op) -> (), sym_name = "__transform_main"}> ({
345362
^bb0(%arg0: !transform.any_op):

0 commit comments

Comments
 (0)