diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-23 10:25:33 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-23 10:25:33 +0000 |
commit | 67a4f22f12b07c48f1779b3716f6b369c8a1a830 (patch) | |
tree | f83b1b681f3851e697e5c2d70499e142badf92ed /clang/lib/Parse/ParseOpenMP.cpp | |
parent | c92717f2f6f024e2f2435b6e1e45a873bc14449f (diff) | |
download | bcm5719-llvm-67a4f22f12b07c48f1779b3716f6b369c8a1a830.tar.gz bcm5719-llvm-67a4f22f12b07c48f1779b3716f6b369c8a1a830.zip |
[OPENMP] Initial parsing and sema analysis for 'update' clause of 'atomic' directive.
llvm-svn: 213735
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 a5bc4a44942..024b1abe37c 100644 --- a/clang/lib/Parse/ParseOpenMP.cpp +++ b/clang/lib/Parse/ParseOpenMP.cpp @@ -342,7 +342,8 @@ bool Parser::ParseOpenMPSimpleVarList(OpenMPDirectiveKind Kind, /// | linear-clause | aligned-clause | collapse-clause | /// lastprivate-clause | reduction-clause | proc_bind-clause | /// schedule-clause | copyin-clause | copyprivate-clause | untied-clause | -/// mergeable-clause | flush-clause | read-clause | write-clause +/// mergeable-clause | flush-clause | read-clause | write-clause | +/// update-clause /// OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind, OpenMPClauseKind CKind, bool FirstClause) { @@ -410,6 +411,7 @@ OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind, case OMPC_mergeable: case OMPC_read: case OMPC_write: + case OMPC_update: // OpenMP [2.7.1, Restrictions, p. 9] // Only one ordered clause can appear on a loop directive. // OpenMP [2.7.1, Restrictions, C/C++, p. 4] |