]> granicus.if.org Git - clang/commit
[OpenMP] Add fields for flags in the offload entry descriptor.
authorSamuel Antao <sfantao@us.ibm.com>
Thu, 5 Jan 2017 16:02:49 +0000 (16:02 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Thu, 5 Jan 2017 16:02:49 +0000 (16:02 +0000)
commitda5ef961b4a9faa83eb69a779641678eab90e327
tree7917edd4026ed48188b4a512ae32466390911410
parent72e537abaf848db624270cc3f70cdb17fbb86fb0
[OpenMP] Add fields for flags in the offload entry descriptor.

Summary:
This patch adds two fields to the offload entry descriptor. One field is meant to signal Ctors/Dtors and `link` global variables, and the other is reserved for runtime library use.

 Currently, these fields are only filled with zeros in the current code generation, but that will change when `declare target` is added.

The reason, we are adding these fields now is to make the code generation consistent with the runtime library proposal under review in https://reviews.llvm.org/D14031.

Reviewers: ABataev, hfinkel, carlo.bertolli, kkwli0, arpith-jacob, Hahnfeld

Subscribers: cfe-commits, caomhin, jholewinski

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291124 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
lib/CodeGen/CGOpenMPRuntimeNVPTX.h
test/OpenMP/target_codegen.cpp
test/OpenMP/target_codegen_registration.cpp