[OPENMP][NVPTX]Simplify handling of thread limit, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 13 May 2019 14:21:46 +0000 (14:21 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 13 May 2019 14:21:46 +0000 (14:21 +0000)
commitf9e00db8185ddcf6491b62c700d23283b3559a08
tree353e5c3351d263d510f2344df18c9af515d7211b
parentb1e28d9b6a16380ccf1456fe0695f639364407a9
[OPENMP][NVPTX]Simplify handling of thread limit, NFC.

Summary:
Patch improves performance of the full runtime mode by moving
threads limit counter to the shared memory. It also allows to save
global memory.

Reviewers: grokos, kkwli0, gtbercea

Subscribers: guansong, jdoerfert, openmp-commits, caomhin

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D61801

llvm-svn: 360584
openmp/libomptarget/deviceRTLs/nvptx/src/libcall.cu
openmp/libomptarget/deviceRTLs/nvptx/src/omp_data.cu
openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu
openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h
openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptxi.h
openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu