[all-commits] [llvm/llvm-project] 3d3ad0: [Clang][AArch64] set default mtune for macOS (#179...

Tomer Shafir via All-commits all-commits at lists.llvm.org
Wed Feb 18 02:57:38 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d3ad01e47abe63c78bf7ed58bc60b8ec45c6e25
      https://github.com/llvm/llvm-project/commit/3d3ad01e47abe63c78bf7ed58bc60b8ec45c6e25
  Author: Tomer Shafir <tomer.shafir8 at gmail.com>
  Date:   2026-02-18 (Wed, 18 Feb 2026)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/AArch64.cpp
    M clang/lib/Driver/ToolChains/Arch/AArch64.h
    M clang/lib/Driver/ToolChains/Clang.cpp
    A clang/test/Driver/aarch64-mtune-apple-macos.c

  Log Message:
  -----------
  [Clang][AArch64] set default mtune for macOS (#179136)

This patch sets a default tune-cpu on macOS targets to `apple-m5`.

The implementation adds a helper in
`clang/lib/Driver/ToolChains/Arch/AArch64.h` called by
`clang/lib/Driver/ToolChains/Clang.cpp`. It doesnt follow a "check then
get" flow because its very concise, and returns an optional instead. It
adds a missing test file for mtune on Apple macOS targets, including the
new logic.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list