Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp266 void DecodeSubVectorBroadcast(unsigned DstNumElts, unsigned SrcNumElts, in DecodeSubVectorBroadcast() argument
268 unsigned Scale = DstNumElts / SrcNumElts; in DecodeSubVectorBroadcast()
271 for (unsigned j = 0; j != SrcNumElts; ++j) in DecodeSubVectorBroadcast()
DX86ShuffleDecode.h106 void DecodeSubVectorBroadcast(unsigned DstNumElts, unsigned SrcNumElts,
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp3010 unsigned SrcNumElts = SrcVT.getVectorNumElements(); in visitShuffleVector() local
3012 if (SrcNumElts == MaskNumElts) { in visitShuffleVector()
3018 if (SrcNumElts < MaskNumElts && MaskNumElts % SrcNumElts == 0) { in visitShuffleVector()
3023 unsigned NumConcat = MaskNumElts / SrcNumElts; in visitShuffleVector()
3034 if ((Idx % SrcNumElts != (i % SrcNumElts)) || in visitShuffleVector()
3035 (ConcatSrcs[i / SrcNumElts] >= 0 && in visitShuffleVector()
3036 ConcatSrcs[i / SrcNumElts] != (int)(Idx / SrcNumElts))) { in visitShuffleVector()
3041 ConcatSrcs[i / SrcNumElts] = Idx / SrcNumElts; in visitShuffleVector()
3080 if (Idx >= (int)SrcNumElts) in visitShuffleVector()
3081 Idx -= SrcNumElts - MaskNumElts; in visitShuffleVector()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2804 unsigned SrcNumElts = SrcVT.getVectorNumElements(); in visitShuffleVector() local
2806 if (SrcNumElts == MaskNumElts) { in visitShuffleVector()
2813 if (SrcNumElts < MaskNumElts && MaskNumElts % SrcNumElts == 0) { in visitShuffleVector()
2817 if (SrcNumElts*2 == MaskNumElts && SequentialMask(Mask, 0)) { in visitShuffleVector()
2825 unsigned NumConcat = MaskNumElts / SrcNumElts; in visitShuffleVector()
2846 if (Idx < (int)SrcNumElts) in visitShuffleVector()
2849 MappedOps.push_back(Idx + MaskNumElts - SrcNumElts); in visitShuffleVector()
2857 if (SrcNumElts > MaskNumElts) { in visitShuffleVector()
2861 int MinRange[2] = { static_cast<int>(SrcNumElts+1), in visitShuffleVector()
2862 static_cast<int>(SrcNumElts+1)}; in visitShuffleVector()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp3190 unsigned SrcNumElts = SrcVT.getVectorNumElements(); in visitShuffleVector() local
3192 if (SrcNumElts == MaskNumElts) { in visitShuffleVector()
3198 if (SrcNumElts < MaskNumElts) { in visitShuffleVector()
3202 if (MaskNumElts % SrcNumElts == 0) { in visitShuffleVector()
3206 unsigned NumConcat = MaskNumElts / SrcNumElts; in visitShuffleVector()
3215 if ((Idx % SrcNumElts != (i % SrcNumElts)) || in visitShuffleVector()
3216 (ConcatSrcs[i / SrcNumElts] >= 0 && in visitShuffleVector()
3217 ConcatSrcs[i / SrcNumElts] != (int)(Idx / SrcNumElts))) { in visitShuffleVector()
3222 ConcatSrcs[i / SrcNumElts] = Idx / SrcNumElts; in visitShuffleVector()
3242 unsigned PaddedMaskNumElts = alignTo(MaskNumElts, SrcNumElts); in visitShuffleVector()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DAutoUpgrade.cpp2123 unsigned SrcNumElts = Op1->getType()->getVectorNumElements(); in UpgradeIntrinsicCall() local
2124 unsigned Scale = DstNumElts / SrcNumElts; in UpgradeIntrinsicCall()
2132 for (unsigned i = 0; i != SrcNumElts; ++i) in UpgradeIntrinsicCall()
2134 for (unsigned i = SrcNumElts; i != DstNumElts; ++i) in UpgradeIntrinsicCall()
2135 Idxs[i] = SrcNumElts; in UpgradeIntrinsicCall()
2153 for (unsigned i = 0; i != SrcNumElts; ++i) in UpgradeIntrinsicCall()
2154 Idxs[i + Imm * SrcNumElts] = i + DstNumElts; in UpgradeIntrinsicCall()
2167 unsigned SrcNumElts = Op0->getType()->getVectorNumElements(); in UpgradeIntrinsicCall() local
2168 unsigned Scale = SrcNumElts / DstNumElts; in UpgradeIntrinsicCall()
DConstantFold.cpp848 unsigned SrcNumElts = V1->getType()->getVectorNumElements(); in ConstantFoldShuffleVectorInstruction() local
859 if (unsigned(Elt) >= SrcNumElts*2) in ConstantFoldShuffleVectorInstruction()
861 else if (unsigned(Elt) >= SrcNumElts) { in ConstantFoldShuffleVectorInstruction()
865 ConstantInt::get(Ty, Elt - SrcNumElts)); in ConstantFoldShuffleVectorInstruction()
/external/llvm/lib/IR/
DConstantFold.cpp842 unsigned SrcNumElts = V1->getType()->getVectorNumElements(); in ConstantFoldShuffleVectorInstruction() local
853 if (unsigned(Elt) >= SrcNumElts*2) in ConstantFoldShuffleVectorInstruction()
855 else if (unsigned(Elt) >= SrcNumElts) { in ConstantFoldShuffleVectorInstruction()
859 ConstantInt::get(Ty, Elt - SrcNumElts)); in ConstantFoldShuffleVectorInstruction()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp855 unsigned SrcNumElts = cast<VectorType>(V1->getType())->getNumElements(); in ConstantFoldShuffleVectorInstruction() local
868 if (Elt >= SrcNumElts*2) in ConstantFoldShuffleVectorInstruction()
870 else if (Elt >= SrcNumElts) in ConstantFoldShuffleVectorInstruction()
871 InElt = GetVectorElement(V2, Elt - SrcNumElts); in ConstantFoldShuffleVectorInstruction()