From 67a4f22f12b07c48f1779b3716f6b369c8a1a830 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Wed, 23 Jul 2014 10:25:33 +0000 Subject: [OPENMP] Initial parsing and sema analysis for 'update' clause of 'atomic' directive. llvm-svn: 213735 --- clang/lib/Parse/ParseOpenMP.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'clang/lib/Parse/ParseOpenMP.cpp') 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] -- cgit v1.2.3