This is an archive of the discontinued LLVM Phabricator instance.

[mips][FastISel] Correct the relocation operators for calls & data.
AcceptedPublic

Authored by sdardis on Jun 26 2017, 3:16 AM.

Details

Reviewers
slthakur
Summary

Correct the relocation operators from %got to %call16 for function call
lowering in FastISel and correct the relocation sequences for objects which
are not visible outside their translation unit.

Data and functions which are not visible outside their translation unit are
accessed by loading the base address from the GOT and modifying that with
a %lo relocation operator.

Event Timeline

sdardis created this revision.Jun 26 2017, 3:16 AM
slthakur accepted this revision.Jul 3 2017, 2:37 AM

LGTM

This revision is now accepted and ready to land.Jul 3 2017, 2:37 AM