[PATCH] D117845: [AMDGPU][NFC] Update to AMDGPUUsage for default Code Object Version
Changpeng Fang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 20 15:56:12 PST 2022
cfang created this revision.
cfang added reviewers: t-tye, kzhuravl.
Herald added subscribers: kerbowa, tpr, dstuttard, yaxunl, nhaehnle, jvesely.
cfang requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
Update the documentation for default code object version (from v3 to v4).
Add reference to AMDGPULLVMExtensionsForHeterogeneousDebugging.
https://reviews.llvm.org/D117845
Files:
llvm/docs/AMDGPUUsage.rst
Index: llvm/docs/AMDGPUUsage.rst
===================================================================
--- llvm/docs/AMDGPUUsage.rst
+++ llvm/docs/AMDGPUUsage.rst
@@ -23,6 +23,7 @@
AMDGPUInstructionSyntax
AMDGPUInstructionNotation
AMDGPUDwarfExtensionsForHeterogeneousDebugging
+ AMDGPULLVMExtensionsForHeterogeneousDebugging
AMDGPUDwarfExtensionAllowLocationDescriptionOnTheDwarfExpressionStack/AMDGPUDwarfExtensionAllowLocationDescriptionOnTheDwarfExpressionStack
Introduction
@@ -1018,12 +1019,12 @@
* ``ELFABIVERSION_AMDGPU_HSA_V3`` is used to specify the version of AMD HSA
runtime ABI for code object V3. Specify using the Clang option
- ``-mcode-object-version=3``. This is the default code object
- version if not specified.
+ ``-mcode-object-version=3``.
* ``ELFABIVERSION_AMDGPU_HSA_V4`` is used to specify the version of AMD HSA
runtime ABI for code object V4. Specify using the Clang option
- ``-mcode-object-version=4``.
+ ``-mcode-object-version=4``. This is the default code object
+ version if not specified.
* ``ELFABIVERSION_AMDGPU_PAL`` is used to specify the version of AMD PAL
runtime ABI.
@@ -1704,6 +1705,10 @@
:doc:`AMDGPUDwarfExtensionsForHeterogeneousDebugging` that are made available in
DWARF Version 4 and DWARF Version 5 as an LLVM vendor extension.
+AMDGPU uses LLVM features defined in
+:doc:`AMDGPULLVMExtensionsForHeterogeneousDebugging` to implement the generation
+of DWARF.
+
This section defines the AMDGPU target architecture specific DWARF mappings.
.. _amdgpu-dwarf-register-identifier:
@@ -2990,6 +2995,10 @@
Code Object V3 Metadata
+++++++++++++++++++++++
+.. warning::
+ Code object V3 is not the default code object version emitted by this version
+ of LLVM.
+
Code object V3 to V4 metadata is specified by the ``NT_AMDGPU_METADATA`` note
record (see :ref:`amdgpu-note-records-v3-v4`).
@@ -3425,10 +3434,6 @@
Code Object V4 Metadata
+++++++++++++++++++++++
-.. warning::
- Code object V4 is not the default code object version emitted by this version
- of LLVM.
-
Code object V4 metadata is the same as
:ref:`amdgpu-amdhsa-code-object-metadata-v3` with the changes and additions
defined in table :ref:`amdgpu-amdhsa-code-object-metadata-map-table-v3`.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117845.401806.patch
Type: text/x-patch
Size: 2291 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220120/71a56322/attachment.bin>
More information about the llvm-commits
mailing list