]> granicus.if.org Git - clang/commit
[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)
commit7aae486d3cdd4c955d3d05f6ecaead44f98e0224
tree5d88f6b2c6037f9e78ee8284610ebde9afa4ac9d
parent6942500c253179644f5b28cda8460d85525f11a5
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364650 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOpenMP.cpp
test/OpenMP/simd_loop_messages.cpp