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
60 lines
2.0 KiB
MLIR
60 lines
2.0 KiB
MLIR
// RUN: mlir-opt %s | FileCheck %s --enable-var-scope
|
|
// RUN: mlir-opt %s | mlir-opt | FileCheck %s --enable-var-scope
|
|
|
|
|
|
// CHECK-LABEL: @omp_unroll_heuristic_raw(
|
|
// CHECK-SAME: %[[tc:.+]]: i32) {
|
|
func.func @omp_unroll_heuristic_raw(%tc : i32) -> () {
|
|
// CHECK-NEXT: %canonloop = omp.new_cli
|
|
%canonloop = "omp.new_cli" () : () -> (!omp.cli)
|
|
// CHECK-NEXT: omp.canonical_loop(%canonloop) %iv : i32 in range(%[[tc]]) {
|
|
"omp.canonical_loop" (%tc, %canonloop) ({
|
|
^bb0(%iv: i32):
|
|
omp.terminator
|
|
}) : (i32, !omp.cli) -> ()
|
|
// CHECK: omp.unroll_heuristic(%canonloop)
|
|
"omp.unroll_heuristic" (%canonloop) : (!omp.cli) -> ()
|
|
return
|
|
}
|
|
|
|
|
|
// CHECK-LABEL: @omp_unroll_heuristic_pretty(
|
|
// CHECK-SAME: %[[tc:.+]]: i32) {
|
|
func.func @omp_unroll_heuristic_pretty(%tc : i32) -> () {
|
|
// CHECK-NEXT: %[[CANONLOOP:.+]] = omp.new_cli
|
|
%canonloop = omp.new_cli
|
|
// CHECK-NEXT: omp.canonical_loop(%canonloop) %iv : i32 in range(%[[tc]]) {
|
|
omp.canonical_loop(%canonloop) %iv : i32 in range(%tc) {
|
|
omp.terminator
|
|
}
|
|
// CHECK: omp.unroll_heuristic(%canonloop)
|
|
omp.unroll_heuristic(%canonloop)
|
|
return
|
|
}
|
|
|
|
|
|
// CHECK-LABEL: @omp_unroll_heuristic_nested_pretty(
|
|
// CHECK-SAME: %[[tc:.+]]: i32) {
|
|
func.func @omp_unroll_heuristic_nested_pretty(%tc : i32) -> () {
|
|
// CHECK-NEXT: %canonloop = omp.new_cli
|
|
%cli_outer = omp.new_cli
|
|
// CHECK-NEXT: %canonloop_d1 = omp.new_cli
|
|
%cli_inner = omp.new_cli
|
|
// CHECK-NEXT: omp.canonical_loop(%canonloop) %iv : i32 in range(%[[tc]]) {
|
|
omp.canonical_loop(%cli_outer) %iv_outer : i32 in range(%tc) {
|
|
// CHECK-NEXT: omp.canonical_loop(%canonloop_d1) %iv_d1 : i32 in range(%[[tc]]) {
|
|
omp.canonical_loop(%cli_inner) %iv_inner : i32 in range(%tc) {
|
|
// CHECK: omp.terminator
|
|
omp.terminator
|
|
}
|
|
// CHECK: omp.terminator
|
|
omp.terminator
|
|
}
|
|
|
|
// CHECK: omp.unroll_heuristic(%canonloop)
|
|
omp.unroll_heuristic(%cli_outer)
|
|
// CHECK-NEXT: omp.unroll_heuristic(%canonloop_d1)
|
|
omp.unroll_heuristic(%cli_inner)
|
|
return
|
|
}
|