This is an archive of the discontinued LLVM Phabricator instance.

[NFC][PowerPC] Add the inheritable and additional features to make the processor definition more clear
ClosedPublic

Authored by steven.zhang on Nov 26 2019, 11:55 PM.

Details

Summary

The old processor design assume that, all the old processor's feature must be inherited into future processor. That is not true as instruction fusion or some implementation defined features are not inheritable. See https://reviews.llvm.org/D70651 and https://reviews.llvm.org/D70466.

  • Rename the old "specific features" to "additional features" that keep the new added inheritable features.
  • Use the "specific features" to keep those features only for specific processor.
  • Add the "inheritable features" to keep all the features that inherited from early processor.

Diff Detail

Event Timeline

steven.zhang created this revision.Nov 26 2019, 11:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 26 2019, 11:55 PM
steven.zhang edited the summary of this revision. (Show Details)Nov 26 2019, 11:56 PM

Rebase the patch.

jsji accepted this revision.Dec 2 2019, 7:51 AM

LGTM. Thanks.

This revision is now accepted and ready to land.Dec 2 2019, 7:51 AM
This revision was automatically updated to reflect the committed changes.