[OPENMP][NVPTX] Handle `requires datasharing` flag correctly with
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 1 Oct 2018 16:20:57 +0000 (16:20 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 1 Oct 2018 16:20:57 +0000 (16:20 +0000)
commite79451a5171e20c5da16a7f1a619c8851b9c574c
tree05399c6d6edc365e32b2c9ddf765605e54846c57
parent5187efcfabead2309d21b13a380181d36e31bb18
[OPENMP][NVPTX] Handle `requires datasharing` flag correctly with
lightweight runtime.

The datasharing flag must be set to `1` when executing SPMD-mode compatible directive with reduction|lastprivate clauses.

llvm-svn: 343492
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/nvptx_SPMD_codegen.cpp
clang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_codegen.cpp
clang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_simd_codegen.cpp