diff options
author | Tony Tye <Tony.Tye@amd.com> | 2018-03-27 21:20:46 +0000 |
---|---|---|
committer | Tony Tye <Tony.Tye@amd.com> | 2018-03-27 21:20:46 +0000 |
commit | 01bfd6c4e5c48d8f3997f12103735161e8bd09cc (patch) | |
tree | 56993fe218c7373bbe6865d2e376ea9fe55d5849 /llvm | |
parent | 4db0960420b748870117969041d50a7465d785c7 (diff) | |
download | bcm5719-llvm-01bfd6c4e5c48d8f3997f12103735161e8bd09cc.tar.gz bcm5719-llvm-01bfd6c4e5c48d8f3997f12103735161e8bd09cc.zip |
[AMDGPU] Define code object identification string used in AMDHSA runtimes.
Differential Revision: https://reviews.llvm.org/D44718
llvm-svn: 328669
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/docs/AMDGPUUsage.rst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst index 0bf9b98d32b..3076332661a 100644 --- a/llvm/docs/AMDGPUUsage.rst +++ b/llvm/docs/AMDGPUUsage.rst @@ -910,6 +910,34 @@ This section provides code conventions used when the target triple OS is .. _amdgpu-amdhsa-hsa-code-object-metadata: +Code Object Target Identification +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The AMDHSA OS uses the following syntax to specify the code object +target as a single string: + + ``<Architecture>-<Vendor>-<OS>-<Environment>-<Processor><Target Features>`` + +Where: + + - ``<Architecture>``, ``<Vendor>``, ``<OS>`` and ``<Environment>`` + are the same as the *Target Triple* (see + :ref:`amdgpu-target-triples`). + + - ``<Processor>`` is the same as the *Processor* (see + :ref:`amdgpu-processors`). + + - ``<Target Features>`` is a list of the enabled *Target Features* + (see :ref:`amdgpu-target-features`), each prefixed by a plus, that + apply to *Processor*. The list must be in the same order as listed + in the table :ref:`amdgpu-target-feature-table`. Note that *Target + Features* must be included in the list if they are enabled even if + that is the default for *Processor*. + +For example: + + ``"amdgcn-amd-amdhsa--gfx902+xnack"`` + Code Object Metadata ~~~~~~~~~~~~~~~~~~~~ |