diff options
author | Samuel Antao <sfantao@us.ibm.com> | 2016-04-27 23:07:29 +0000 |
---|---|---|
committer | Samuel Antao <sfantao@us.ibm.com> | 2016-04-27 23:07:29 +0000 |
commit | bd0ae2e14c93e4c59d4c6739f3dfdd48149e489d (patch) | |
tree | 0979c37ca6d8533ea71c7fd498047dabe6190ef4 /clang/lib/CodeGen/CGOpenMPRuntime.h | |
parent | df158d55678182a57485ba8005b3e444aaeff5ca (diff) | |
download | bcm5719-llvm-bd0ae2e14c93e4c59d4c6739f3dfdd48149e489d.tar.gz bcm5719-llvm-bd0ae2e14c93e4c59d4c6739f3dfdd48149e489d.zip |
[OpenMP] Code generation for target enter data directive
Summary: This patch adds support for the target enter data directive code generation.
Reviewers: hfinkel, carlo.bertolli, arpith-jacob, kkwli0, ABataev
Subscribers: cfe-commits, fraggamuffin, caomhin
Differential Revision: http://reviews.llvm.org/D17368
llvm-svn: 267812
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntime.h')
-rw-r--r-- | clang/lib/CodeGen/CGOpenMPRuntime.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.h b/clang/lib/CodeGen/CGOpenMPRuntime.h index c1589e8ff44..d5183a61d2d 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntime.h +++ b/clang/lib/CodeGen/CGOpenMPRuntime.h @@ -1051,6 +1051,16 @@ public: const OMPExecutableDirective &D, const Expr *IfCond, const Expr *Device, const RegionCodeGenTy &CodeGen); + + /// \brief Emit the target data mapping code associated with \a D. + /// \param D Directive to emit. + /// \param IfCond Expression evaluated in if clause associated with the target + /// directive, or null if no if clause is used. + /// \param Device Expression evaluated in device clause associated with the + /// target directive, or null if no device clause is used. + virtual void emitTargetEnterDataCall(CodeGenFunction &CGF, + const OMPExecutableDirective &D, + const Expr *IfCond, const Expr *Device); }; } // namespace CodeGen |