This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Refactor fixup handling for constant addrspace variables
ClosedPublic

Authored by tstellarAMD on Jun 8 2016, 1:51 PM.

Details

Summary

We now use a standard fixup type applying the pc-relative address of
constant address space variables, and we have the GlobalAddress lowering
code add the required 4 byte offset to the global address rather than
doing it as part of the fixup.

This refactoring will make it easier to use the same code for global
address space variables and also simplifies the code.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Refactor fixup handling for constant addrspace variables.
tstellarAMD updated this object.
tstellarAMD added reviewers: arsenm, kzhuravl.
tstellarAMD added a subscriber: llvm-commits.
kzhuravl accepted this revision.Jun 13 2016, 11:02 AM
kzhuravl edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jun 13 2016, 11:02 AM
arsenm added inline comments.Jun 13 2016, 11:10 AM
lib/Target/AMDGPU/SIISelLowering.cpp
1424 ↗(On Diff #60103)

I think it's better to just re-use the existing Op.getValueType()

This revision was automatically updated to reflect the committed changes.