llvm-project/clang/test/OpenMP/split_nested_outer_only.c
Amit Tiwari 1972cf64fd
[Clang][OpenMP] Implement Loop splitting #pragma omp split directive (#183261)
OpenMP 6.0 Loop-splitting directive `#pragma omp split` construct with `counts`
clause
2026-04-03 10:42:31 +05:30

13 lines
431 B
C

// Split attaches to the outer canonical `for`; inner loop stays unsplit.
//
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fopenmp -fopenmp-version=60 -O0 -emit-llvm %s -o - | FileCheck %s
// Exactly one split IV — the outer loop; inner `for` uses plain `i`/`j` control flow.
// CHECK-COUNT-1: .split.iv
void f(void) {
#pragma omp split counts(omp_fill)
for (int i = 0; i < 4; ++i)
for (int j = 0; j < 4; ++j) {
}
}