/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | CombinerHelper.cpp | 212 unsigned SrcNumElts = SrcType.isVector() ? SrcType.getNumElements() : 1; in matchCombineShuffleVector() local 229 if (DstNumElts < 2 * SrcNumElts && DstNumElts != 1) in matchCombineShuffleVector() 234 if (DstNumElts % SrcNumElts != 0) in matchCombineShuffleVector() 240 unsigned NumConcat = DstNumElts / SrcNumElts; in matchCombineShuffleVector() 250 if ((Idx % SrcNumElts != (i % SrcNumElts)) || in matchCombineShuffleVector() 251 (ConcatSrcs[i / SrcNumElts] >= 0 && in matchCombineShuffleVector() 252 ConcatSrcs[i / SrcNumElts] != (int)(Idx / SrcNumElts))) in matchCombineShuffleVector() 255 ConcatSrcs[i / SrcNumElts] = Idx / SrcNumElts; in matchCombineShuffleVector()
|
/external/llvm-project/llvm/lib/Transforms/Vectorize/ |
D | VectorCombine.cpp | 473 unsigned SrcNumElts = SrcTy->getNumElements(); in foldBitcastShuf() local 475 if (SrcNumElts <= DestNumElts) { in foldBitcastShuf() 478 assert(DestNumElts % SrcNumElts == 0 && "Unexpected shuffle mask"); in foldBitcastShuf() 479 unsigned ScaleFactor = DestNumElts / SrcNumElts; in foldBitcastShuf() 484 assert(SrcNumElts % DestNumElts == 0 && "Unexpected shuffle mask"); in foldBitcastShuf() 485 unsigned ScaleFactor = SrcNumElts / DestNumElts; in foldBitcastShuf()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 265 void DecodeSubVectorBroadcast(unsigned DstNumElts, unsigned SrcNumElts, in DecodeSubVectorBroadcast() argument 267 unsigned Scale = DstNumElts / SrcNumElts; in DecodeSubVectorBroadcast() 270 for (unsigned j = 0; j != SrcNumElts; ++j) in DecodeSubVectorBroadcast()
|
D | X86ShuffleDecode.h | 106 void DecodeSubVectorBroadcast(unsigned DstNumElts, unsigned SrcNumElts,
|
/external/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86ShuffleDecode.cpp | 253 void DecodeSubVectorBroadcast(unsigned DstNumElts, unsigned SrcNumElts, in DecodeSubVectorBroadcast() argument 255 unsigned Scale = DstNumElts / SrcNumElts; in DecodeSubVectorBroadcast() 258 for (unsigned j = 0; j != SrcNumElts; ++j) in DecodeSubVectorBroadcast()
|
D | X86ShuffleDecode.h | 95 void DecodeSubVectorBroadcast(unsigned DstNumElts, unsigned SrcNumElts,
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | CombinerHelper.cpp | 197 unsigned SrcNumElts = SrcType.isVector() ? SrcType.getNumElements() : 1; in matchCombineShuffleVector() local 214 if (DstNumElts < 2 * SrcNumElts && DstNumElts != 1) in matchCombineShuffleVector() 219 if (DstNumElts % SrcNumElts != 0) in matchCombineShuffleVector() 225 unsigned NumConcat = DstNumElts / SrcNumElts; in matchCombineShuffleVector() 235 if ((Idx % SrcNumElts != (i % SrcNumElts)) || in matchCombineShuffleVector() 236 (ConcatSrcs[i / SrcNumElts] >= 0 && in matchCombineShuffleVector() 237 ConcatSrcs[i / SrcNumElts] != (int)(Idx / SrcNumElts))) in matchCombineShuffleVector() 240 ConcatSrcs[i / SrcNumElts] = Idx / SrcNumElts; in matchCombineShuffleVector()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 3010 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-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 3585 unsigned SrcNumElts = SrcVT.getVectorNumElements(); in visitShuffleVector() local 3606 if (SrcNumElts == MaskNumElts) { in visitShuffleVector() 3612 if (SrcNumElts < MaskNumElts) { in visitShuffleVector() 3616 if (MaskNumElts % SrcNumElts == 0) { in visitShuffleVector() 3620 unsigned NumConcat = MaskNumElts / SrcNumElts; in visitShuffleVector() 3629 if ((Idx % SrcNumElts != (i % SrcNumElts)) || in visitShuffleVector() 3630 (ConcatSrcs[i / SrcNumElts] >= 0 && in visitShuffleVector() 3631 ConcatSrcs[i / SrcNumElts] != (int)(Idx / SrcNumElts))) { in visitShuffleVector() 3636 ConcatSrcs[i / SrcNumElts] = Idx / SrcNumElts; in visitShuffleVector() 3656 unsigned PaddedMaskNumElts = alignTo(MaskNumElts, SrcNumElts); in visitShuffleVector() [all …]
|
D | DAGCombiner.cpp | 18516 unsigned SrcNumElts = SrcVT.getVectorNumElements(); in visitEXTRACT_SUBVECTOR() local 18518 if ((SrcNumElts % DestNumElts) == 0) { in visitEXTRACT_SUBVECTOR() 18519 unsigned SrcDestRatio = SrcNumElts / DestNumElts; in visitEXTRACT_SUBVECTOR() 18532 if ((DestNumElts % SrcNumElts) == 0) { in visitEXTRACT_SUBVECTOR() 18533 unsigned DestSrcRatio = DestNumElts / SrcNumElts; in visitEXTRACT_SUBVECTOR()
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 3444 unsigned SrcNumElts = SrcVT.getVectorNumElements(); in visitShuffleVector() local 3447 if (SrcNumElts == MaskNumElts) { in visitShuffleVector() 3453 if (SrcNumElts < MaskNumElts) { in visitShuffleVector() 3457 if (MaskNumElts % SrcNumElts == 0) { in visitShuffleVector() 3461 unsigned NumConcat = MaskNumElts / SrcNumElts; in visitShuffleVector() 3470 if ((Idx % SrcNumElts != (i % SrcNumElts)) || in visitShuffleVector() 3471 (ConcatSrcs[i / SrcNumElts] >= 0 && in visitShuffleVector() 3472 ConcatSrcs[i / SrcNumElts] != (int)(Idx / SrcNumElts))) { in visitShuffleVector() 3477 ConcatSrcs[i / SrcNumElts] = Idx / SrcNumElts; in visitShuffleVector() 3497 unsigned PaddedMaskNumElts = alignTo(MaskNumElts, SrcNumElts); in visitShuffleVector() [all …]
|
D | DAGCombiner.cpp | 19886 unsigned SrcNumElts = SrcVT.getVectorMinNumElements(); in visitEXTRACT_SUBVECTOR() local 19888 if ((SrcNumElts % DestNumElts) == 0) { in visitEXTRACT_SUBVECTOR() 19889 unsigned SrcDestRatio = SrcNumElts / DestNumElts; in visitEXTRACT_SUBVECTOR() 19901 if ((DestNumElts % SrcNumElts) == 0) { in visitEXTRACT_SUBVECTOR() 19902 unsigned DestSrcRatio = DestNumElts / SrcNumElts; in visitEXTRACT_SUBVECTOR()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 2446 unsigned SrcNumElts = Op1->getType()->getVectorNumElements(); in UpgradeIntrinsicCall() local 2447 unsigned Scale = DstNumElts / SrcNumElts; in UpgradeIntrinsicCall() 2455 for (unsigned i = 0; i != SrcNumElts; ++i) in UpgradeIntrinsicCall() 2457 for (unsigned i = SrcNumElts; i != DstNumElts; ++i) in UpgradeIntrinsicCall() 2458 Idxs[i] = SrcNumElts; in UpgradeIntrinsicCall() 2476 for (unsigned i = 0; i != SrcNumElts; ++i) in UpgradeIntrinsicCall() 2477 Idxs[i + Imm * SrcNumElts] = i + DstNumElts; in UpgradeIntrinsicCall() 2490 unsigned SrcNumElts = Op0->getType()->getVectorNumElements(); in UpgradeIntrinsicCall() local 2491 unsigned Scale = SrcNumElts / DstNumElts; in UpgradeIntrinsicCall()
|
D | ConstantFold.cpp | 882 unsigned SrcNumElts = V1->getType()->getVectorNumElements(); in ConstantFoldShuffleVectorInstruction() local 893 if (unsigned(Elt) >= SrcNumElts*2) in ConstantFoldShuffleVectorInstruction() 895 else if (unsigned(Elt) >= SrcNumElts) { in ConstantFoldShuffleVectorInstruction() 899 ConstantInt::get(Ty, Elt - SrcNumElts)); in ConstantFoldShuffleVectorInstruction()
|
/external/llvm-project/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 2576 unsigned SrcNumElts = in UpgradeIntrinsicCall() local 2578 unsigned Scale = DstNumElts / SrcNumElts; in UpgradeIntrinsicCall() 2586 for (unsigned i = 0; i != SrcNumElts; ++i) in UpgradeIntrinsicCall() 2588 for (unsigned i = SrcNumElts; i != DstNumElts; ++i) in UpgradeIntrinsicCall() 2589 Idxs[i] = SrcNumElts; in UpgradeIntrinsicCall() 2607 for (unsigned i = 0; i != SrcNumElts; ++i) in UpgradeIntrinsicCall() 2608 Idxs[i + Imm * SrcNumElts] = i + DstNumElts; in UpgradeIntrinsicCall() 2622 unsigned SrcNumElts = in UpgradeIntrinsicCall() local 2624 unsigned Scale = SrcNumElts / DstNumElts; in UpgradeIntrinsicCall()
|
D | ConstantFold.cpp | 965 unsigned SrcNumElts = V1VTy->getElementCount().getKnownMinValue(); in ConstantFoldShuffleVectorInstruction() local 976 if (unsigned(Elt) >= SrcNumElts*2) in ConstantFoldShuffleVectorInstruction() 978 else if (unsigned(Elt) >= SrcNumElts) { in ConstantFoldShuffleVectorInstruction() 982 ConstantInt::get(Ty, Elt - SrcNumElts)); in ConstantFoldShuffleVectorInstruction()
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 842 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/llvm-project/llvm/lib/CodeGen/ |
D | MachineVerifier.cpp | 1398 int SrcNumElts = Src0Ty.isVector() ? Src0Ty.getNumElements() : 1; in verifyPreISelGenericInstruction() local 1410 if (Idx >= 2 * SrcNumElts) in verifyPreISelGenericInstruction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | MachineVerifier.cpp | 1422 int SrcNumElts = Src0Ty.isVector() ? Src0Ty.getNumElements() : 1; in verifyPreISelGenericInstruction() local 1434 if (Idx >= 2 * SrcNumElts) in verifyPreISelGenericInstruction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | SIISelLowering.cpp | 4934 int SrcNumElts = Op.getOperand(0).getValueType().getVectorNumElements(); in lowerVECTOR_SHUFFLE() local 4950 int VecIdx = Idx < SrcNumElts ? 0 : 1; in lowerVECTOR_SHUFFLE() 4951 int EltIdx = Idx < SrcNumElts ? Idx : Idx - SrcNumElts; in lowerVECTOR_SHUFFLE() 4959 int VecIdx0 = Idx0 < SrcNumElts ? 0 : 1; in lowerVECTOR_SHUFFLE() 4960 int VecIdx1 = Idx1 < SrcNumElts ? 0 : 1; in lowerVECTOR_SHUFFLE() 4961 int EltIdx0 = Idx0 < SrcNumElts ? Idx0 : Idx0 - SrcNumElts; in lowerVECTOR_SHUFFLE() 4962 int EltIdx1 = Idx1 < SrcNumElts ? Idx1 : Idx1 - SrcNumElts; in lowerVECTOR_SHUFFLE()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | SIISelLowering.cpp | 5521 int SrcNumElts = Op.getOperand(0).getValueType().getVectorNumElements(); in lowerVECTOR_SHUFFLE() local 5537 int VecIdx = Idx < SrcNumElts ? 0 : 1; in lowerVECTOR_SHUFFLE() 5538 int EltIdx = Idx < SrcNumElts ? Idx : Idx - SrcNumElts; in lowerVECTOR_SHUFFLE() 5546 int VecIdx0 = Idx0 < SrcNumElts ? 0 : 1; in lowerVECTOR_SHUFFLE() 5547 int VecIdx1 = Idx1 < SrcNumElts ? 0 : 1; in lowerVECTOR_SHUFFLE() 5548 int EltIdx0 = Idx0 < SrcNumElts ? Idx0 : Idx0 - SrcNumElts; in lowerVECTOR_SHUFFLE() 5549 int EltIdx1 = Idx1 < SrcNumElts ? Idx1 : Idx1 - SrcNumElts; in lowerVECTOR_SHUFFLE()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGBuiltin.cpp | 12637 unsigned SrcNumElts = in EmitX86BuiltinExpr() local 12639 unsigned SubVectors = SrcNumElts / NumElts; in EmitX86BuiltinExpr() 12677 unsigned SrcNumElts = in EmitX86BuiltinExpr() local 12679 unsigned SubVectors = DstNumElts / SrcNumElts; in EmitX86BuiltinExpr() 12683 Index *= SrcNumElts; in EmitX86BuiltinExpr() 12687 Indices[i] = (i >= SrcNumElts) ? SrcNumElts + (i % SrcNumElts) : i; in EmitX86BuiltinExpr() 12695 if (i >= Index && i < (Index + SrcNumElts)) in EmitX86BuiltinExpr()
|