diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2019-04-04 18:58:17 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-04-04 18:58:17 +0000 |
| commit | f5daa97045a9776fc04f86055e8fb6ec0ed93e71 (patch) | |
| tree | 0262fb007ab780a73d68d256e96439fadc28bccb /clang/test/OpenMP/task_in_reduction_codegen.cpp | |
| parent | 4312fee0a9fb5b2bfe4a52766a4abdd35f23c018 (diff) | |
| download | bcm5719-llvm-f5daa97045a9776fc04f86055e8fb6ec0ed93e71.tar.gz bcm5719-llvm-f5daa97045a9776fc04f86055e8fb6ec0ed93e71.zip | |
[OPENMP]Add codegen for task reduction vars with allocate clause, NFC.
Added test for the task reduction variables with the allocate clause.
llvm-svn: 357717
Diffstat (limited to 'clang/test/OpenMP/task_in_reduction_codegen.cpp')
| -rw-r--r-- | clang/test/OpenMP/task_in_reduction_codegen.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/clang/test/OpenMP/task_in_reduction_codegen.cpp b/clang/test/OpenMP/task_in_reduction_codegen.cpp index e96d12689fb..2370b2bc419 100644 --- a/clang/test/OpenMP/task_in_reduction_codegen.cpp +++ b/clang/test/OpenMP/task_in_reduction_codegen.cpp @@ -10,6 +10,16 @@ #ifndef HEADER #define HEADER +typedef void **omp_allocator_handle_t; +extern const omp_allocator_handle_t omp_default_mem_alloc; +extern const omp_allocator_handle_t omp_large_cap_mem_alloc; +extern const omp_allocator_handle_t omp_const_mem_alloc; +extern const omp_allocator_handle_t omp_high_bw_mem_alloc; +extern const omp_allocator_handle_t omp_low_lat_mem_alloc; +extern const omp_allocator_handle_t omp_cgroup_mem_alloc; +extern const omp_allocator_handle_t omp_pteam_mem_alloc; +extern const omp_allocator_handle_t omp_thread_mem_alloc; + // CHECK: [[PRIVATES:%.+]] = type { i8*, i8* } struct S { @@ -31,7 +41,7 @@ int main(int argc, char **argv) { { #pragma omp taskgroup task_reduction(-:c, d) #pragma omp parallel -#pragma omp task in_reduction(+:a) in_reduction(-:d) +#pragma omp task in_reduction(+:a) in_reduction(-:d) allocate(omp_high_bw_mem_alloc: d) a += d[a]; } return 0; |

