]> granicus.if.org Git - clang/commit
[OPENMP 4.1] Add 'threads' clause for '#pragma omp ordered'.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 25 Sep 2015 10:37:12 +0000 (10:37 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 25 Sep 2015 10:37:12 +0000 (10:37 +0000)
commitb1fbc23058e7fa1cdd954ab97ba84f1c549c9879
tree1641d0b2ecebe9d74c7e089b86b76c8738d57c8f
parentd5786fe1141e2e59ad48d245871f984cfa70b047
[OPENMP 4.1] Add 'threads' clause for '#pragma omp ordered'.
OpenMP 4.1 extends format of '#pragma omp ordered'. It adds 3 additional clauses: 'threads', 'simd' and 'depend'.
If no clause is specified, the ordered construct behaves as if the threads clause had been specified. If the threads clause is specified, the threads in the team executing the loop region execute ordered regions sequentially in the order of the loop iterations.
The loop region to which an ordered region without any clause or with a threads clause binds must have an ordered clause without the parameter specified on the corresponding loop directive.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248569 91177308-0d34-0410-b5e6-96231b3b80d8
21 files changed:
include/clang/AST/DataRecursiveASTVisitor.h
include/clang/AST/OpenMPClause.h
include/clang/AST/RecursiveASTVisitor.h
include/clang/AST/StmtOpenMP.h
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Basic/OpenMPKinds.def
include/clang/Sema/Sema.h
lib/AST/Stmt.cpp
lib/AST/StmtPrinter.cpp
lib/AST/StmtProfile.cpp
lib/Basic/OpenMPKinds.cpp
lib/CodeGen/CGStmtOpenMP.cpp
lib/Parse/ParseOpenMP.cpp
lib/Sema/SemaOpenMP.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReaderStmt.cpp
lib/Serialization/ASTWriterStmt.cpp
test/OpenMP/ordered_ast_print.cpp
test/OpenMP/ordered_codegen.cpp
test/OpenMP/ordered_messages.cpp
tools/libclang/CIndex.cpp