llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc
Tim Renouf 72800f0436 [AMDGPU] implemented pal metadata
Summary:
For the amdpal OS type:

We write an AMDGPU_PAL_METADATA record in the .note section in the ELF
(or as an assembler directive). It contains key=value pairs of 32 bit
ints. It is a merge of metadata from codegen of the shaders, and
metadata provided by the frontend as _amdgpu_pal_metadata IR metadata.
Where both sources have a key=value with the same key, the two values
are ORed together.

This .note record is part of the amdpal ABI and will be documented in
docs/AMDGPUUsage.rst in a future commit.

Eventually the amdpal OS type will stop generating the .AMDGPU.config
section once the frontend has safely moved over to using the .note
records above instead of .AMDGPU.config.

Reviewers: arsenm, nhaehnle, dstuttard

Subscribers: kzhuravl, wdng, yaxunl, llvm-commits, t-tye

Differential Revision: https://reviews.llvm.org/D37753

llvm-svn: 314829
2017-10-03 19:03:52 +00:00
..
AMDGPUAsmBackend.cpp Suppress a warning. NFC. 2017-08-09 10:38:53 +00:00
AMDGPUCodeObjectMetadataStreamer.cpp AMDGPU/NFC: Move amdgpu code object metadata to support 2017-06-06 18:35:50 +00:00
AMDGPUCodeObjectMetadataStreamer.h AMDGPU/NFC: Move amdgpu code object metadata to support 2017-06-06 18:35:50 +00:00
AMDGPUELFObjectWriter.cpp Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
AMDGPUELFStreamer.cpp
AMDGPUELFStreamer.h
AMDGPUFixupKinds.h
AMDGPUMCAsmInfo.cpp AMDGPU: Set StackGrowsUp in MCAsmInfo 2017-04-24 19:40:51 +00:00
AMDGPUMCAsmInfo.h
AMDGPUMCCodeEmitter.cpp
AMDGPUMCCodeEmitter.h [AMDGPU] SDWA: merge VI and GFX9 pseudo instructions 2017-06-21 08:53:38 +00:00
AMDGPUMCTargetDesc.cpp AMDGPU: Add R600InstPrinter class 2017-08-17 22:20:04 +00:00
AMDGPUMCTargetDesc.h AMDGPU: Fix crash when disassembling VOP3 mac 2017-04-10 17:58:06 +00:00
AMDGPUTargetStreamer.cpp [AMDGPU] implemented pal metadata 2017-10-03 19:03:52 +00:00
AMDGPUTargetStreamer.h [AMDGPU] implemented pal metadata 2017-10-03 19:03:52 +00:00
CMakeLists.txt [AMDGPU] Restructure code object metadata creation 2017-03-22 22:32:22 +00:00
LLVMBuild.txt Fix requirements. 2016-11-10 23:53:45 +00:00
R600MCCodeEmitter.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
SIMCCodeEmitter.cpp AMDGPU: Fix emitting encoded calls 2017-08-02 01:42:04 +00:00