This is an archive of the discontinued LLVM Phabricator instance.

[ELF2] Implement PPC64TargetInfo::isRelRelative
ClosedPublic

Authored by hfinkel on Oct 8 2015, 10:09 AM.

Details

Summary

This is essentially patern-matching against the x86 target. It is still missing a test case, but feedback is certainly appreciated.

Diff Detail

Event Timeline

hfinkel updated this revision to Diff 36871.Oct 8 2015, 10:09 AM
hfinkel retitled this revision from to [ELF2] Implement PPC64TargetInfo::isRelRelative.
hfinkel updated this object.
hfinkel added reviewers: ruiu, rafael, davide.
hfinkel added a project: lld.
hfinkel added a subscriber: llvm-commits.
ruiu edited edge metadata.Oct 8 2015, 10:12 AM

This change seems good, but we need a test for this indeed.

davide edited edge metadata.Oct 8 2015, 10:37 AM

Hal, I think the change is correct. Please add a test preferably written in assembler.
The only comment if have is -- can you please add \n immediately right before and after the function?

hfinkel updated this revision to Diff 37098.Oct 12 2015, 5:58 AM
hfinkel edited edge metadata.

Added a test case (and some new lines).

ruiu accepted this revision.Oct 12 2015, 6:53 AM
ruiu edited edge metadata.

LGTM

This revision is now accepted and ready to land.Oct 12 2015, 6:53 AM
davide accepted this revision.Oct 12 2015, 8:40 AM
davide edited edge metadata.
hfinkel closed this revision.Oct 12 2015, 2:17 PM

r250102, thanks!