]> granicus.if.org Git - clang/commit
[OPENMP] Add restriction for reduction clause in taskloop directives.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 11 Jul 2017 19:16:44 +0000 (19:16 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 11 Jul 2017 19:16:44 +0000 (19:16 +0000)
commitec63778c569bced1a855ca4a01fdbd90ef56824a
treebbccc76d3216ba2199054b7a032f67772d411015
parentad12b8a0b192b6e5979abaef99c90256ce3a2876
[OPENMP] Add restriction for reduction clause in taskloop directives.

Added checks for the reduction clauses in the taskloop directives:
1. Only addressable items must be used in reduction clauses.
2. Reduction clauses cannot be used with nogroup clauses.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307693 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaOpenMP.cpp
test/OpenMP/taskloop_ast_print.cpp
test/OpenMP/taskloop_reduction_messages.cpp [new file with mode: 0644]
test/OpenMP/taskloop_simd_ast_print.cpp
test/OpenMP/taskloop_simd_reduction_messages.cpp [new file with mode: 0644]