diff options
author | Akash Banerjee <Akash.Banerjee@amd.com> | 2023-07-12 12:03:15 +0100 |
---|---|---|
committer | Akash Banerjee <Akash.Banerjee@amd.com> | 2023-07-12 12:03:28 +0100 |
commit | 227012cbd71f7f55c9f28f561a069628a964a97a (patch) | |
tree | a119be750cc7975c5ce13748b5156807ac8c6df6 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 15e7749e19ddeacbacc1676ddb9b42cc388163d0 (diff) | |
download | llvm-227012cbd71f7f55c9f28f561a069628a964a97a.zip llvm-227012cbd71f7f55c9f28f561a069628a964a97a.tar.gz llvm-227012cbd71f7f55c9f28f561a069628a964a97a.tar.bz2 |
[OpenMP] Migrate device code privatisation from Clang CodeGen to OMPIRBuilder
This patch migrates the UseDevicePtr and UseDeviceAddr clause related code for handling privatisation from Clang codegen to the OMPIRBuilder
Depends on D150860
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D152554
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 1debbbf..bcd4ef4 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -3403,10 +3403,12 @@ public: OMPPrivateScope &PrivateScope); void EmitOMPUseDevicePtrClause( const OMPUseDevicePtrClause &C, OMPPrivateScope &PrivateScope, - const llvm::DenseMap<const ValueDecl *, Address> &CaptureDeviceAddrMap); + const llvm::DenseMap<const ValueDecl *, llvm::Value *> + CaptureDeviceAddrMap); void EmitOMPUseDeviceAddrClause( const OMPUseDeviceAddrClause &C, OMPPrivateScope &PrivateScope, - const llvm::DenseMap<const ValueDecl *, Address> &CaptureDeviceAddrMap); + const llvm::DenseMap<const ValueDecl *, llvm::Value *> + CaptureDeviceAddrMap); /// Emit code for copyin clause in \a D directive. The next code is /// generated at the start of outlined functions for directives: /// \code |