[PATCH] D94708: [IR] Introduce llvm.experimental.vector.splice intrinsic
Cullen Rhodes via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 14 12:18:19 PST 2021
c-rhodes created this revision.
c-rhodes added reviewers: sdesmalen, david-arm, fhahn, craig.topper, cameron.mcinally.
Herald added subscribers: jdoerfert, hiraditya, kristof.beyls.
c-rhodes requested review of this revision.
Herald added a project: LLVM.
This patch introduces a new intrinsic @llvm.experimental.vector.splice
that constructs a vector of the same type as the two input vectors, by
concatenating the trailing elements from the first input vector, as
specified by a third argument, with the starting elements of the second
input vector.
For example:
@llvm.experimental.vector.splice(<A,B,C,D>, <E,F,G,H>, 3) ==> <B, C, D, E>
It supports both fixed and scalable vectors types, where the former is
lowered to a shufflevector to maintain existing behaviour. For scalable
vectors where it is not possible to express a shufflevector mask for
this operation, a new ISD node has been implemented.
This is one of the named shufflevector intrinsics proposed on the
mailing-list in the RFC at [1].
Patch by Paul Walker (@paulwalker-arm).
[1] https://lists.llvm.org/pipermail/llvm-dev/2020-November/146864.html
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D94708
Files:
llvm/docs/LangRef.rst
llvm/include/llvm/CodeGen/ISDOpcodes.h
llvm/include/llvm/IR/Intrinsics.td
llvm/include/llvm/Target/TargetSelectionDAG.td
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
llvm/lib/CodeGen/TargetLoweringBase.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/test/CodeGen/AArch64/named-vector-shuffles-neon.ll
llvm/test/CodeGen/AArch64/named-vector-shuffles-sve.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94708.316728.patch
Type: text/x-patch
Size: 52905 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210114/8c344bf1/attachment-0001.bin>
More information about the llvm-commits
mailing list