mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Introduce a new function to lower 256-bit vectors which are not
direclty supported and should be promoted and handled by smaller shuffles git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135726 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
589b897a31
commit
d088834fb9
@ -5376,6 +5376,13 @@ static SDValue getVZextMovL(EVT VT, EVT OpVT,
|
||||
OpVT, SrcOp)));
|
||||
}
|
||||
|
||||
/// LowerVECTOR_SHUFFLE_256 - Handle all 256-bit wide vectors shuffles
|
||||
/// which could not be matched by any known target speficic shuffle
|
||||
static SDValue
|
||||
LowerVECTOR_SHUFFLE_256(ShuffleVectorSDNode *SVOp, SelectionDAG &DAG) {
|
||||
return SDValue();
|
||||
}
|
||||
|
||||
/// LowerVECTOR_SHUFFLE_128v4 - Handle all 128-bit wide vectors with
|
||||
/// 4 elements, and match them with several different shuffle types.
|
||||
static SDValue
|
||||
@ -6101,6 +6108,9 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) const {
|
||||
if (NumElems == 4 && VT.getSizeInBits() == 128)
|
||||
return LowerVECTOR_SHUFFLE_128v4(SVOp, DAG);
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Custom lower or generate target specific nodes for 256-bit shuffles.
|
||||
|
||||
// Handle VPERMIL permutations
|
||||
if (isVPERMILMask(M, VT)) {
|
||||
unsigned TargetMask = getShuffleVPERMILImmediate(SVOp);
|
||||
@ -6108,6 +6118,10 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) const {
|
||||
return getTargetShuffleNode(X86ISD::VPERMIL, dl, VT, V1, TargetMask, DAG);
|
||||
}
|
||||
|
||||
// Handle general 256-bit shuffles
|
||||
if (VT.is256BitVector())
|
||||
return LowerVECTOR_SHUFFLE_256(SVOp, DAG);
|
||||
|
||||
return SDValue();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user