[all-commits] [llvm/llvm-project] 70a5d8: [PPC] Add support for tune-cpu attribute

Kai Nacke via All-commits all-commits at lists.llvm.org
Fri Jan 6 10:02:16 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70a5d8e4c469195e9302dba2c5a9518a69e0773e
      https://github.com/llvm/llvm-project/commit/70a5d8e4c469195e9302dba2c5a9518a69e0773e
  Author: Kai Nacke <kai.peter.nacke at ibm.com>
  Date:   2023-01-06 (Fri, 06 Jan 2023)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCSubtarget.cpp
    M llvm/lib/Target/PowerPC/PPCSubtarget.h
    M llvm/lib/Target/PowerPC/PPCTargetMachine.cpp

  Log Message:
  -----------
  [PPC] 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=pwr9 -march=pwr8
generates only instructions supported on pwr8 but uses the scheduling model
of pwr9 for it.
This PR adds the infrastructure to support this in LLVM.
clang support was added in https://reviews.llvm.org/D130526.

Reviewed By: amyk, qiucf

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




More information about the All-commits mailing list