diff options
author | Konstantin Zhuravlyov <kzhuravl_dev@outlook.com> | 2016-10-14 04:03:49 +0000 |
---|---|---|
committer | Konstantin Zhuravlyov <kzhuravl_dev@outlook.com> | 2016-10-14 04:03:49 +0000 |
commit | ee68fdadfe9665fafdc6d60e535879e2d1464f93 (patch) | |
tree | 70974d56d9e21982419d875fbacac15ab0465566 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | e1f094546d40c9f563b5a0140ac3c3077a669be9 (diff) | |
download | llvm-ee68fdadfe9665fafdc6d60e535879e2d1464f93.zip llvm-ee68fdadfe9665fafdc6d60e535879e2d1464f93.tar.gz llvm-ee68fdadfe9665fafdc6d60e535879e2d1464f93.tar.bz2 |
[Support/ELF/AMDGPU] Add 32-bit lo/hi got and pc relative relocations
Added relocation names:
- R_AMDGPU_GOTPCREL32_LO
- R_AMDGPU_GOTPCREL32_HI
- R_AMDGPU_REL32_LO
- R_AMDGPU_REL32_HI
AMDGPU isa only supports 32-bit immediates. In order to access 64-bit address we need to generate 32-bit lo/hi relocations, and do the right math (separate patch). Currently we only generate one 32 bit relocation for lower bits for each access, losing higher bits. Hence we need relocations listed above.
Differential Revision: https://reviews.llvm.org/D25546
llvm-svn: 284191
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions