[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)
commite8ad4b7124b5ff907b64b1b9e4f4a4203ac2d544
tree98d154ae77036623bccad6422a6854eef2ed80a2
parentc866679a9b22a88ad4849902dec68cb2af2e5d0c
[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.

llvm-svn: 347583
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h
clang/test/OpenMP/nvptx_SPMD_codegen.cpp
clang/test/OpenMP/nvptx_target_codegen.cpp
clang/test/OpenMP/nvptx_target_printf_codegen.c