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 | 738204ee9cf5636aa74a1d851eff7471078eb0c0 (patch) | |
tree | 5e199501d20a630eb960094d0c63c4504d5ff1ba /lib/Sema/SemaOpenMP.cpp | |
parent | 6aa8d6a1c91adc5f8b40f9997c092ec8eaba3544 (diff) |
[OPENMP] Initial support for parsing and sema analysis of 'untied' clause.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213257 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOpenMP.cpp')
-rw-r--r-- | lib/Sema/SemaOpenMP.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Sema/SemaOpenMP.cpp b/lib/Sema/SemaOpenMP.cpp index ef36e7e901..85a9ccffd8 100644 --- a/lib/Sema/SemaOpenMP.cpp +++ b/lib/Sema/SemaOpenMP.cpp @@ -2068,6 +2068,7 @@ OMPClause *Sema::ActOnOpenMPSingleExprClause(OpenMPClauseKind Kind, Expr *Expr, case OMPC_copyprivate: case OMPC_ordered: case OMPC_nowait: + case OMPC_untied: case OMPC_threadprivate: case OMPC_unknown: llvm_unreachable("Clause is not allowed."); @@ -2268,6 +2269,7 @@ OMPClause *Sema::ActOnOpenMPSimpleClause( case OMPC_copyprivate: case OMPC_ordered: case OMPC_nowait: + case OMPC_untied: case OMPC_threadprivate: case OMPC_unknown: llvm_unreachable("Clause is not allowed."); @@ -2380,6 +2382,7 @@ OMPClause *Sema::ActOnOpenMPSingleExprWithArgClause( case OMPC_copyprivate: case OMPC_ordered: case OMPC_nowait: + case OMPC_untied: case OMPC_threadprivate: case OMPC_unknown: llvm_unreachable("Clause is not allowed."); @@ -2454,6 +2457,9 @@ OMPClause *Sema::ActOnOpenMPClause(OpenMPClauseKind Kind, case OMPC_nowait: Res = ActOnOpenMPNowaitClause(StartLoc, EndLoc); break; + case OMPC_untied: + Res = ActOnOpenMPUntiedClause(StartLoc, EndLoc); + break; case OMPC_if: case OMPC_final: case OMPC_num_threads: @@ -2488,6 +2494,11 @@ OMPClause *Sema::ActOnOpenMPNowaitClause(SourceLocation StartLoc, return new (Context) OMPNowaitClause(StartLoc, EndLoc); } +OMPClause *Sema::ActOnOpenMPUntiedClause(SourceLocation StartLoc, + SourceLocation EndLoc) { + return new (Context) OMPUntiedClause(StartLoc, EndLoc); +} + OMPClause *Sema::ActOnOpenMPVarListClause( OpenMPClauseKind Kind, ArrayRef<Expr *> VarList, Expr *TailExpr, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, @@ -2535,6 +2546,7 @@ OMPClause *Sema::ActOnOpenMPVarListClause( case OMPC_schedule: case OMPC_ordered: case OMPC_nowait: + case OMPC_untied: case OMPC_threadprivate: case OMPC_unknown: llvm_unreachable("Clause is not allowed."); |