diff options
author | Mike Rice <michael.p.rice@intel.com> | 2022-03-23 15:37:06 -0700 |
---|---|---|
committer | Mike Rice <michael.p.rice@intel.com> | 2022-03-24 09:19:00 -0700 |
commit | f82ec5532b2f303732e547226816d7a668db3050 (patch) | |
tree | 108db7779e20e72c36d7f6a0fa5aa0c5326a38a3 /clang/lib/Parse/ParseOpenMP.cpp | |
parent | 50a97aacacf689f838451439d913421d608e1bed (diff) | |
download | llvm-f82ec5532b2f303732e547226816d7a668db3050.zip llvm-f82ec5532b2f303732e547226816d7a668db3050.tar.gz llvm-f82ec5532b2f303732e547226816d7a668db3050.tar.bz2 |
[OpenMP] Initial parsing/sema for the 'omp target parallel loop' construct
Adds basic parsing/sema/serialization support for the
#pragma omp target parallel loop directive.
Differential Revision: https://reviews.llvm.org/D122359
Diffstat (limited to 'clang/lib/Parse/ParseOpenMP.cpp')
-rw-r--r-- | clang/lib/Parse/ParseOpenMP.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp index d2ba4d6..60c51d3 100644 --- a/clang/lib/Parse/ParseOpenMP.cpp +++ b/clang/lib/Parse/ParseOpenMP.cpp @@ -155,6 +155,7 @@ static OpenMPDirectiveKindExWrapper parseOpenMPDirectiveKind(Parser &P) { {OMPD_taskloop, OMPD_simd, OMPD_taskloop_simd}, {OMPD_target, OMPD_parallel, OMPD_target_parallel}, {OMPD_target, OMPD_simd, OMPD_target_simd}, + {OMPD_target_parallel, OMPD_loop, OMPD_target_parallel_loop}, {OMPD_target_parallel, OMPD_for, OMPD_target_parallel_for}, {OMPD_target_parallel_for, OMPD_simd, OMPD_target_parallel_for_simd}, {OMPD_teams, OMPD_distribute, OMPD_teams_distribute}, @@ -2405,6 +2406,7 @@ Parser::DeclGroupPtrTy Parser::ParseOpenMPDeclarativeDirectiveWithExtDecl( case OMPD_teams_loop: case OMPD_target_teams_loop: case OMPD_parallel_loop: + case OMPD_target_parallel_loop: Diag(Tok, diag::err_omp_unexpected_directive) << 1 << getOpenMPDirectiveName(DKind); break; @@ -2763,6 +2765,7 @@ StmtResult Parser::ParseOpenMPDeclarativeOrExecutableDirective( case OMPD_teams_loop: case OMPD_target_teams_loop: case OMPD_parallel_loop: + case OMPD_target_parallel_loop: case OMPD_taskloop: case OMPD_taskloop_simd: case OMPD_master_taskloop: |