This is an archive of the discontinued LLVM Phabricator instance.

[TargetInstrInfo][PowerPC] Remove virtual function that is only called from PPC specific code.
ClosedPublic

Authored by craig.topper on Dec 8 2021, 3:49 PM.

Details

Summary

There are two signatures of setSpecialOperandAttr in TargetInstrInfo.
One of them is only called from PPC's implementation of the other
signature and PPC has an override for it.

Remove it from TargetInstrInfo and make it a non-virtual method in
PPCInstrInfo.

Diff Detail

Event Timeline

craig.topper created this revision.Dec 8 2021, 3:49 PM
craig.topper requested review of this revision.Dec 8 2021, 3:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2021, 3:49 PM
RKSimon accepted this revision.Dec 9 2021, 12:31 PM

LGTM with one minor

llvm/lib/Target/PowerPC/PPCInstrInfo.h
396–398

Add a comment saying this is a PowerPC custom wrapper?

This revision is now accepted and ready to land.Dec 9 2021, 12:31 PM