diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2019-10-10 17:28:10 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-10-10 17:28:10 +0000 |
commit | c2cd2d40aa2e657c4f7bf0bac2594c9ea9611f43 (patch) | |
tree | 111e09cdd41216ec771f31d95c70294381deec28 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 27c23653aec79e447193281f2f29da15d8bb1bf9 (diff) | |
download | bcm5719-llvm-c2cd2d40aa2e657c4f7bf0bac2594c9ea9611f43.tar.gz bcm5719-llvm-c2cd2d40aa2e657c4f7bf0bac2594c9ea9611f43.zip |
[OPENMP50]Support for declare variant directive for NVPTX target.
NVPTX does not support global aliases. Instead, we have to copy the full
body of the variant function for the original function.
llvm-svn: 374387
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 95964afed4e..597b8d712ca 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1270,6 +1270,11 @@ public: /// \param D Requires declaration void EmitOMPRequiresDecl(const OMPRequiresDecl *D); + /// Emits the definition of \p OldGD function with body from \p NewGD. + /// Required for proper handling of declare variant directive on the GPU. + void emitOpenMPDeviceFunctionRedefinition(GlobalDecl OldGD, GlobalDecl NewGD, + llvm::GlobalValue *GV); + /// Returns whether the given record has hidden LTO visibility and therefore /// may participate in (single-module) CFI and whole-program vtable /// optimization. |