[llvm] [NVPTX] Fix DWARF address space for globals (PR #122715)
Alexander Peskov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 16 06:18:43 PST 2025
================
@@ -949,14 +963,9 @@ void DwarfCompileUnit::applyConcreteDbgVariableAttributes(const Loc::MMI &MMI,
DwarfExpr.addExpression(std::move(Cursor));
}
if (Asm->TM.getTargetTriple().isNVPTX() && DD->tuneForGDB()) {
- // According to
- // https://docs.nvidia.com/cuda/archive/10.0/ptx-writers-guide-to-interoperability/index.html#cuda-specific-dwarf
----------------
apeskov wrote:
This URL is duplicated 5 times across this file. The idea was to keep it once in common place and put the links on it here. The best place for common description is a declaration of DWARF address space values described in this paper. There is no simple way to reference non-doxygen comment block from other file, so I used phrase `See NVPTXAS::DWARF_AddressSpace` as some kind of pointer to it.
https://github.com/llvm/llvm-project/pull/122715
More information about the llvm-commits
mailing list