Files
TheRock/compiler/amd-llvm/mlir/test/Dialect/Linalg/match-ops-invalid.mlir
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

226 lines
7.2 KiB
MLIR

// RUN: mlir-opt %s --split-input-file --verify-diagnostics
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
// expected-error @below {{expected one body argument}}
transform.match.structured %arg0 : !transform.any_op {
^bb1:
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
// expected-error @below {{expected body argument to implement TransformHandleTypeInterface}}
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: i32):
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
// expected-error @below {{expects nested operations to implement MatchOpInterface}}
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-note @below {{offending operation}}
transform.test_consume_operand %arg1 : !transform.any_op
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
// expected-error @below {{expects parent op to be 'transform.match.structured'}}
transform.match.structured.body %arg0 { passthrough } : !transform.any_op
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{expected predicate to apply to the surrounding structured op}}
transform.match.structured.body %arg0 { passthrough } : !transform.any_op
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{only one of {"reduction_position", "passthrough", "elementwise", "contraction"} is allowed}}
transform.match.structured.body %arg1 { passthrough, reduction_position = 0 } : !transform.any_op
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{cannot request both 'all' and 'inverted' values in the list}}
"transform.match.structured.dim"(%arg1) { is_all, is_inverted, raw_dim_list = array<i64> } : (!transform.any_op) -> ()
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{cannot both request 'all' and specific values in the list}}
"transform.match.structured.dim"(%arg1) { is_all, raw_dim_list = array<i64: 0, 1> } : (!transform.any_op) -> ()
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{must request specific values in the list if 'all' is not specified}}
"transform.match.structured.dim"(%arg1) { raw_dim_list = array<i64> } : (!transform.any_op) -> ()
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{op expected the listed values to be unique}}
"transform.match.structured.dim"(%arg1) { raw_dim_list = array<i64: 0, 0> } : (!transform.any_op) -> ()
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{cannot request the same dimension to be both parallel and reduction}}
"transform.match.structured.dim"(%arg1) { is_all, parallel, reduction, raw_dim_list = array<i64> } : (!transform.any_op) -> ()
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{"permutation" and "projected_permutation" are mutually exclusive}}
transform.match.structured.input %arg1[all] { permutation, projected_permutation } : !transform.any_op
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{cannot bind multiple inputs/inits to the same value}}
transform.match.structured.input %arg1[0, 1] : (!transform.any_op) -> !transform.any_op
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{"permutation" and "projected_permutation" are mutually exclusive}}
transform.match.structured.init %arg1[all] { permutation, projected_permutation } : !transform.any_op
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{cannot bind multiple inputs/inits to the same value}}
transform.match.structured.init %arg1[0, 1] : (!transform.any_op) -> !transform.any_op
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{expects either the any/single keyword or the type value handle result type}}
transform.match.structured.result %arg1[0] : (!transform.any_op) -> !transform.any_op
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{expects either the any/single keyword or the type value handle result type}}
transform.match.structured.result %arg1[0] {any} : (!transform.any_op) -> !transform.any_value
transform.match.structured.yield
}
transform.yield
}
// -----
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
transform.match.structured %arg0 : !transform.any_op {
^bb1(%arg1: !transform.any_op):
// expected-error @below {{'any' and 'single' are mutually exclusive}}
transform.match.structured.result %arg1[0] {any, single} : (!transform.any_op) -> !transform.any_op
transform.match.structured.yield
}
transform.yield
}