aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAndrew Gozillon <Andrew.Gozillon@amd.com>2023-09-20 13:13:55 -0500
committerAndrew Gozillon <Andrew.Gozillon@amd.com>2023-09-20 13:31:15 -0500
commit76916669b96f6411ecc276ffdf77d305093178dc (patch)
treef94fb513b61c0dffaf62286abb6a8a0dc5304a91 /clang/lib/Frontend/CompilerInvocation.cpp
parent03feab7499847f490e328447cfc7384e757c331e (diff)
downloadllvm-76916669b96f6411ecc276ffdf77d305093178dc.zip
llvm-76916669b96f6411ecc276ffdf77d305093178dc.tar.gz
llvm-76916669b96f6411ecc276ffdf77d305093178dc.tar.bz2
[MLIR][OpenMP] Initial Lowering of Declare Target for Data
This patch adds initial lowering for DeclareTargetAttr on GlobalOp's utilising registerTargetGlobalVariable and getAddrOfDeclareTargetVar from the OMPIRBuilder. It also adds initial processing of declare target map operands, populating the combinedInfo that the OMPIRBuilder requires to generate kernels and it's kernel argument structure. The combination of these additions allows simple mapping of declare target globals to Target regions, as such a simple runtime test showcasing this and testing it has been added. The patch currently does not factor in filtering based on device_type clauses (e.g. no emission of globals for device if host specified), this will come in a future iteration. And for the moment it's only been tested with 1-D arrays and basic fortran data types, more complex types (such as user defined derived types from Fortran, allocatables or Fortran pointers) may need further work. reviewers: kiranchandramohan, skatrak Differential Revision: https://reviews.llvm.org/D149368
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions