[PATCH] D128910: [SystemZ] Add support for tune-cpu attribute
Kai Nacke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 30 07:11:23 PDT 2022
Kai created this revision.
Kai added reviewers: uweigand, jnspaulsson, yusra.syeda, Everybody0523.
Herald added a subscriber: hiraditya.
Herald added a project: All.
Kai requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D128910
Files:
llvm/lib/Target/SystemZ/SystemZSubtarget.cpp
llvm/lib/Target/SystemZ/SystemZSubtarget.h
llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128910.441387.patch
Type: text/x-patch
Size: 4499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220630/dcec5936/attachment.bin>
More information about the llvm-commits
mailing list