[OPENMP][NVPTX]Improve thread limit counter, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 3 May 2019 20:00:38 +0000 (20:00 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 3 May 2019 20:00:38 +0000 (20:00 +0000)
commita857e310115cd21f187c028777c582e3089cf722
tree37d3e0e57a560c48e0fb442f20a99011617529ea
parente5cbe78259c9b3f181f267ac82bde04dd8a57df8
[OPENMP][NVPTX]Improve thread limit counter, NFC.

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

Reviewers: grokos, gtbercea, kkwli0

Subscribers: guansong, jdoerfert, caomhin, openmp-commits

Tags: #openmp

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

llvm-svn: 359922
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/parallel.cu