[llvm] 4cfea31 - [AMDGPU][NFC] Update to AMDGPUUsage for default Code Object Version
Changpeng Fang via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 24 14:34:58 PST 2022
Author: Changpeng Fang
Date: 2022-01-24T14:33:12-08:00
New Revision: 4cfea311cb8e448e7f66feb25f7aef7f68fa59b8
URL: https://github.com/llvm/llvm-project/commit/4cfea311cb8e448e7f66feb25f7aef7f68fa59b8
DIFF: https://github.com/llvm/llvm-project/commit/4cfea311cb8e448e7f66feb25f7aef7f68fa59b8.diff
LOG: [AMDGPU][NFC] Update to AMDGPUUsage for default Code Object Version
Summary:
Update the documentation for default code object version (from v3 to v4).
Reviewers:
kzhuravl
Differential Revision:
https://reviews.llvm.org/D117845
Added:
Modified:
llvm/docs/AMDGPUUsage.rst
Removed:
################################################################################
diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst
index 8875d178015bc..f592660f4965e 100644
--- a/llvm/docs/AMDGPUUsage.rst
+++ b/llvm/docs/AMDGPUUsage.rst
@@ -1018,12 +1018,12 @@ The AMDGPU backend uses the following ELF header:
* ``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.
@@ -2990,6 +2990,10 @@ non-AMD key names should be prefixed by "*vendor-name*.".
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 +3429,6 @@ same *vendor-name*.
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`.
More information about the llvm-commits
mailing list