[OPENMP] Codegen for 'depend' clause (OpenMP 4.0).
If task directive has associated 'depend' clause then function kmp_int32 __kmpc_omp_task_with_deps ( ident_t *loc_ref, kmp_int32 gtid, kmp_task_t * new_task, kmp_int32 ndeps, kmp_depend_info_t *dep_list,kmp_int32 ndeps_noalias, kmp_depend_info_t *noalias_dep_list) must be called instead of __kmpc_omp_task(). If this directive has associated 'if' clause then also before a call of kmpc_omp_task_begin_if0() a function void __kmpc_omp_wait_deps ( ident_t *loc_ref, kmp_int32 gtid, kmp_int32 ndeps, kmp_depend_info_t *dep_list, kmp_int32 ndeps_noalias, kmp_depend_info_t *noalias_dep_list) must be called. Array sections are not supported yet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240532 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/CodeGen/CGOpenMPRuntime.cpp 155 additions, 25 deletionslib/CodeGen/CGOpenMPRuntime.cpp
- lib/CodeGen/CGOpenMPRuntime.h 31 additions, 11 deletionslib/CodeGen/CGOpenMPRuntime.h
- lib/CodeGen/CGStmtOpenMP.cpp 10 additions, 1 deletionlib/CodeGen/CGStmtOpenMP.cpp
- test/OpenMP/task_codegen.cpp 92 additions, 5 deletionstest/OpenMP/task_codegen.cpp
- test/OpenMP/task_if_codegen.cpp 98 additions, 15 deletionstest/OpenMP/task_if_codegen.cpp
Loading
Please register or sign in to comment