[PATCH] D149451: [NVPTX] Add NVPTXCtorDtorLoweringPass to handle global ctors / dtors
Artem Belevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 28 11:32:15 PDT 2023
tra added a comment.
In D149451#4306185 <https://reviews.llvm.org/D149451#4306185>, @jhuber6 wrote:
> I'm still very unhappy that you can't emit sections in `ptxas`. maybe we need to make a `ptxas` wrapper that compiles it in debug mode and regular mode then objcopies the section from the debug mode one into the regular one. I'm sure nothing could go wrong there :).
Considering the already-known quirkiness of ELF handling by other CUDA tools, I would not hold my breath for objcopy keeping CUDA tools/runtime/driver happy, either.
That's another point for growing our own ability to deal with NVIDIA GPU binaries in LLD and other LLVM's binary utilities. Everything else will require playing this endless game of whack-a-mole chasing version-dependent quirks in NVIDIA's tools.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149451/new/
https://reviews.llvm.org/D149451
More information about the llvm-commits
mailing list