This is an archive of the discontinued LLVM Phabricator instance.

[ARM] GlobalISel: Select simple G_GLOBAL_VALUE instructions
ClosedPublic

Authored by rovka on Jul 26 2017, 2:32 AM.

Details

Summary

Add support in the instruction selector for G_GLOBAL_VALUE for ELF and
MachO for the static relocation model. We don't handle Windows yet
because that's Thumb-only, and we don't handle Thumb in general at the
moment.

Support for PIC, ROPI, RWPI and TLS will be added in subsequent commits.

Please let me know if I missed any subtleties or if the tests are completely
wrong. Thanks!

Diff Detail

Repository
rL LLVM

Event Timeline

rovka created this revision.Jul 26 2017, 2:32 AM
fhahn added a subscriber: fhahn.Jul 26 2017, 7:08 AM
t.p.northover accepted this revision.Aug 2 2017, 10:41 AM

Looks reasonable to me.

This revision is now accepted and ready to land.Aug 2 2017, 10:41 AM
This revision was automatically updated to reflect the committed changes.