[clang] [OpenMP] Add 'target loop' directive (PR #238448)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 5 07:58:24 PST 2026
https://github.com/alexey-bataev commented:
CGOpenMPRuntime.cpp:10735
```
case OMPD_target_parallel:
case OMPD_target_simd:
+ case OMPD_target_loop:
case OMPD_target_parallel_for:
case OMPD_target_parallel_for_simd:
return nullptr;
```
```
// HOST-LABEL: define {{.*}}void @_Z7tl_tilePii(
void tl_tile(int *a, int n) {
#pragma omp target loop map(tofrom: a[0:n])
#pragma omp tile sizes(4)
for (int i = 0; i < n; ++i)
a[i] += 1;
}
```
https://github.com/llvm/llvm-project/pull/238448
More information about the cfe-commits
mailing list