[all-commits] [llvm/llvm-project] c6d56a: [AArch64] Add native CPU detection for Ampere1

Philipp Tomsich via All-commits all-commits at lists.llvm.org
Wed May 11 16:16:54 PDT 2022


  Branch: refs/heads/release/14.x
  Home:   https://github.com/llvm/llvm-project
  Commit: c6d56a324ef87668f109f738e3f51f8eb528c9dd
      https://github.com/llvm/llvm-project/commit/c6d56a324ef87668f109f738e3f51f8eb528c9dd
  Author: Philipp Tomsich <philipp.tomsich at vrull.eu>
  Date:   2022-05-11 (Wed, 11 May 2022)

  Changed paths:
    M llvm/lib/Support/Host.cpp
    M llvm/unittests/Support/Host.cpp

  Log Message:
  -----------
  [AArch64] Add native CPU detection for Ampere1

Map the IMPLEMENTOR ID 0xc0 (Ampere Computing) and CPU ID 0xac3
(Ampere1) to ampere1.

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

(cherry picked from commit 7e02bc5237751118efe36c41b0caf004aeed022f)


  Commit: 53433dd0b5034681e1866e74651e8527a29e9364
      https://github.com/llvm/llvm-project/commit/53433dd0b5034681e1866e74651e8527a29e9364
  Author: Philipp Tomsich <philipp.tomsich at vrull.eu>
  Date:   2022-05-11 (Wed, 11 May 2022)

  Changed paths:
    M clang/test/Misc/target-invalid-cpu-note.c
    M llvm/include/llvm/Support/AArch64TargetParser.def
    M llvm/lib/Target/AArch64/AArch64.td
    A llvm/lib/Target/AArch64/AArch64SchedAmpere1.td
    A llvm/lib/Target/AArch64/AArch64SchedPredAmpere.td
    M llvm/lib/Target/AArch64/AArch64SchedPredicates.td
    M llvm/lib/Target/AArch64/AArch64Subtarget.cpp
    M llvm/lib/Target/AArch64/AArch64Subtarget.h
    M llvm/test/CodeGen/AArch64/cpus.ll
    M llvm/test/CodeGen/AArch64/neon-dot-product.ll
    M llvm/test/CodeGen/AArch64/remat.ll
    M llvm/test/MC/AArch64/armv8.2a-dotprod.s
    M llvm/test/MC/AArch64/armv8.3a-rcpc.s
    M llvm/test/MC/Disassembler/AArch64/armv8.3a-rcpc.txt
    M llvm/unittests/Support/TargetParserTest.cpp

  Log Message:
  -----------
  [AArch64] Support for Ampere1 core

Add support for the Ampere Computing Ampere1 core.
Ampere1 implements the AArch64 state and is compatible with ARMv8.6-A.

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

(cherry picked from commit 64816e68f4419a9e14c23be8aa96fa412bed7e12)


  Commit: 52528806579b445f627cd93ff8201a59265795e8
      https://github.com/llvm/llvm-project/commit/52528806579b445f627cd93ff8201a59265795e8
  Author: Philipp Tomsich <philipp.tomsich at vrull.eu>
  Date:   2022-05-11 (Wed, 11 May 2022)

  Changed paths:
    M llvm/include/llvm/Support/AArch64TargetParser.def
    M llvm/unittests/Support/TargetParserTest.cpp

  Log Message:
  -----------
  [AArch64] Ampere1 does not support MTE

The initial support for the Ampere1 mistakenly signalled support for
the MTE feature.  However, the core does not include the optional MTE
functionality.

Update the target parser to not include MTE for Ampere1.

Reviewed By: dmgreen

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

(cherry picked from commit 91b24b018062c8650abfbd10f7da80a0c92266a7)


Compare: https://github.com/llvm/llvm-project/compare/60c8e02c9d12...52528806579b


More information about the All-commits mailing list