This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC][Future] Add missing changes for PC Relative addressing features
ClosedPublic

Authored by NeHuang on Apr 17 2020, 3:35 PM.

Details

Summary
  • Use Subtarget.isUsingPCRelativeCalls() in functionPPCTargetLowering::LowerConstantPool to check if using PCRelative addressing.
  • Change MO_GOT_FLAG = 32 to MO_GOT_FLAG = 8 in PPC.h to use consecutive bits.

Diff Detail

Event Timeline

NeHuang created this revision.Apr 17 2020, 3:35 PM
nemanjai accepted this revision.Apr 21 2020, 7:19 AM

LGTM.

This revision is now accepted and ready to land.Apr 21 2020, 7:19 AM
NeHuang retitled this revision from [NFC][PowerPC] Add NFC changes for PCRelative feature to [PowerPC][Future] Add missing changes for PC Realtive addressing features.Apr 23 2020, 7:48 AM
This revision was automatically updated to reflect the committed changes.
NeHuang retitled this revision from [PowerPC][Future] Add missing changes for PC Realtive addressing features to [PowerPC][Future] Add missing changes for PC Relative addressing features.Apr 24 2020, 7:31 AM