@@ -818,7 +818,7 @@ transform.sequence failures(propagate) {
818
818
819
819
// -----
820
820
821
- func.func @split_handles (%a: index , %b: index , %c: index ) {
821
+ func.func @split_handle (%a: index , %b: index , %c: index ) {
822
822
%0 = arith.muli %a , %b : index
823
823
%1 = arith.muli %a , %c : index
824
824
return
@@ -827,17 +827,17 @@ func.func @split_handles(%a: index, %b: index, %c: index) {
827
827
transform.sequence failures (propagate ) {
828
828
^bb1 (%fun: !pdl.operation ):
829
829
%muli = transform.structured.match ops {[" arith.muli" ]} in %fun : (!pdl.operation ) -> !pdl.operation
830
- %h:2 = split_handles %muli in [ 2 ] : (!pdl.operation ) -> (!pdl.operation , !pdl.operation )
830
+ %h:2 = split_handle %muli : (!pdl.operation ) -> (!pdl.operation , !pdl.operation )
831
831
// expected-remark @below {{1}}
832
832
transform.test_print_number_of_associated_payload_ir_ops %h#0
833
833
%muli_2 = transform.structured.match ops {[" arith.muli" ]} in %fun : (!pdl.operation ) -> !pdl.operation
834
- // expected-error @below {{expected to contain 3 operation handles but it contains 2 handles }}
835
- %h_2:3 = split_handles %muli_2 in [ 3 ] : (!pdl.operation ) -> (!pdl.operation , !pdl.operation , !pdl.operation )
834
+ // expected-error @below {{expected to contain 3 payload ops but it contains 2 payload ops }}
835
+ %h_2:3 = split_handle %muli_2 : (!pdl.operation ) -> (!pdl.operation , !pdl.operation , !pdl.operation )
836
836
}
837
837
838
838
// -----
839
839
840
- func.func @split_handles (%a: index , %b: index , %c: index ) {
840
+ func.func @split_handle (%a: index , %b: index , %c: index ) {
841
841
%0 = arith.muli %a , %b : index
842
842
%1 = arith.muli %a , %c : index
843
843
return
@@ -846,12 +846,12 @@ func.func @split_handles(%a: index, %b: index, %c: index) {
846
846
transform.sequence failures (suppress ) {
847
847
^bb1 (%fun: !pdl.operation ):
848
848
%muli = transform.structured.match ops {[" arith.muli" ]} in %fun : (!pdl.operation ) -> !pdl.operation
849
- %h:2 = split_handles %muli in [ 2 ] : (!pdl.operation ) -> (!pdl.operation , !pdl.operation )
849
+ %h:2 = split_handle %muli : (!pdl.operation ) -> (!pdl.operation , !pdl.operation )
850
850
// expected-remark @below {{1}}
851
851
transform.test_print_number_of_associated_payload_ir_ops %h#0
852
852
%muli_2 = transform.structured.match ops {[" arith.muli" ]} in %fun : (!pdl.operation ) -> !pdl.operation
853
853
// Silenceable failure and all handles are now empty.
854
- %h_2:3 = split_handles %muli_2 in [ 3 ] : (!pdl.operation ) -> (!pdl.operation , !pdl.operation , !pdl.operation )
854
+ %h_2:3 = split_handle %muli_2 : (!pdl.operation ) -> (!pdl.operation , !pdl.operation , !pdl.operation )
855
855
// expected-remark @below {{0}}
856
856
transform.test_print_number_of_associated_payload_ir_ops %h_2#0
857
857
}
@@ -966,7 +966,7 @@ transform.with_pdl_patterns {
966
966
967
967
// -----
968
968
969
- func.func @split_handles (%a: index , %b: index , %c: index ) {
969
+ func.func @split_handle (%a: index , %b: index , %c: index ) {
970
970
%0 = arith.muli %a , %b : index
971
971
%1 = arith.muli %a , %c : index
972
972
return
@@ -975,8 +975,8 @@ func.func @split_handles(%a: index, %b: index, %c: index) {
975
975
transform.sequence -> !pdl.operation failures (propagate ) {
976
976
^bb1 (%fun: !pdl.operation ):
977
977
%muli = transform.structured.match ops {[" arith.muli" ]} in %fun : (!pdl.operation ) -> !pdl.operation
978
- // expected-error @below {{expected to contain 3 operation handles but it contains 2 handles }}
979
- %h_2:3 = split_handles %muli in [ 3 ] : (!pdl.operation ) -> (!pdl.operation , !pdl.operation , !pdl.operation )
978
+ // expected-error @below {{expected to contain 3 payload ops but it contains 2 payload ops }}
979
+ %h_2:3 = split_handle %muli : (!pdl.operation ) -> (!pdl.operation , !pdl.operation , !pdl.operation )
980
980
/// Test that yield does not crash in the presence of silenceable error in
981
981
/// propagate mode.
982
982
yield %fun : !pdl.operation
@@ -988,7 +988,7 @@ transform.sequence -> !transform.any_op failures(suppress) {
988
988
^bb0 (%arg0: !transform.any_op ):
989
989
%muli = transform.structured.match ops {[" arith.muli" ]} in %arg0 : (!transform.any_op ) -> !transform.any_op
990
990
// Edge case propagating empty handles in splitting.
991
- %0:3 = split_handles %muli in [ 3 ] : (!transform.any_op ) -> (!transform.any_op , !transform.any_op , !transform.any_op )
991
+ %0:3 = split_handle %muli : (!transform.any_op ) -> (!transform.any_op , !transform.any_op , !transform.any_op )
992
992
// Test does not crash when accessing the empty handle.
993
993
yield %0#0 : !transform.any_op
994
994
}
0 commit comments