[OPENMP][NVPTX]Fixed processing of memory management directives.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 8 Apr 2019 16:53:57 +0000 (16:53 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 8 Apr 2019 16:53:57 +0000 (16:53 +0000)
commit1db9bfeba59b15bfb3f8592588e9aa9cd13ccd6b
treef3ee8c20617cb457afafe3bf602e8d1a77b8867e
parent10d6008f85237921bdd7956287d81acbe51b7dde
[OPENMP][NVPTX]Fixed processing of memory management directives.

Added special processing of the memory management directives/clauses for
NVPTX target. For private locals, omp_default_mem_alloc and
omp_thread_mem_alloc result in allocation in local memory.
omp_const_mem_alloc allocates const memory, omp_teams_mem_alloc
allocates shared memory, and omp_cgroup_mem_alloc and
omp_large_cap_mem_alloc allocate global memory.

llvm-svn: 357923
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/nvptx_allocate_codegen.cpp