[PATCH] D134351: AArch64: add definitions for recent Apple CPUs

Tim Northover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 21 05:11:05 PDT 2022


t.p.northover created this revision.
t.p.northover added a reviewer: ab.
Herald added subscribers: hiraditya, kristof.beyls, mcrosier.
Herald added a project: All.
t.p.northover requested review of this revision.
Herald added projects: clang, LLVM.
Herald added a subscriber: cfe-commits.

This adds support for Apple CPUs released since the last batch: apple-a15, apple-a16 and apple-m2.

They're roughly ARMv8.6. This works in the .td file, but in AArch64TargetParser.def, marking them v8.6 brings in support for the SM4 cryptographic hash and we don't actually have that. So TargetParser side they're marked as v8.5, with the extra features (BF16 and I8MM added manually).

Finally, A16 supports the HCX extension in addition to v8.6. This has no TargetParser implications.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134351

Files:
  clang/test/Misc/target-invalid-cpu-note.c
  llvm/include/llvm/Support/AArch64TargetParser.def
  llvm/lib/Target/AArch64/AArch64.td
  llvm/lib/Target/AArch64/AArch64Subtarget.cpp
  llvm/lib/Target/AArch64/AArch64Subtarget.h
  llvm/unittests/Support/TargetParserTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134351.461857.patch
Type: text/x-patch
Size: 15028 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220921/87517f44/attachment.bin>


More information about the llvm-commits mailing list