]> granicus.if.org Git - clang/commit
[OPENMP] Codegen for ctor|dtor of declare target variables.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 28 Mar 2018 14:28:54 +0000 (14:28 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 28 Mar 2018 14:28:54 +0000 (14:28 +0000)
commitc368db314cba827ced921527739fc9c53c04a121
tree38fcfa5b958164359477ccf14ea674676dda7841
parent9f49beb064eaf255813720d0a1ff2482cd02d988
[OPENMP] Codegen for ctor|dtor of declare target variables.

When the declare target variables are emitted for the device,
constructors|destructors for these variables must emitted and registered
by the runtime in the offloading sections.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328705 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/CodeGen/CGDeclCXX.cpp
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
lib/CodeGen/CGOpenMPRuntimeNVPTX.h
lib/Parse/ParseOpenMP.cpp
test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp [new file with mode: 0644]