[all-commits] [llvm/llvm-project] 358a48: [NVPTX] Fix DWARF address space for globals (#122715)

Alexander Peskov via All-commits all-commits at lists.llvm.org
Tue Feb 4 06:16:43 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 358a48b29332bc8015cb28fa14f8df2882bc68cd
      https://github.com/llvm/llvm-project/commit/358a48b29332bc8015cb28fa14f8df2882bc68cd
  Author: Alexander Peskov <apeskov at nvidia.com>
  Date:   2025-02-04 (Tue, 04 Feb 2025)

  Changed paths:
    M llvm/include/llvm/Support/NVPTXAddrSpace.h
    M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
    A llvm/test/DebugInfo/NVPTX/debug-addr-space.ll

  Log Message:
  -----------
  [NVPTX] Fix DWARF address space for globals (#122715)

Fix an issue with defining actual DWARF address space for module scope
globals. Previously it was always `ADDR_global_space`.

Also, this patch introduces CUDA-specific DWARF codes for address space
specification in correspondence with:

https://docs.nvidia.com/cuda/ptx-writers-guide-to-interoperability/index.html#cuda-specific-dwarf-definitions
Previously hardcoded constant values are replaced with enum values.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list