AArch64: add support for newer Apple CPUs
authorTim Northover <tnorthover@apple.com>
Tue, 20 Sep 2022 14:03:26 +0000 (15:03 +0100)
committerTim Northover <tnorthover@apple.com>
Thu, 22 Sep 2022 10:58:51 +0000 (11:58 +0100)
commit677da09d0259d7530d32e85cb561bee15f0066e2
tree114a26c0c6c7e08641c936d1402ea7e5a53c3367
parente030be64d8c43a56b60a90b70765fc795e177e9c
AArch64: add support for newer Apple CPUs

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.
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