[OPENMP]Fix DSA for loop iteration variables in simd loops.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 28 Jun 2019 15:16:37 +0000 (15:16 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 28 Jun 2019 15:16:37 +0000 (15:16 +0000)
commitb7c31ff4a22e05da367503f5f7e845d1a98169a5
treedf8eb2947a0caf24d3592ff6c88b6d6ca31d8846
parent9fab46ca0bd38babf7b1a441d44389dcb66a1935
[OPENMP]Fix DSA for loop iteration variables in simd loops.

According to the OpenMP 5.0 standard, the loop iteration variable in the associated
for-loop of a simd construct with just one associated for-loop may be
listed in a private, lastprivate, or linear clause with a linear-step
that is the increment of the associated for-loop. Also, the loop
teration variables in the associated for-loops of a simd construct with
multiple associated for-loops may be listed in a private or lastprivate
clause.

llvm-svn: 364650
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/simd_loop_messages.cpp