[PATCH] D149451: [NVPTX] Add NVPTXCtorDtorLoweringPass to handle global ctors / dtors

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 29 18:01:10 PDT 2023


jhuber6 updated this revision to Diff 518262.
jhuber6 added a comment.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.

Update to only enable this when in "freestanding" mode. Also add a hash based on the module name to the global.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149451

Files:
  clang/lib/Driver/ToolChains/Cuda.cpp
  clang/lib/Driver/ToolChains/Cuda.h
  clang/test/Driver/cuda-cross-compiling.c
  llvm/lib/Target/NVPTX/CMakeLists.txt
  llvm/lib/Target/NVPTX/NVPTX.h
  llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  llvm/lib/Target/NVPTX/NVPTXCtorDtorLowering.cpp
  llvm/lib/Target/NVPTX/NVPTXCtorDtorLowering.h
  llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
  llvm/test/CodeGen/NVPTX/lower-ctor-dtor.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149451.518262.patch
Type: text/x-patch
Size: 16115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230430/720e1f43/attachment-0001.bin>


More information about the cfe-commits mailing list