[all-commits] [llvm/llvm-project] 2d728b: [CodeGen][SelectionDAG]Add new intrinsic experime...
CarolineConcatto via All-commits
all-commits at lists.llvm.org
Mon Feb 15 05:42:00 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2d728bbff5c688284b8b8306ecfd3000b0ab8bb1
https://github.com/llvm/llvm-project/commit/2d728bbff5c688284b8b8306ecfd3000b0ab8bb1
Author: Caroline Concatto <caroline.concatto at arm.com>
Date: 2021-02-15 (Mon, 15 Feb 2021)
Changed paths:
M llvm/docs/LangRef.rst
M llvm/include/llvm/CodeGen/ISDOpcodes.h
M llvm/include/llvm/IR/Intrinsics.td
M llvm/include/llvm/Target/TargetSelectionDAG.td
M llvm/lib/Analysis/InstructionSimplify.cpp
M llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
M llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
M llvm/lib/Target/AArch64/AArch64FastISel.cpp
M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
M llvm/lib/Target/AArch64/AArch64ISelLowering.h
M llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
A llvm/test/CodeGen/AArch64/named-vector-shuffle-reverse-neon.ll
A llvm/test/CodeGen/AArch64/named-vector-shuffle-reverse-sve.ll
A llvm/test/CodeGen/X86/named-vector-shuffle-reverse.ll
A llvm/test/Transforms/InstSimplify/named-vector-shuffle-reverse.ll
Log Message:
-----------
[CodeGen][SelectionDAG]Add new intrinsic experimental.vector.reverse
This patch adds a new intrinsic experimental.vector.reduce that takes a single
vector and returns a vector of matching type but with the original lane order
reversed. For example:
```
vector.reverse(<A,B,C,D>) ==> <D,C,B,A>
```
The new intrinsic supports fixed and scalable vectors types.
The fixed-width vector relies on shufflevector to maintain existing behaviour.
Scalable vector uses the new ISD node - VECTOR_REVERSE.
This new intrinsic 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
Differential Revision: https://reviews.llvm.org/D94883
More information about the All-commits
mailing list