diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-12-08 12:06:20 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-12-08 12:06:20 +0000 |
commit | 382967a2e4be30089b1b2b0f640181a5d48fe53e (patch) | |
tree | 1163da83aeb140343990cd97aa94d1fd62a4d1ef /clang/lib/CodeGen/CGStmtOpenMP.cpp | |
parent | a520e9b30cd9b2cdd2d68145c597d037fe004ea5 (diff) | |
download | bcm5719-llvm-382967a2e4be30089b1b2b0f640181a5d48fe53e.tar.gz bcm5719-llvm-382967a2e4be30089b1b2b0f640181a5d48fe53e.zip |
[OPENMP 4.5] Parsing/sema for 'num_tasks' clause.
OpenMP 4.5 adds directives 'taskloop' and 'taskloop simd'. These directives support clause 'num_tasks'. Patch adds parsing/semantic analysis for this clause.
llvm-svn: 255008
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmtOpenMP.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index c3382859593..356b1de03ac 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -2488,6 +2488,7 @@ static void EmitOMPAtomicExpr(CodeGenFunction &CGF, OpenMPClauseKind Kind, case OMPC_priority: case OMPC_grainsize: case OMPC_nogroup: + case OMPC_num_tasks: llvm_unreachable("Clause is not allowed in 'omp atomic'."); } } |