[AMDGPU] Set metadata access for explicit section
authorPiotr Sobczak <piotr.sobczak@amd.com>
Wed, 12 Dec 2018 11:20:04 +0000 (11:20 +0000)
committerPiotr Sobczak <piotr.sobczak@amd.com>
Wed, 12 Dec 2018 11:20:04 +0000 (11:20 +0000)
commit3732b4ce2590c44032d4acc8ee103546e2e61197
tree05e4a2f3ef6947cc697f158075bfeca4ba7edafe
parent12d190598a7058b713cf0cd41335c40c2ff58eb4
[AMDGPU] Set metadata access for explicit section

Summary:
This patch provides a means to set Metadata section kind
for a global variable, if its explicit section name is
prefixed with ".AMDGPU.metadata."
This could be useful to make the global variable go to
an ELF section without any section flags set.

Reviewers: dstuttard, tpr, kzhuravl, nhaehnle, t-tye

Reviewed By: dstuttard, kzhuravl

Subscribers: llvm-commits, arsenm, jvesely, wdng, yaxunl, t-tye

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

llvm-svn: 348922
llvm/lib/Target/AMDGPU/AMDGPUTargetObjectFile.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetObjectFile.h
llvm/test/CodeGen/AMDGPU/elf.metadata.ll [new file with mode: 0644]