[AArch64] Move default extensions from clang Driver to TargetParser
authorDavid Green <david.green@arm.com>
Mon, 16 Jan 2023 16:58:18 +0000 (16:58 +0000)
committerDavid Green <david.green@arm.com>
Mon, 16 Jan 2023 16:58:18 +0000 (16:58 +0000)
commit0f422215ac63da4cb610a21998a2d24c11703fbf
treead7cdbf78e05c632bdfc5edd4282d0b154ae2ea7
parent688d6507c7e2f49668ab0d1f71a1f86f933f99f1
[AArch64] Move default extensions from clang Driver to TargetParser

The default extensions would be better added in the TargetParser, not by
the driver. This removes the addition of +i8mm and +bf16 features in the
driver as they are already added in 8.6/9.1 architectures. AEK_MOPS and
AEK_HBC have been added to 8.8/9.3 architectures to replace the need for
+hbc and +mops features.

Differential Revision: https://reviews.llvm.org/D141518
clang/lib/Driver/ToolChains/Arch/AArch64.cpp
clang/test/Driver/aarch64-hbc.c
clang/test/Driver/aarch64-i8mm.c
clang/test/Driver/aarch64-mops.c
clang/test/Driver/aarch64-v91a.c
clang/test/Driver/aarch64-v92a.c
llvm/include/llvm/TargetParser/AArch64TargetParser.h