mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Rename function to be more specific and be more strict about its usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135725 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8592d903e1
commit
589b897a31
@ -5376,15 +5376,17 @@ static SDValue getVZextMovL(EVT VT, EVT OpVT,
|
||||
OpVT, SrcOp)));
|
||||
}
|
||||
|
||||
/// LowerVECTOR_SHUFFLE_4wide - Handle all 4 wide cases with a number of
|
||||
/// shuffles.
|
||||
/// LowerVECTOR_SHUFFLE_128v4 - Handle all 128-bit wide vectors with
|
||||
/// 4 elements, and match them with several different shuffle types.
|
||||
static SDValue
|
||||
LowerVECTOR_SHUFFLE_4wide(ShuffleVectorSDNode *SVOp, SelectionDAG &DAG) {
|
||||
LowerVECTOR_SHUFFLE_128v4(ShuffleVectorSDNode *SVOp, SelectionDAG &DAG) {
|
||||
SDValue V1 = SVOp->getOperand(0);
|
||||
SDValue V2 = SVOp->getOperand(1);
|
||||
DebugLoc dl = SVOp->getDebugLoc();
|
||||
EVT VT = SVOp->getValueType(0);
|
||||
|
||||
assert(VT.getSizeInBits() == 128 && "Unsupported vector size");
|
||||
|
||||
SmallVector<std::pair<int, int>, 8> Locs;
|
||||
Locs.resize(4);
|
||||
SmallVector<int, 8> Mask1(4U, -1);
|
||||
@ -6094,9 +6096,10 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) const {
|
||||
return NewOp;
|
||||
}
|
||||
|
||||
// Handle all 4 wide cases with a number of shuffles.
|
||||
if (NumElems == 4)
|
||||
return LowerVECTOR_SHUFFLE_4wide(SVOp, DAG);
|
||||
// Handle all 128-bit wide vectors with 4 elements, and match them with
|
||||
// several different shuffle types.
|
||||
if (NumElems == 4 && VT.getSizeInBits() == 128)
|
||||
return LowerVECTOR_SHUFFLE_128v4(SVOp, DAG);
|
||||
|
||||
// Handle VPERMIL permutations
|
||||
if (isVPERMILMask(M, VT)) {
|
||||
|
Loading…
Reference in New Issue
Block a user