AMDGPU/SI: Emit constant arrays in the .text section
authorTom Stellard <thomas.stellard@amd.com>
Thu, 10 Dec 2015 02:13:01 +0000 (02:13 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 10 Dec 2015 02:13:01 +0000 (02:13 +0000)
commitc93fc11f36c5d9c85c471bb36367d30885a56087
tree1e26a1d42b1cf42d9c8bfee59798a316eac4ed34
parentb3c3bda512712feb662ae03758dfb6fc0c05fe20
AMDGPU/SI: Emit constant arrays in the .text section

Summary:
This allows us to remove the END_OF_TEXT_LABEL hack we had been using
and simplifies the fixups used to compute the address of constant
arrays.

Reviewers: arsenm

Subscribers: arsenm, llvm-commits

Differential Revision: http://reviews.llvm.org/D15257

llvm-svn: 255204
16 files changed:
llvm/lib/Target/AMDGPU/AMDGPU.h
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.h
llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetObjectFile.cpp [moved from llvm/lib/Target/AMDGPU/AMDGPUHSATargetObjectFile.cpp with 73% similarity]
llvm/lib/Target/AMDGPU/AMDGPUTargetObjectFile.h [moved from llvm/lib/Target/AMDGPU/AMDGPUHSATargetObjectFile.h with 66% similarity]
llvm/lib/Target/AMDGPU/CMakeLists.txt
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUFixupKinds.h
llvm/lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.td
llvm/lib/Target/AMDGPU/SIInstructions.td
llvm/test/CodeGen/AMDGPU/global-constant.ll [new file with mode: 0644]