diff options
author | Kelvin Li <kkwli0@gmail.com> | 2015-11-24 20:50:12 +0000 |
---|---|---|
committer | Kelvin Li <kkwli0@gmail.com> | 2015-11-24 20:50:12 +0000 |
commit | 099bb8c65dd7709647676487946455fb03794ff0 (patch) | |
tree | 43630576434806fa4236e02f25e1e970c7f4cdab /clang/lib/Parse/ParseOpenMP.cpp | |
parent | 2fc2515519dab70fc38b24971c5a18c167278770 (diff) | |
download | bcm5719-llvm-099bb8c65dd7709647676487946455fb03794ff0.tar.gz bcm5719-llvm-099bb8c65dd7709647676487946455fb03794ff0.zip |
[OpenMP] Parsing and sema support for num_teams clause
http://reviews.llvm.org/D14802
llvm-svn: 254019
Diffstat (limited to 'clang/lib/Parse/ParseOpenMP.cpp')
-rw-r--r-- | clang/lib/Parse/ParseOpenMP.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp index 8379b8b687f..f9ca1185d94 100644 --- a/clang/lib/Parse/ParseOpenMP.cpp +++ b/clang/lib/Parse/ParseOpenMP.cpp @@ -394,7 +394,7 @@ bool Parser::ParseOpenMPSimpleVarList(OpenMPDirectiveKind Kind, /// schedule-clause | copyin-clause | copyprivate-clause | untied-clause | /// mergeable-clause | flush-clause | read-clause | write-clause | /// update-clause | capture-clause | seq_cst-clause | device-clause | -/// simdlen-clause | threads-clause | simd-clause +/// simdlen-clause | threads-clause | simd-clause | num_teams-clause /// OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind, OpenMPClauseKind CKind, bool FirstClause) { @@ -415,6 +415,7 @@ OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind, case OMPC_collapse: case OMPC_ordered: case OMPC_device: + case OMPC_num_teams: // OpenMP [2.5, Restrictions] // At most one num_threads clause can appear on the directive. // OpenMP [2.8.1, simd construct, Restrictions] @@ -426,6 +427,8 @@ OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind, // OpenMP [2.11.1, task Construct, Restrictions] // At most one if clause can appear on the directive. // At most one final clause can appear on the directive. + // OpenMP [teams Construct, Restrictions] + // At most one num_teams clause can appear on the directive. if (!FirstClause) { Diag(Tok, diag::err_omp_more_one_clause) << getOpenMPDirectiveName(DKind) << getOpenMPClauseName(CKind) << 0; |