summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseOpenMP.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-07-18 10:17:07 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-07-18 10:17:07 +0000
commit2df347ad96350cc4f0761db412608193703a46c7 (patch)
treed45673a081abd8f272ddaa0d4622bb6f49c8ec1f /clang/lib/Parse/ParseOpenMP.cpp
parent7a86a548b94d7316345481498a46335e1a220406 (diff)
downloadbcm5719-llvm-2df347ad96350cc4f0761db412608193703a46c7.tar.gz
bcm5719-llvm-2df347ad96350cc4f0761db412608193703a46c7.zip
[OPENMP] Initial parsing and sema analysis for 'taskwait' directive.
llvm-svn: 213363
Diffstat (limited to 'clang/lib/Parse/ParseOpenMP.cpp')
-rw-r--r--clang/lib/Parse/ParseOpenMP.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp
index b3f13b8bff3..cf991784306 100644
--- a/clang/lib/Parse/ParseOpenMP.cpp
+++ b/clang/lib/Parse/ParseOpenMP.cpp
@@ -85,6 +85,7 @@ Parser::DeclGroupPtrTy Parser::ParseOpenMPDeclarativeDirective() {
case OMPD_task:
case OMPD_taskyield:
case OMPD_barrier:
+ case OMPD_taskwait:
case OMPD_for:
case OMPD_sections:
case OMPD_section:
@@ -109,8 +110,8 @@ Parser::DeclGroupPtrTy Parser::ParseOpenMPDeclarativeDirective() {
/// executable-directive:
/// annot_pragma_openmp 'parallel' | 'simd' | 'for' | 'sections' |
/// 'section' | 'single' | 'master' | 'parallel for' |
-/// 'parallel sections' | 'task' | 'taskyield' | 'barrier' {clause}
-/// annot_pragma_openmp_end
+/// 'parallel sections' | 'task' | 'taskyield' | 'barrier' | 'taskwait'
+/// {clause} annot_pragma_openmp_end
///
StmtResult
Parser::ParseOpenMPDeclarativeOrExecutableDirective(bool StandAloneAllowed) {
@@ -148,6 +149,7 @@ Parser::ParseOpenMPDeclarativeOrExecutableDirective(bool StandAloneAllowed) {
break;
case OMPD_taskyield:
case OMPD_barrier:
+ case OMPD_taskwait:
if (!StandAloneAllowed) {
Diag(Tok, diag::err_omp_immediate_directive)
<< getOpenMPDirectiveName(DKind);
OpenPOWER on IntegriCloud