Files
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

51 lines
1.4 KiB
MLIR

// RUN: mlir-opt %s -verify-diagnostics
func.func @omp_canonloop_block_arg(%tc : i32) -> () {
// expected-error@below {{Canonical loop region must have exactly one argument}}
"omp.canonical_loop" (%tc) ({
^bb0(%iv: i32, %somearg: i32):
omp.terminator
}) : (i32) -> ()
return
}
func.func @omp_canonloop_multiple_generators(%tc : i32) -> () {
// expected-error@below {{'omp.new_cli' op CLI must have at most one generator}}
%cli = omp.new_cli
// expected-note@below {{second generator here}}
omp.canonical_loop(%cli) %iv1 : i32 in range(%tc) {
omp.terminator
}
// expected-note@below {{first generator here}}
omp.canonical_loop(%cli) %iv2 : i32 in range(%tc) {
omp.terminator
}
return
}
func.func @omp_canonloop_multiple_consumers() -> () {
// expected-error@below {{'omp.new_cli' op CLI must have at most one consumer}}
%cli = omp.new_cli
%tc = llvm.mlir.constant(4 : i32) : i32
omp.canonical_loop(%cli) %iv1 : i32 in range(%tc) {
omp.terminator
}
// expected-note@below {{second consumer here}}
omp.unroll_heuristic(%cli)
// expected-note@below {{first consumer here}}
omp.unroll_heuristic(%cli)
return
}
func.func @omp_canonloop_no_generator() -> () {
// expected-error@below {{'omp.new_cli' op CLI has no generator}}
%cli = omp.new_cli
// expected-note@below {{see consumer here}}
omp.unroll_heuristic(%cli)
return
}