[PATCH] D142904: [AArch64][SME2] Add multi-vector zip/uzp intrinsics
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 30 08:50:17 PST 2023
david-arm created this revision.
david-arm added reviewers: sdesmalen, kmclaughlin, CarolineConcatto, aemerson, MattDevereau.
Herald added subscribers: ctetreau, hiraditya, kristof.beyls.
Herald added a project: All.
david-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch adds the LLVM IR intrinsics for the following:
- zip (2 and 4 vectors, 8 to 64-bit elements) - aarch64.sve.zip.*
- zip (2 and 4 vectors, 128-bit elements) - aarch64.sve.zipq.*
- uzp (2 and 4 vectors, 8 to 64-bit elements) - aarch64.sve.uzp.*
- uzp (2 and 4 vectors, 128-bit elements) - aarch64.sve.uzpq.*
I have created separate intrinsics for the 128-bit variants
in a similar way to what was done for int_aarch64_sme_readq_horiz.
This permits us to use any vector type (<vscale x 16 x i8>, etc.)
for the 128-bit versions.
I have also named the tests sve2p1-intrinsics-* because although
the instructions are added as part of the SME2 feature they only
operate on SVE vectors.
NOTE: These intrinsics are still in development and are subject to future changes.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142904
Files:
llvm/include/llvm/IR/IntrinsicsAArch64.td
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
llvm/test/CodeGen/AArch64/sve2p1-intrinsics-uzpx2.ll
llvm/test/CodeGen/AArch64/sve2p1-intrinsics-uzpx4.ll
llvm/test/CodeGen/AArch64/sve2p1-intrinsics-zipx2.ll
llvm/test/CodeGen/AArch64/sve2p1-intrinsics-zipx4.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142904.493325.patch
Type: text/x-patch
Size: 66409 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230130/77bdd3ef/attachment-0001.bin>
More information about the llvm-commits
mailing list