[AArch64] Make nxv1i1 types a legal type for SVE.
authorSander de Smalen <sander.desmalen@arm.com>
Fri, 1 Jul 2022 14:29:07 +0000 (14:29 +0000)
committerSander de Smalen <sander.desmalen@arm.com>
Fri, 1 Jul 2022 15:11:13 +0000 (15:11 +0000)
commit690db164226fb1d454c5e592726a8bc0de16c6b5
treeee25e53d7dbb29f9a16942b42f7da22400c5f18e
parent560e694d48a6020f613281c29ffd17184f56dfb0
[AArch64] Make nxv1i1 types a legal type for SVE.

One motivation to add support for these types are the LD1Q/ST1Q
instructions in SME, for which we have defined a number of load/store
intrinsics which at the moment still take a `<vscale x 16 x i1>` predicate
regardless of their element type.

This patch adds basic support for the nxv1i1 type such that it can be passed/returned
from functions, as well as some basic support to support some existing tests that
result in a nxv1i1 type. It also adds support for splats.

Other operations (e.g. insert/extract subvector, logical ops, etc) will be
supported in follow-up patches.

Reviewed By: paulwalker-arm, efriedma

Differential Revision: https://reviews.llvm.org/D128665
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/lib/Target/AArch64/AArch64CallingConvention.td
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64RegisterInfo.td
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/lib/Target/AArch64/SVEInstrFormats.td
llvm/test/CodeGen/AArch64/sve-extract-scalable-vector.ll
llvm/test/CodeGen/AArch64/sve-select.ll
llvm/test/CodeGen/AArch64/sve-zeroinit.ll