]> granicus.if.org Git - clang/commit
[OPENMP][NVPTX]Emit default locations with the correct Exec|Runtime
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 26 Nov 2018 18:37:09 +0000 (18:37 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 26 Nov 2018 18:37:09 +0000 (18:37 +0000)
commit54640b4bfae5c80bae6fd689c9d21c1fd4079059
tree6aad25149777d2390483c35f6988129ea175e8ad
parent1d87d1f352ee4196363927b40923b66b7c1c6a34
[OPENMP][NVPTX]Emit default locations with the correct Exec|Runtime
modes.

If the region is inside target|teams|distribute region, we can emit the
locations with the correct info for execution mode and runtime mode.
Patch adds this ability to the NVPTX codegen to help the optimizer to
produce better code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347583 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
lib/CodeGen/CGOpenMPRuntimeNVPTX.h
test/OpenMP/nvptx_SPMD_codegen.cpp
test/OpenMP/nvptx_target_codegen.cpp
test/OpenMP/nvptx_target_printf_codegen.c