[all-commits] [llvm/llvm-project] 50b26d: [SystemZ] Add support for tune-cpu attribute

Kai Nacke via All-commits all-commits at lists.llvm.org
Thu Jun 30 09:51:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50b26de3c528bf3316127f11cb5d4835fb9fa4f8
      https://github.com/llvm/llvm-project/commit/50b26de3c528bf3316127f11cb5d4835fb9fa4f8
  Author: Kai Nacke <kai.nacke at de.ibm.com>
  Date:   2022-06-30 (Thu, 30 Jun 2022)

  Changed paths:
    M llvm/lib/Target/SystemZ/SystemZSubtarget.cpp
    M llvm/lib/Target/SystemZ/SystemZSubtarget.h
    M llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp

  Log Message:
  -----------
  [SystemZ] Add support for tune-cpu attribute

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.

Reviewed By: uweigand

Differential Revision: https://reviews.llvm.org/D128910




More information about the All-commits mailing list