aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/ParseOpenMP.cpp
diff options
context:
space:
mode:
authorMike Rice <michael.p.rice@intel.com>2021-10-28 08:10:40 -0700
committerMike Rice <michael.p.rice@intel.com>2021-10-28 08:26:43 -0700
commit6f9c25167d16acff3ff8e4f54a8c14a2a175fc59 (patch)
treef20bed8e167e3528aa237366584cc35afd26aa66 /clang/lib/Parse/ParseOpenMP.cpp
parent66e03db814874598954351853e4a8cab3c9715d9 (diff)
downloadllvm-6f9c25167d16acff3ff8e4f54a8c14a2a175fc59.zip
llvm-6f9c25167d16acff3ff8e4f54a8c14a2a175fc59.tar.gz
llvm-6f9c25167d16acff3ff8e4f54a8c14a2a175fc59.tar.bz2
[OpenMP] Initial parsing/sema for the 'omp loop' construct
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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp
index d38e088..d0114b8 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: