[PATCH] D75674: [AArch64][SVE] Implement vector tuple intrinsics

Cullen Rhodes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 5 04:24:27 PST 2020


c-rhodes created this revision.
c-rhodes added reviewers: sdesmalen, efriedma, rengolin.
Herald added subscribers: psnobl, rkruppe, hiraditya, kristof.beyls, tschuett.
Herald added a project: LLVM.
c-rhodes added a parent revision: D75672: [ValueTypes] Add support for scalable EVTs.

This patch adds the following intrinsics for creating two-tuple,
three-tuple and four-tuple scalable vectors:

- llvm.aarch64.sve.tuple.create2
- llvm.aarch64.sve.tuple.create3
- llvm.aarch64.sve.tuple.create4

As well as:

- llvm.aarch64.sve.tuple.get
- llvm.aarch64.sve.tuple.set

For extracting and inserting scalable vectors from vector tuples. These
intrinsics are intended to be used by the ACLE functions svcreate<n>,
svget and svset.

This patch also includes calling convention support for passing and
returning tuples of scalable vectors to/from functions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75674

Files:
  llvm/include/llvm/IR/IntrinsicsAArch64.td
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/test/CodeGen/AArch64/sve-calling-convention-tuple-types.ll
  llvm/test/CodeGen/AArch64/sve-intrinsics-create-tuple.ll
  llvm/test/CodeGen/AArch64/sve-intrinsics-insert-extract-tuple.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75674.248435.patch
Type: text/x-patch
Size: 72297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200305/e8d4396d/attachment.bin>


More information about the llvm-commits mailing list