This is an archive of the discontinued LLVM Phabricator instance.

[PPC][NFC] Add Subtarget and replace all uses of PPCSubTarget with Subtarget.
ClosedPublic

Authored by kbarton on Jun 10 2020, 5:45 PM.

Details

Summary

In preparation for GlobalISel, PPCSubTarget needs to be renamed to Subtarget as there places in GlobalISel that assume the presence of the variable Subtarget.
This patch introduces the variable Subtarget, and replaces all existing uses of PPCSubTarget with Subtarget. A subsequent patch will remove the definiton of
PPCSubTarget, once any downstream users have the opportunity to rename any uses they have.

Diff Detail

Event Timeline

kbarton created this revision.Jun 10 2020, 5:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2020, 5:45 PM
kbarton added reviewers: hfinkel, nemanjai, jhibbits, Restricted Project.Jun 10 2020, 5:48 PM
lkail added a subscriber: lkail.Jun 10 2020, 8:12 PM

Could you rephrase the title by adding 'NFC' please?

echristo accepted this revision.Jun 10 2020, 8:52 PM
echristo added a subscriber: echristo.

LGTM (with the NFC request above).

This revision is now accepted and ready to land.Jun 10 2020, 8:52 PM
kbarton retitled this revision from [PPC] Add Subtarget and replace all uses of PPCSubTarget with Subtarget. to [PPC][NFC] Add Subtarget and replace all uses of PPCSubTarget with Subtarget..Jun 11 2020, 2:22 PM
lkail accepted this revision.Jun 11 2020, 4:30 PM

LGTM.

kbarton updated this revision to Diff 272168.Jun 19 2020, 1:09 PM

Rebase based on latest version of master.

This revision was automatically updated to reflect the committed changes.