diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2015-12-02 19:47:57 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2015-12-02 19:47:57 +0000 |
| commit | 00f2f91af4c7693e10cf70ef271b6cec89696e86 (patch) | |
| tree | a23fcce5ad32b05637af7806b63f3a2b44700531 /llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h | |
| parent | de25ecfa62ca533a64cbea8253c62c43aed9c0ae (diff) | |
| download | bcm5719-llvm-00f2f91af4c7693e10cf70ef271b6cec89696e86.tar.gz bcm5719-llvm-00f2f91af4c7693e10cf70ef271b6cec89696e86.zip | |
AMDGPU/SI: Correctly emit agent global segment variables when targeting HSA
Differential Revision: http://reviews.llvm.org/D14508
llvm-svn: 254540
Diffstat (limited to 'llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h index bf9377ed86c..cc70064dbc0 100644 --- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h +++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h @@ -32,7 +32,13 @@ void initDefaultAMDKernelCodeT(amd_kernel_code_t &Header, const FeatureBitset &Features); MCSection *getHSATextSection(MCContext &Ctx); +MCSection *getHSADataGlobalAgentSection(MCContext &Ctx); + +MCSection *getHSADataGlobalProgramSection(MCContext &Ctx); + bool isGroupSegment(const GlobalValue *GV); +bool isGlobalSegment(const GlobalValue *GV); +bool isReadOnlySegment(const GlobalValue *GV); } // end namespace AMDGPU } // end namespace llvm |

