[Openmp-commits] [PATCH] D122515: [OpenMP] Add AMDGPU calling convention to ctor / dtor functions

Joseph Huber via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Mar 25 15:45:54 PDT 2022


jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, tianshilei1992, JonChesterfield, ronlieb.
Herald added subscribers: guansong, t-tye, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: openmp-commits, cfe-commits, sstefan1, wdng.
Herald added projects: clang, OpenMP.

This patch adds the necessary AMDGPU calling convention to the ctor /
dtor kernels. These are fundamentally device kenels called by the host
on image load. Without this calling convention information the AMDGPU
plugin is unable to identify them.

Depends on D122504 <https://reviews.llvm.org/D122504>

Fixes #54091


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122515

Files:
  clang/lib/CodeGen/CGOpenMPRuntime.cpp
  clang/test/OpenMP/amdgcn_target_global_constructor.cpp
  openmp/libomptarget/test/offloading/global_constructor.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122515.418350.patch
Type: text/x-patch
Size: 4917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220325/a0b05edb/attachment-0001.bin>


More information about the Openmp-commits mailing list