[OPENMP] Codegen for local variables with the allocate pragma.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 19 Mar 2019 16:41:16 +0000 (16:41 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 19 Mar 2019 16:41:16 +0000 (16:41 +0000)
commit4f680db257733fe073e10f5e23838825b4b4cf47
tree63f2b4862b7bbc0d7ac104dd821e28de5db30a1c
parent5b820323ca11a7ed2f335873836ead6b5befd7b9
[OPENMP] Codegen for local variables with the allocate pragma.

Added initial codegen for the local variables with the #pragma omp
allocate directive. Instead of allocating the variables on the stack,
__kmpc_alloc|__kmpc_free functions are used for memory (de-)allocation.

llvm-svn: 356472
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/allocate_allocator_ast_print.cpp
clang/test/OpenMP/allocate_codegen.cpp [new file with mode: 0644]