diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-18 10:17:07 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-18 10:17:07 +0000 |
commit | 2df347ad96350cc4f0761db412608193703a46c7 (patch) | |
tree | d45673a081abd8f272ddaa0d4622bb6f49c8ec1f /clang/lib/Parse/ParseOpenMP.cpp | |
parent | 7a86a548b94d7316345481498a46335e1a220406 (diff) | |
download | bcm5719-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.cpp | 6 |
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); |