]> granicus.if.org Git - clang/commit
[OPENMP][NVPTX]Mark __kmpc_barrier functions as convergent.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 4 Dec 2018 15:03:25 +0000 (15:03 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 4 Dec 2018 15:03:25 +0000 (15:03 +0000)
commit46d192daa59e1c252a74dbd398c3a07f278979bb
tree6c27e4ab1ea7f5fbce36b1427907e0b52f3df05b
parent83c153ffa0c346077388eb2ec9dc007530fa41ee
[OPENMP][NVPTX]Mark __kmpc_barrier functions as convergent.

__kmpc_barrier runtime functions must be marked as convergent to prevent
some dangerous optimizations. Also, for NVPTX target all barriers must
be emitted as simple barriers.

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