diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-17 12:19:31 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-17 12:19:31 +0000 |
commit | 7aea99a310b5beca93abc8aa788b074175a95bcb (patch) | |
tree | 8dde97a13e8d381258d3b6041c3e73482996eae9 /clang/lib/Parse/ParseOpenMP.cpp | |
parent | 9a2350e45950e13d3d3a0ff318c10912ffef9d32 (diff) | |
download | bcm5719-llvm-7aea99a310b5beca93abc8aa788b074175a95bcb.tar.gz bcm5719-llvm-7aea99a310b5beca93abc8aa788b074175a95bcb.zip |
[OPENMP] Initial support for parsing and sema analysis of 'untied' clause.
llvm-svn: 213257
Diffstat (limited to 'clang/lib/Parse/ParseOpenMP.cpp')
-rw-r--r-- | clang/lib/Parse/ParseOpenMP.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp index 172aef8cf3e..9f1fa0af154 100644 --- a/clang/lib/Parse/ParseOpenMP.cpp +++ b/clang/lib/Parse/ParseOpenMP.cpp @@ -292,7 +292,7 @@ bool Parser::ParseOpenMPSimpleVarList(OpenMPDirectiveKind Kind, /// default-clause | private-clause | firstprivate-clause | shared-clause /// | linear-clause | aligned-clause | collapse-clause | /// lastprivate-clause | reduction-clause | proc_bind-clause | -/// schedule-clause | copyin-clause | copyprivate-clause +/// schedule-clause | copyin-clause | copyprivate-clause | untied-clause /// OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind, OpenMPClauseKind CKind, bool FirstClause) { @@ -353,6 +353,7 @@ OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind, break; case OMPC_ordered: case OMPC_nowait: + case OMPC_untied: // 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] @@ -468,6 +469,9 @@ OMPClause *Parser::ParseOpenMPSimpleClause(OpenMPClauseKind Kind) { /// nowait-clause: /// 'nowait' /// +/// untied-clause: +/// 'untied' +/// OMPClause *Parser::ParseOpenMPClause(OpenMPClauseKind Kind) { SourceLocation Loc = Tok.getLocation(); ConsumeAnyToken(); |