[AArch64] Add SVE2.1 target feature for Armv9-A 2022 Architecture Extension
authorDavid Sherwood <david.sherwood@arm.com>
Tue, 18 Oct 2022 16:43:44 +0000 (16:43 +0000)
committerDavid Sherwood <david.sherwood@arm.com>
Fri, 21 Oct 2022 14:02:32 +0000 (14:02 +0000)
commitfcd545863d27148f26a3ef98bd20501a4df48ec5
tree977820fd47ec84388e52c7b023ba7d9bd23e4517
parent33f78d0903eb1f7b2a7517218725caee1adfb4a3
[AArch64] Add SVE2.1 target feature for Armv9-A 2022 Architecture Extension

First patch in a series adding MC layer support for SVE2.1.

This patch adds the following feature:

sve2p1

Some of the existing SVE instructions added for SME are now
also available under the sve2p1 feature, which are now guarded
by the HasSVE2p1orSME predicate.

The reference can be found here:
https://developer.arm.com/documentation/ddi0602/2022-09

Differential Revision: https://reviews.llvm.org/D136352
13 files changed:
llvm/include/llvm/Support/AArch64TargetParser.def
llvm/include/llvm/Support/AArch64TargetParser.h
llvm/lib/Target/AArch64/AArch64.td
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/lib/Target/AArch64/AArch64SMEInstrInfo.td
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/test/MC/AArch64/SVE2p1/directive-arch-negative.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE2p1/directive-arch.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE2p1/directive-arch_extension-negative.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE2p1/directive-arch_extension.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE2p1/feature-sve2p1-implies-sve2.s [new file with mode: 0644]
llvm/unittests/Support/TargetParserTest.cpp