diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-12-01 04:18:41 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-12-01 04:18:41 +0000 |
commit | 49f6e78d7118e5411488ebaf134de1fd2ff3f158 (patch) | |
tree | aacc2c2c6346a501acab425ad933050c7bb0d15f /clang/lib/Parse/ParseOpenMP.cpp | |
parent | 1dbaf67537327eb4e34a80c11503bf06e18811e1 (diff) | |
download | bcm5719-llvm-49f6e78d7118e5411488ebaf134de1fd2ff3f158.tar.gz bcm5719-llvm-49f6e78d7118e5411488ebaf134de1fd2ff3f158.zip |
[OPENMP 4.5] Parsing/sema analysis for 'taskloop' directive.
Adds initial parsing and semantic analysis for 'taskloop' directive.
llvm-svn: 254367
Diffstat (limited to 'clang/lib/Parse/ParseOpenMP.cpp')
-rw-r--r-- | clang/lib/Parse/ParseOpenMP.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp index cf108011129..22b1d08e697 100644 --- a/clang/lib/Parse/ParseOpenMP.cpp +++ b/clang/lib/Parse/ParseOpenMP.cpp @@ -137,6 +137,7 @@ Parser::DeclGroupPtrTy Parser::ParseOpenMPDeclarativeDirective() { case OMPD_cancellation_point: case OMPD_cancel: case OMPD_target_data: + case OMPD_taskloop: Diag(Tok, diag::err_omp_unexpected_directive) << getOpenMPDirectiveName(DKind); break; @@ -232,7 +233,8 @@ Parser::ParseOpenMPDeclarativeOrExecutableDirective(bool StandAloneAllowed) { case OMPD_target: case OMPD_teams: case OMPD_taskgroup: - case OMPD_target_data: { + case OMPD_target_data: + case OMPD_taskloop: { ConsumeToken(); // Parse directive name of the 'critical' directive if any. if (DKind == OMPD_critical) { |