]> granicus.if.org Git - clang/commit
[OPENMP 4.1] Initial support for extended 'ordered' clause.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 30 Jul 2015 11:36:16 +0000 (11:36 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 30 Jul 2015 11:36:16 +0000 (11:36 +0000)
commit7bda3ec414cd8edaaa06f8f89e89c49adf57baea
treef76fde04bd5c5e57105cc167d40ffb131e1f8da4
parent4354e02b6b9cc0d7b5bc389f66199aeccf13acfc
[OPENMP 4.1] Initial support for extended 'ordered' clause.

OpenMP 4.1 introduces optional argument '(n)' for 'ordered' clause, where 'n' is a number of loops that immediately follow the directive.
'n' must be constant positive integer expressions and it must be less or equal than the number of the loops in the resulting loop nest.
Patch adds parsing and semantic analysis for this optional argument.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243635 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
include/clang/AST/DataRecursiveASTVisitor.h
include/clang/AST/OpenMPClause.h
include/clang/AST/RecursiveASTVisitor.h
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/AST/StmtPrinter.cpp
lib/AST/StmtProfile.cpp
lib/Parse/ParseOpenMP.cpp
lib/Sema/SemaOpenMP.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReaderStmt.cpp
lib/Serialization/ASTWriterStmt.cpp
test/OpenMP/for_ast_print.cpp
test/OpenMP/for_ordered_clause.cpp [new file with mode: 0644]
test/OpenMP/parallel_for_ast_print.cpp
test/OpenMP/parallel_for_ordered_messages.cpp [new file with mode: 0644]
tools/libclang/CIndex.cpp