Home
last modified time | relevance | path

Searched refs:SrcNumElts (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86ShuffleDecode.cpp254 void DecodeSubVectorBroadcast(unsigned DstNumElts, unsigned SrcNumElts, in DecodeSubVectorBroadcast() argument
256 unsigned Scale = DstNumElts / SrcNumElts; in DecodeSubVectorBroadcast()
259 for (unsigned j = 0; j != SrcNumElts; ++j) in DecodeSubVectorBroadcast()
H A DX86ShuffleDecode.h95 void DecodeSubVectorBroadcast(unsigned DstNumElts, unsigned SrcNumElts,
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PreLegalizerCombiner.cpp372 unsigned SrcNumElts = SrcTy.getNumElements(); in applyExtAddvToUdotAddv() local
373 extractParts(Ext1SrcReg, LLT::fixed_vector(16, 8), SrcNumElts / 16, in applyExtAddvToUdotAddv()
375 extractParts(Ext2SrcReg, LLT::fixed_vector(16, 8), SrcNumElts / 16, in applyExtAddvToUdotAddv()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp483 unsigned SrcNumElts = V1VTy->getElementCount().getKnownMinValue(); in ConstantFoldShuffleVectorInstruction() local
494 if (unsigned(Elt) >= SrcNumElts*2) in ConstantFoldShuffleVectorInstruction()
496 else if (unsigned(Elt) >= SrcNumElts) { in ConstantFoldShuffleVectorInstruction()
500 ConstantInt::get(Ty, Elt - SrcNumElts)); in ConstantFoldShuffleVectorInstruction()
H A DAutoUpgrade.cpp2948 unsigned SrcNumElts = in upgradeX86IntrinsicCall() local
2950 unsigned Scale = DstNumElts / SrcNumElts; in upgradeX86IntrinsicCall()
2957 for (unsigned i = 0; i != SrcNumElts; ++i) in upgradeX86IntrinsicCall()
2959 for (unsigned i = SrcNumElts; i != DstNumElts; ++i) in upgradeX86IntrinsicCall()
2960 Idxs[i] = SrcNumElts; in upgradeX86IntrinsicCall()
2978 for (unsigned i = 0; i != SrcNumElts; ++i) in upgradeX86IntrinsicCall()
2979 Idxs[i + Imm * SrcNumElts] = i + DstNumElts; in upgradeX86IntrinsicCall()
2993 unsigned SrcNumElts = in upgradeX86IntrinsicCall() local
2995 unsigned Scale = SrcNumElts / DstNumElts; in upgradeX86IntrinsicCall()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp4029 unsigned SrcNumElts = SrcVT.getVectorNumElements(); in visitShuffleVector() local
4032 if (SrcNumElts == MaskNumElts) { in visitShuffleVector()
4038 if (SrcNumElts < MaskNumElts) { in visitShuffleVector()
4042 if (MaskNumElts % SrcNumElts == 0) { in visitShuffleVector()
4046 unsigned NumConcat = MaskNumElts / SrcNumElts; in visitShuffleVector()
4055 if ((Idx % SrcNumElts != (i % SrcNumElts)) || in visitShuffleVector()
4056 (ConcatSrcs[i / SrcNumElts] >= 0 && in visitShuffleVector()
4057 ConcatSrcs[i / SrcNumElts] != (int)(Idx / SrcNumElts))) { in visitShuffleVector()
4062 ConcatSrcs[i / SrcNumElts] = Idx / SrcNumElts; in visitShuffleVector()
4082 unsigned PaddedMaskNumElts = alignTo(MaskNumElts, SrcNumElts); in visitShuffleVector()
[all …]
H A DDAGCombiner.cpp24818 unsigned SrcNumElts = SrcVT.getVectorMinNumElements(); in visitEXTRACT_SUBVECTOR() local
24820 if ((SrcNumElts % DestNumElts) == 0) { in visitEXTRACT_SUBVECTOR()
24821 unsigned SrcDestRatio = SrcNumElts / DestNumElts; in visitEXTRACT_SUBVECTOR()
24832 if ((DestNumElts % SrcNumElts) == 0) { in visitEXTRACT_SUBVECTOR()
24833 unsigned DestSrcRatio = DestNumElts / SrcNumElts; in visitEXTRACT_SUBVECTOR()
26468 unsigned SrcNumElts = SrcVT.getVectorNumElements(); in visitSCALAR_TO_VECTOR() local
26470 if (VecEltVT == SrcVT.getScalarType() && VTNumElts <= SrcNumElts) { in visitSCALAR_TO_VECTOR()
26472 SmallVector<int, 8> Mask(SrcNumElts, -1); in visitSCALAR_TO_VECTOR()
26484 if (VTNumElts != SrcNumElts) { in visitSCALAR_TO_VECTOR()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp476 unsigned SrcNumElts = SrcType.isVector() ? SrcType.getNumElements() : 1; in matchCombineShuffleVector() local
493 if (DstNumElts < 2 * SrcNumElts && DstNumElts != 1) in matchCombineShuffleVector()
498 if (DstNumElts % SrcNumElts != 0) in matchCombineShuffleVector()
504 unsigned NumConcat = DstNumElts / SrcNumElts; in matchCombineShuffleVector()
514 if ((Idx % SrcNumElts != (i % SrcNumElts)) || in matchCombineShuffleVector()
515 (ConcatSrcs[i / SrcNumElts] >= 0 && in matchCombineShuffleVector()
516 ConcatSrcs[i / SrcNumElts] != (int)(Idx / SrcNumElts))) in matchCombineShuffleVector()
519 ConcatSrcs[i / SrcNumElts] = Idx / SrcNumElts; in matchCombineShuffleVector()
H A DLegalizerHelper.cpp5699 unsigned SrcNumElts = SrcTy.getNumElements(); in equalizeVectorShuffleLengths() local
5702 if (MaskNumElts == SrcNumElts) in equalizeVectorShuffleLengths()
5705 if (MaskNumElts < SrcNumElts) { in equalizeVectorShuffleLengths()
5709 for (unsigned I = MaskNumElts; I < SrcNumElts; ++I) in equalizeVectorShuffleLengths()
5722 unsigned PaddedMaskNumElts = alignTo(MaskNumElts, SrcNumElts); in equalizeVectorShuffleLengths()
5723 unsigned NumConcat = PaddedMaskNumElts / SrcNumElts; in equalizeVectorShuffleLengths()
5741 if (Idx >= static_cast<int>(SrcNumElts)) in equalizeVectorShuffleLengths()
5742 Idx += PaddedMaskNumElts - SrcNumElts; in equalizeVectorShuffleLengths()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineVerifier.cpp1810 int SrcNumElts = Src0Ty.isVector() ? Src0Ty.getNumElements() : 1; in verifyPreISelGenericInstruction() local
1822 if (Idx >= 2 * SrcNumElts) in verifyPreISelGenericInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIISelLowering.cpp7392 int SrcNumElts = Op.getOperand(0).getValueType().getVectorNumElements(); in lowerVECTOR_SHUFFLE() local
7408 int VecIdx = Idx < SrcNumElts ? 0 : 1; in lowerVECTOR_SHUFFLE()
7409 int EltIdx = Idx < SrcNumElts ? Idx : Idx - SrcNumElts; in lowerVECTOR_SHUFFLE()
7417 int VecIdx0 = Idx0 < SrcNumElts ? 0 : 1; in lowerVECTOR_SHUFFLE()
7418 int VecIdx1 = Idx1 < SrcNumElts ? 0 : 1; in lowerVECTOR_SHUFFLE()
7419 int EltIdx0 = Idx0 < SrcNumElts ? Idx0 : Idx0 - SrcNumElts; in lowerVECTOR_SHUFFLE()
7420 int EltIdx1 = Idx1 < SrcNumElts ? Idx1 : Idx1 - SrcNumElts; in lowerVECTOR_SHUFFLE()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp15089 unsigned SrcNumElts = in EmitX86BuiltinExpr() local
15091 unsigned SubVectors = SrcNumElts / NumElts; in EmitX86BuiltinExpr()
15127 unsigned SrcNumElts = in EmitX86BuiltinExpr() local
15129 unsigned SubVectors = DstNumElts / SrcNumElts; in EmitX86BuiltinExpr()
15133 Index *= SrcNumElts; in EmitX86BuiltinExpr()
15137 Indices[i] = (i >= SrcNumElts) ? SrcNumElts + (i % SrcNumElts) : i; in EmitX86BuiltinExpr()
15143 if (i >= Index && i < (Index + SrcNumElts)) in EmitX86BuiltinExpr()