[PATCH] D88976: [clang] Use correct address space for global variable debug info

Scott Linder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 14 12:10:37 PDT 2020


scott.linder added inline comments.


================
Comment at: clang/lib/Basic/Targets/NVPTX.h:47
     -1, // Default, opencl_private or opencl_generic - not defined
-    5,  // opencl_global
+    -1, // opencl_global
     -1,
----------------
Does anyone have any thoughts on this change specifically? Is someone more familiar with NVPTX willing to weigh in on whether it makes more sense to carry the address space throughout the compiler explicitly and "drop" it late in the DWARF emission, or to do what I did in the current patch (drop it early).

I would lean towards updating the patch to do the latter, but I wanted to get feedback before plunging off to do it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88976



More information about the cfe-commits mailing list