[PATCH] D149340: [AMDGPU] Place global constructors in .init_array and .fini_array

Joseph Huber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 17:48:45 PDT 2023


jhuber6 updated this revision to Diff 517761.
jhuber6 added a comment.

Update, turns out that if we don't delete the ctor / dtor here it does the
default approach which is exactly what we want. The only changes required are
making sure we don't create duplicate kernels.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149340/new/

https://reviews.llvm.org/D149340

Files:
  llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp
  llvm/test/CodeGen/AMDGPU/lower-ctor-dtor-constexpr-alias.ll
  llvm/test/CodeGen/AMDGPU/lower-ctor-dtor-existing.ll
  llvm/test/CodeGen/AMDGPU/lower-ctor-dtor.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149340.517761.patch
Type: text/x-patch
Size: 5667 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230428/d61e9971/attachment.bin>


More information about the llvm-commits mailing list