[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)
commit34f8a7043badc630221606f21058a082acde3644
tree0299d0bff5a1ede2f1046bc6c3897d09bfd117c6
parentdd2b929ffb07693f4885b18b47e8baf080c7be80
[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.

llvm-svn: 328705
clang/include/clang/Sema/Sema.h
clang/lib/CodeGen/CGDeclCXX.cpp
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h
clang/lib/Parse/ParseOpenMP.cpp
clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp [new file with mode: 0644]