[PATCH] D25781: AMDGPU: Emit runtime metadata as a note element in .note section
Yaxun Liu via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 19 11:13:11 PDT 2016
yaxunl created this revision.
yaxunl added reviewers: tony-tye, kzhuravl, tstellarAMD, arsenm, nhaustov.
yaxunl added a subscriber: llvm-commits.
Herald added subscribers: nhaehnle, wdng.
Currently runtime metadata is emitted as an ELF section with name .AMDGPU.runtime_metadata.
However there is a standard way to convey vendor specific information about how to run an ELF binary, which is called vendor-specific note element (http://www.netbsd.org/docs/kernel/elf-notes.html).
This patch lets AMDGPU backend emits runtime metadata as a note element in .note section.
https://reviews.llvm.org/D25781
Files:
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
lib/Target/AMDGPU/AMDGPUAsmPrinter.h
lib/Target/AMDGPU/AMDGPURuntimeMetadata.h
lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.h
test/CodeGen/AMDGPU/invalid-opencl-version-metadata1.ll
test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll
test/CodeGen/AMDGPU/invalid-opencl-version-metadata3.ll
test/CodeGen/AMDGPU/runtime-metadata.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25781.75172.patch
Type: text/x-patch
Size: 27450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161019/96626c53/attachment-0001.bin>
More information about the llvm-commits
mailing list