[llvm] [NVPTX] Fix DWARF address space for globals (PR #122715)

Alexander Peskov via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 01:26:32 PST 2025


================
@@ -0,0 +1,25 @@
+; RUN: llc < %s -march=nvptx64 | FileCheck %s
+
+; Test that translateToNVVMDWARFAddrSpace() function translates NVVM IR address space
+; value `Shared` (3) to the corresponding DWARF DW_AT_address_class attributeĀ for PTX.
----------------
apeskov wrote:

This is correct. The task is to translate `addrspace(3)`  which means `ADDRESS_SPACE_SHARED = 3` to DWARF value `DWARF_ADDR_shared_space = 8`. So the conversion 3 -> 8.

https://github.com/llvm/llvm-project/pull/122715


More information about the llvm-commits mailing list