Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
mlir/test/Dialect/Transform/ops.mlir
Show All 15 Lines | |||||
transform.with_pdl_patterns { | transform.with_pdl_patterns { | ||||
^bb0(%arg0: !pdl.operation): | ^bb0(%arg0: !pdl.operation): | ||||
// CHECK: sequence %[[ARG]] : !pdl.operation | // CHECK: sequence %[[ARG]] : !pdl.operation | ||||
sequence %arg0 : !pdl.operation failures(propagate) { | sequence %arg0 : !pdl.operation failures(propagate) { | ||||
^bb1(%arg1: !pdl.operation): | ^bb1(%arg1: !pdl.operation): | ||||
} | } | ||||
} | } | ||||
// CHECK: transform.sequence | |||||
// CHECK: ^{{.+}}(%[[ARG:.+]]: !pdl.operation): | |||||
transform.sequence failures(propagate) { | |||||
^bb0(%arg0: !pdl.operation): | |||||
// CHECK: with_pdl_patterns %[[ARG]] : !pdl.operation | |||||
with_pdl_patterns %arg0 : !pdl.operation { | |||||
^bb1(%arg1: !pdl.operation): | |||||
} | |||||
} | |||||
// Using the same value multiple times without consuming it is fine. | // Using the same value multiple times without consuming it is fine. | ||||
// CHECK: transform.sequence | // CHECK: transform.sequence | ||||
// CHECK: %[[V:.+]] = sequence %{{.*}} : !pdl.operation -> !pdl.operation | // CHECK: %[[V:.+]] = sequence %{{.*}} : !pdl.operation -> !pdl.operation | ||||
// CHECK: sequence %[[V]] | // CHECK: sequence %[[V]] | ||||
// CHECK: sequence %[[V]] | // CHECK: sequence %[[V]] | ||||
transform.sequence failures(propagate) { | transform.sequence failures(propagate) { | ||||
^bb0(%arg0: !pdl.operation): | ^bb0(%arg0: !pdl.operation): | ||||
%0 = transform.sequence %arg0 : !pdl.operation -> !pdl.operation failures(propagate) { | %0 = transform.sequence %arg0 : !pdl.operation -> !pdl.operation failures(propagate) { | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |