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
96 lines
2.1 KiB
MLIR
96 lines
2.1 KiB
MLIR
// RUN: mlir-translate -split-input-file -mlir-to-cpp -verify-diagnostics %s
|
|
|
|
// expected-error@+1 {{'func.func' op with multiple blocks needs variables declared at top}}
|
|
func.func @multiple_blocks() {
|
|
^bb1:
|
|
cf.br ^bb2
|
|
^bb2:
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
func.func @unsupported_op(%arg0: i1) {
|
|
// expected-error@+1 {{'cf.assert' op unable to find printer for op}}
|
|
cf.assert %arg0, "assertion foo"
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// expected-error@+1 {{cannot emit integer type 'i80'}}
|
|
func.func @unsupported_integer_type(%arg0 : i80) {
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// expected-error@+1 {{cannot emit float type 'f80'}}
|
|
func.func @unsupported_float_type(%arg0 : f80) {
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// expected-error@+1 {{cannot emit type 'memref<100xf32>'}}
|
|
func.func @memref_type(%arg0 : memref<100xf32>) {
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// expected-error@+1 {{cannot emit type 'vector<100xf32>'}}
|
|
func.func @vector_type(%arg0 : vector<100xf32>) {
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// expected-error@+1 {{cannot emit tensor type with non static shape}}
|
|
func.func @non_static_shape(%arg0 : tensor<?xf32>) {
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// expected-error@+1 {{cannot emit unranked tensor type}}
|
|
func.func @unranked_tensor(%arg0 : tensor<*xf32>) {
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// expected-error@+1 {{cannot emit tensor of array type}}
|
|
func.func @tensor_of_array(%arg0 : tensor<4x!emitc.array<4xf32>>) {
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// expected-error@+1 {{cannot emit pointer to array type}}
|
|
func.func @pointer_to_array(%arg0 : !emitc.ptr<!emitc.array<4xf32>>) {
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// expected-error@+1 {{cannot emit lvalue type as argument type}}
|
|
func.func @lvalue_as_argument(%arg: !emitc.lvalue<i8>) {
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// expected-error@+1 {{cannot emit array type as result type}}
|
|
func.func @array_as_result(%arg: !emitc.array<4xi8>) -> (!emitc.array<4xi8>) {
|
|
return %arg : !emitc.array<4xi8>
|
|
}
|
|
|
|
// -----
|
|
|
|
func.func @ptr_to_array() {
|
|
// expected-error@+1 {{cannot emit pointer to array type '!emitc.ptr<!emitc.array<9xi16>>'}}
|
|
%v = "emitc.variable"(){value = #emitc.opaque<"NULL">} : () -> !emitc.lvalue<!emitc.ptr<!emitc.array<9xi16>>>
|
|
return
|
|
}
|