diff options
author | Mike Rice <michael.p.rice@intel.com> | 2021-10-25 15:03:42 -0700 |
---|---|---|
committer | Mike Rice <michael.p.rice@intel.com> | 2021-10-28 07:44:27 -0700 |
commit | b663278e084c9fff51275a670631784d3b9f730f (patch) | |
tree | eafc08b2a17314b00a875eef6ee8ad145a26a0a7 /clang/lib/Parse/ParseOpenMP.cpp | |
parent | bf87294cd4fa5781aa2fc0954e117712befedf87 (diff) | |
download | llvm-omp-loop.tar.gz |
[OpenMP] Initial parsing/sema for the 'omp loop' constructomp-loop
Adds basic parsing/sema/serialization support for the #pragma omp loop
directive.
Differential Revision: https://reviews.llvm.org/D112499
Diffstat (limited to 'clang/lib/Parse/ParseOpenMP.cpp')
-rw-r--r-- | clang/lib/Parse/ParseOpenMP.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp index d38e088a4706..d0114b8fdae7 100644 --- a/clang/lib/Parse/ParseOpenMP.cpp +++ b/clang/lib/Parse/ParseOpenMP.cpp @@ -2375,6 +2375,7 @@ Parser::DeclGroupPtrTy Parser::ParseOpenMPDeclarativeDirectiveWithExtDecl( case OMPD_dispatch: case OMPD_masked: case OMPD_metadirective: + case OMPD_loop: Diag(Tok, diag::err_omp_unexpected_directive) << 1 << getOpenMPDirectiveName(DKind); break; @@ -2724,6 +2725,7 @@ Parser::ParseOpenMPDeclarativeOrExecutableDirective(ParsedStmtContext StmtCtx) { case OMPD_target_data: case OMPD_target_parallel: case OMPD_target_parallel_for: + case OMPD_loop: case OMPD_taskloop: case OMPD_taskloop_simd: case OMPD_master_taskloop: |