Implement Loop-splitting #pragma omp split construct with counts clause. Posting this PR after the revert of PR ([#183261](https://github.com/llvm/llvm-project/pull/183261)) Changes: 1. Added `openmp/runtime/test/transform/split/lit.local.cfg` 2. Enforced ICE for `counts` clause items in `SemaOpenMP.cpp` (minor change) 3. Updated tests `split_messages.cpp`, `split_omp_fill.cpp`, `split_diag_errors.c`. 4. Removed `nonconstant_count.cpp`
14 lines
376 B
C++
14 lines
376 B
C++
// Split is not valid nested inside `teams` (host diagnostic).
|
|
//
|
|
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -x c++ -fopenmp -fopenmp-version=60 -fsyntax-only -verify %s
|
|
|
|
void g(void) {
|
|
#pragma omp teams
|
|
{
|
|
// expected-error@+1 {{region cannot be closely nested inside 'teams' region}}
|
|
#pragma omp split counts(2, omp_fill)
|
|
for (int i = 0; i < 10; ++i) {
|
|
}
|
|
}
|
|
}
|