[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 06:59:56 PDT 2023


jhuber6 added a comment.

In D149340#4301953 <https://reviews.llvm.org/D149340#4301953>, @yaxunl wrote:

> I am curious how other targets handle @llvm.global_ctors. Is there some generic LLVM pass to change them to .init_array ?

I don't think we could fold this AMDGPU lowering pass since it need to do its own ctor / dtor handling for making the kernels. I actually don't know where the lowering happens for generic targets, I could look if it's important.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149340



More information about the llvm-commits mailing list