]> granicus.if.org Git - clang/commit
[OPENMP]Use different addresses for zeroed thread_id/bound_id.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 16 Oct 2019 16:59:01 +0000 (16:59 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 16 Oct 2019 16:59:01 +0000 (16:59 +0000)
commit88700afba7f6176b9c437a6b66d81fd484ad845d
tree80446d2aca550e761683d3c3f5a8161ceb5e0789
parent5cd7a6f916b7b11f9955587e413af95c3f45bc7b
[OPENMP]Use different addresses for zeroed thread_id/bound_id.

When the parallel region is called directly in the sequential region,
the zeroed tid/bound id are used. But they must point to the different
memory locations as the parameters are marked as noalias.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375017 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
test/OpenMP/nvptx_target_codegen.cpp
test/OpenMP/nvptx_teams_reduction_codegen.cpp
test/OpenMP/parallel_if_codegen.cpp