[PATCH] D134268: [Clang][OpenMP] Codegen generation for has_device_addr claues.

Jennifer Yu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 20 02:04:36 PDT 2022


jyu2 created this revision.
jyu2 added reviewers: ABataev, jdoerfert, mikerice, abhinavgaba.
jyu2 added projects: OpenMP, clang.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
jyu2 requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.

This patch add codegen support for the has_device_addr clause. It use the same logic of is_device_ptr. But passing &var instead pointer to var to kernal.

This is follow up of revert of https://reviews.llvm.org/D134186


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134268

Files:
  clang/lib/CodeGen/CGOpenMPRuntime.cpp
  clang/lib/Sema/SemaOpenMP.cpp
  clang/test/OpenMP/target_has_device_addr_codegen.cpp
  clang/test/OpenMP/target_has_device_addr_codegen_01.cpp
  openmp/libomptarget/test/mapping/has_device_addr.cpp
  openmp/libomptarget/test/mapping/target_has_device_addr.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134268.461507.patch
Type: text/x-patch
Size: 156224 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220920/582d6974/attachment-0001.bin>


More information about the cfe-commits mailing list