diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-27 18:49:38 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-27 18:49:38 +0000 |
| commit | fab20e4ea4a4ad6a1b2ce6ac0c3ec4e9f9adbbf9 (patch) | |
| tree | e3924befca2979a2f2a5417032a461046e0b7c4d /clang/lib/Sema | |
| parent | d79c44038216392f0b89f8ba5640cbc798a5470b (diff) | |
| download | bcm5719-llvm-fab20e4ea4a4ad6a1b2ce6ac0c3ec4e9f9adbbf9.tar.gz bcm5719-llvm-fab20e4ea4a4ad6a1b2ce6ac0c3ec4e9f9adbbf9.zip | |
[OPENMP] Support for `depend` clauses on `target enter|exit data`.
Added codegen for `depend` clauses on `target enter|exit data` directives.
llvm-svn: 321495
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaOpenMP.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index 9424220577c..24b58e8fd12 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp @@ -7624,6 +7624,8 @@ static OpenMPDirectiveKind getOpenMPCaptureRegionForClause( CaptureRegion = OMPD_teams; break; case OMPD_target_update: + case OMPD_target_enter_data: + case OMPD_target_exit_data: CaptureRegion = OMPD_task; break; case OMPD_cancel: @@ -7642,8 +7644,6 @@ static OpenMPDirectiveKind getOpenMPCaptureRegionForClause( case OMPD_taskloop: case OMPD_taskloop_simd: case OMPD_target_data: - case OMPD_target_enter_data: - case OMPD_target_exit_data: // Do not capture if-clause expressions. break; case OMPD_threadprivate: @@ -8005,6 +8005,8 @@ static OpenMPDirectiveKind getOpenMPCaptureRegionForClause( case OMPC_device: switch (DKind) { case OMPD_target_update: + case OMPD_target_enter_data: + case OMPD_target_exit_data: CaptureRegion = OMPD_task; break; case OMPD_target_teams: @@ -8013,8 +8015,6 @@ static OpenMPDirectiveKind getOpenMPCaptureRegionForClause( case OMPD_target_teams_distribute_parallel_for: case OMPD_target_teams_distribute_parallel_for_simd: case OMPD_target_data: - case OMPD_target_enter_data: - case OMPD_target_exit_data: case OMPD_target: case OMPD_target_simd: case OMPD_target_parallel: |

