[PATCH] D141548: [AMDGPU][NFC] Heterogeneous DWARF extensions update

Scott Linder via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 17:27:13 PST 2023


scott.linder accepted this revision.
scott.linder added a comment.
This revision is now accepted and ready to land.

LGTM, thank you!



================
Comment at: llvm/docs/AMDGPUDwarfExtensionsForHeterogeneousDebugging.rst:4704
+
+      - The second type of reference can identify any debugging information
+        entry within a .debug_info section; in particular, it may refer to an
----------------
t-tye wrote:
> scott.linder wrote:
> > This is just removing the text "For references from one shared object or static executable file to another, the relocation and identification of the target object must be performed by the consumer", right? Is this because it is redundant (and covered by the non-normative notes)?
> DWARF does not provide any means to identify a reference from one linked object to another. For all practical purposes, DW_OP_call_ref, DW_OP_implicit_pointer, and DW_FORM_ref_addr can only be used to refer to an offset within the same executable or shared object. Their purpose is for references between compilation units, not between linked objects. Therefore mention of the consumer resolving the reference to another executable/shared object has been removed from all three places.
OK, I see now, thank you for clarifying!


================
Comment at: llvm/docs/AMDGPUDwarfExtensionsForHeterogeneousDebugging.rst:4897
+
+   ================================== =======
+   ``DW_AT_LLVM_address_space``
----------------
t-tye wrote:
> scott.linder wrote:
> > Is the second column required for this to parse, or to match the two-column layout in the spec?
> It was the only way I found to stop the parser complaining about a single table being expected.
Makes sense, I assumed as much, just making sure it wasn't an oversight


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D141548



More information about the llvm-commits mailing list