This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ] Add support for tune-cpu attribute
ClosedPublic

Authored by Kai on Jun 30 2022, 7:11 AM.

Details

Summary

clang (like gcc) has the -mtune= command line option. This option
adds the "tune-cpu" attribute to a function. The intended functionality
is that the scheduling model of that cpu is used. E.g. -mtune=z15 -march=z14
generates only instructions supported on z14 but uses the scheduling model
of z15 for it.
This PR adds the infrastructure to support this.

Diff Detail

Unit TestsFailed

Event Timeline

Kai created this revision.Jun 30 2022, 7:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2022, 7:11 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Kai requested review of this revision.Jun 30 2022, 7:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2022, 7:11 AM
uweigand accepted this revision.Jun 30 2022, 7:58 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jun 30 2022, 7:58 AM
This revision was landed with ongoing or failed builds.Jun 30 2022, 9:51 AM
This revision was automatically updated to reflect the committed changes.