[all-commits] [llvm/llvm-project] a8a3a4: [AArch64] Add apple-m1 CPU, and default to it for ...

Ahmed Bougacha via All-commits all-commits at lists.llvm.org
Tue Apr 20 08:42:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8a3a43792472c9775c60fa79b9357033d47ce40
      https://github.com/llvm/llvm-project/commit/a8a3a43792472c9775c60fa79b9357033d47ce40
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/AArch64.cpp
    M clang/test/Driver/aarch64-mac-cpus.c
    M clang/test/Preprocessor/aarch64-target-features.c
    M llvm/include/llvm/Support/AArch64TargetParser.def
    M llvm/lib/Target/AArch64/AArch64.td
    M llvm/unittests/Support/TargetParserTest.cpp

  Log Message:
  -----------
  [AArch64] Add apple-m1 CPU, and default to it for macOS.

apple-m1 has the same level of ISA support as apple-a14,
so this is a straightforward mechanical change.  However, that
also means this inherits apple-a14's v8.5a+nobti quirkiness.

rdar://68287159


  Commit: cedb5b06df1bab31e0484df31a40585ac7e7af19
      https://github.com/llvm/llvm-project/commit/cedb5b06df1bab31e0484df31a40585ac7e7af19
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/AArch64.cpp
    M clang/test/Driver/aarch64-mac-cpus.c

  Log Message:
  -----------
  [AArch64] Don't always override CPU for arm64e.

This demotes the apple-a12 CPU selection for arm64e to just be the
last-resort default.  Concretely, this means:
- an explicitly-specified -mcpu will override the arm64e default;
  a user could potentially pick an invalid CPU that doesn't have
  v8.3a support, but that's not a major problem anymore
- arm64e-apple-macos (and variants) will pick apple-m1 instead of
  being forced to apple-a12.


  Commit: a0573b6c10030357d31f30a19df1b3134b698f94
      https://github.com/llvm/llvm-project/commit/a0573b6c10030357d31f30a19df1b3134b698f94
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64.td

  Log Message:
  -----------
  [AArch64] Bump apple-latest CPU alias to apple-a14.


Compare: https://github.com/llvm/llvm-project/compare/d51b22d782ee...a0573b6c1003


More information about the All-commits mailing list