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
48 lines
1.5 KiB
MLIR
48 lines
1.5 KiB
MLIR
// RUN: mlir-opt %s -split-input-file -verify-diagnostics | FileCheck %s
|
|
|
|
// FileCheck test must have at least one CHECK statement.
|
|
// CHECK-LABEL: @no_op
|
|
func.func @no_op(%arg0: !async.token) {
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
func.func @wrong_async_await_arg_type(%arg0: f32) {
|
|
// expected-error @+1 {{'async.await' op operand #0 must be async value type or async token type, but got 'f32'}}
|
|
async.await %arg0 : f32
|
|
}
|
|
|
|
// -----
|
|
|
|
func.func @wrong_async_await_result_type(%arg0: !async.value<f32>) {
|
|
// expected-error @+1 {{'async.await' op result type 'f64' does not match async value type 'f32'}}
|
|
%0 = "async.await"(%arg0): (!async.value<f32>) -> f64
|
|
}
|
|
|
|
|
|
// -----
|
|
// expected-error @+1 {{'async.func' op result is expected to be at least of size 1, but got 0}}
|
|
async.func @wrong_async_func_void_result_type(%arg0: f32) {
|
|
return
|
|
}
|
|
|
|
|
|
// -----
|
|
// expected-error @+1 {{'async.func' op result type must be async value type or async token type, but got 'f32'}}
|
|
async.func @wrong_async_func_result_type(%arg0: f32) -> f32 {
|
|
return %arg0 : f32
|
|
}
|
|
|
|
// -----
|
|
// expected-error @+1 {{'async.func' op results' (optional) async token type is expected to appear as the 1st return value, but got 2}}
|
|
async.func @wrong_async_func_token_type_placement(%arg0: f32) -> (!async.value<f32>, !async.token) {
|
|
return %arg0 : f32
|
|
}
|
|
|
|
// -----
|
|
async.func @wrong_async_func_return_type(%arg0: f32) -> (!async.token, !async.value<i32>) {
|
|
// expected-error @+1 {{'async.return' op operand types do not match the types returned from the parent FuncOp}}
|
|
return %arg0 : f32
|
|
}
|