/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 644 unsigned NumSrcElts = SrcVT.getVectorNumElements(); in SimplifyMultipleUseDemandedBits() local 646 APInt DemandedSrcElts = APInt::getNullValue(NumSrcElts); in SimplifyMultipleUseDemandedBits() 667 unsigned NumSrcElts = SrcVT.isVector() ? SrcVT.getVectorNumElements() : 1; in SimplifyMultipleUseDemandedBits() local 669 APInt DemandedSrcElts = APInt::getNullValue(NumSrcElts); in SimplifyMultipleUseDemandedBits() 964 unsigned NumSrcElts = Src.getValueType().getVectorNumElements(); in SimplifyDemandedBits() local 965 APInt SrcElts = APInt::getAllOnesValue(NumSrcElts); in SimplifyDemandedBits() 966 if (SubIdx && SubIdx->getAPIntValue().ule(NumSrcElts - NumElts)) { in SimplifyDemandedBits() 969 SrcElts = DemandedElts.zextOrSelf(NumSrcElts).shl(Idx); in SimplifyDemandedBits() 1857 unsigned NumSrcElts = Src.getValueType().getVectorNumElements(); in SimplifyDemandedBits() local 1861 APInt DemandedSrcElts = APInt::getAllOnesValue(NumSrcElts); in SimplifyDemandedBits() [all …]
|
D | SelectionDAG.cpp | 2334 unsigned NumSrcElts = Src.getValueType().getVectorNumElements(); in isSplatValue() local 2335 if (SubIdx && SubIdx->getAPIntValue().ule(NumSrcElts - NumElts)) { in isSplatValue() 2339 APInt DemandedSrc = DemandedElts.zextOrSelf(NumSrcElts).shl(Idx); in isSplatValue() 2666 unsigned NumSrcElts = Src.getValueType().getVectorNumElements(); in computeKnownBits() local 2667 APInt DemandedSrc = APInt::getAllOnesValue(NumSrcElts); in computeKnownBits() 2668 if (SubIdx && SubIdx->getAPIntValue().ule(NumSrcElts - NumElts)) { in computeKnownBits() 2671 DemandedSrc = DemandedElts.zextOrSelf(NumSrcElts).shl(Idx); in computeKnownBits() 3250 const unsigned NumSrcElts = VecVT.getVectorNumElements(); in computeKnownBits() local 3256 if (ConstEltNo && ConstEltNo->getAPIntValue().ult(NumSrcElts)) { in computeKnownBits() 3259 APInt DemandedElt = APInt::getOneBitSet(NumSrcElts, Idx); in computeKnownBits() [all …]
|
D | DAGCombiner.cpp | 16810 unsigned NumSrcElts = SubVecVT.getVectorNumElements(); in combineInsertEltToShuffle() local 16812 unsigned NumMaskVals = ExtendRatio * NumSrcElts; in combineInsertEltToShuffle() 16821 if (i / NumSrcElts == InsIndex) in combineInsertEltToShuffle() 16822 Mask[i] = (i % NumSrcElts) + NumMaskVals; in combineInsertEltToShuffle()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 66 unsigned NumSrcElts, in foldConstVectorToAPInt() argument 71 for (unsigned i = 0; i != NumSrcElts; ++i) { in foldConstVectorToAPInt() 74 Element = C->getAggregateElement(NumSrcElts - i - 1); in foldConstVectorToAPInt() 111 unsigned NumSrcElts = VTy->getNumElements(); in FoldBitCast() local 119 VectorType::get(IntegerType::get(C->getContext(), FPWidth), NumSrcElts); in FoldBitCast() 126 SrcEltTy, NumSrcElts, DL)) in FoldBitCast()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 177 unsigned NumSrcElts = SrcTy->getVectorNumElements(); in foldBitcastExtElt() local 179 if (NumSrcElts == NumElts) in foldBitcastExtElt() 185 if (NumSrcElts < NumElts) { in foldBitcastExtElt() 196 unsigned NarrowingRatio = NumElts / NumSrcElts; in foldBitcastExtElt()
|
D | InstCombineCalls.cpp | 562 unsigned NumSrcElts = ArgTy->getVectorNumElements(); in simplifyX86pack() local 563 assert(ResTy->getVectorNumElements() == (2 * NumSrcElts) && in simplifyX86pack() 566 unsigned NumSrcEltsPerLane = NumSrcElts / NumLanes; in simplifyX86pack() 608 PackMask.push_back(Elt + (Lane * NumSrcEltsPerLane) + NumSrcElts); in simplifyX86pack()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Instructions.cpp | 2022 int NumSrcElts, int &Index) { in isExtractSubvectorMask() argument 2024 if (!isSingleSourceMaskImpl(Mask, NumSrcElts)) in isExtractSubvectorMask() 2028 if (NumSrcElts <= (int)Mask.size()) in isExtractSubvectorMask() 2037 int Offset = (M % NumSrcElts) - i; in isExtractSubvectorMask() 2043 if (0 <= SubIndex && SubIndex + (int)Mask.size() <= NumSrcElts) { in isExtractSubvectorMask()
|
D | AutoUpgrade.cpp | 2305 unsigned NumSrcElts = 128 / EltTy->getPrimitiveSizeInBits(); in UpgradeIntrinsicCall() local 2306 Type *VT = VectorType::get(EltTy, NumSrcElts); in UpgradeIntrinsicCall() 2310 if (NumSrcElts == 2) in UpgradeIntrinsicCall() 2340 unsigned NumSrcElts = in UpgradeIntrinsicCall() local 2346 ShuffleMask[i] = i % NumSrcElts; in UpgradeIntrinsicCall()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Instructions.h | 2246 static bool isExtractSubvectorMask(ArrayRef<int> Mask, int NumSrcElts, 2248 static bool isExtractSubvectorMask(const Constant *Mask, int NumSrcElts, 2253 return isExtractSubvectorMask(MaskAsInts, NumSrcElts, Index); 2258 int NumSrcElts = Op<0>()->getType()->getVectorNumElements(); 2259 return isExtractSubvectorMask(getMask(), NumSrcElts, Index);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 6149 unsigned NumSrcElts = UndefSrcElts.getBitWidth(); in getTargetConstantBitsFromNode() local 6151 assert((NumSrcElts * SrcEltSizeInBits) == SizeInBits && in getTargetConstantBitsFromNode() 6160 if (NumSrcElts == NumElts) { in getTargetConstantBitsFromNode() 6170 for (unsigned i = 0; i != NumSrcElts; ++i) { in getTargetConstantBitsFromNode() 6246 unsigned NumSrcElts = SizeInBits / SrcEltSizeInBits; in getTargetConstantBitsFromNode() local 6248 APInt UndefSrcElts(NumSrcElts, 0); in getTargetConstantBitsFromNode() 6249 SmallVector<APInt, 64> SrcEltBits(NumSrcElts, APInt(SrcEltSizeInBits, 0)); in getTargetConstantBitsFromNode() 6263 unsigned NumSrcElts = SizeInBits / SrcEltSizeInBits; in getTargetConstantBitsFromNode() local 6265 APInt UndefSrcElts(NumSrcElts, 0); in getTargetConstantBitsFromNode() 6266 SmallVector<APInt, 64> SrcEltBits(NumSrcElts, APInt(SrcEltSizeInBits, 0)); in getTargetConstantBitsFromNode() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 7471 unsigned NumSrcElts = VT.getSizeInBits() / EltVT.getSizeInBits(); in ReconstructShuffle() local 7472 EVT DestVT = EVT::getVectorVT(*DAG.getContext(), EltVT, NumSrcElts); in ReconstructShuffle() 7488 if (Src.MaxElt - Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 7493 if (Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 7497 DAG.getConstant(NumSrcElts, dl, MVT::i32)); in ReconstructShuffle() 7498 Src.WindowBase = -NumSrcElts; in ReconstructShuffle() 7499 } else if (Src.MaxElt < NumSrcElts) { in ReconstructShuffle() 7511 DAG.getConstant(NumSrcElts, dl, MVT::i32)); in ReconstructShuffle() 15718 const unsigned NumSrcElts = VecVT.getVectorNumElements(); in computeKnownBitsForTargetNode() local 15720 assert(Pos->getAPIntValue().ult(NumSrcElts) && in computeKnownBitsForTargetNode() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 6630 unsigned NumSrcElts = VT.getSizeInBits() / EltVT.getSizeInBits(); in ReconstructShuffle() local 6631 EVT DestVT = EVT::getVectorVT(*DAG.getContext(), EltVT, NumSrcElts); in ReconstructShuffle() 6645 if (Src.MaxElt - Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 6651 if (Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 6655 DAG.getConstant(NumSrcElts, dl, MVT::i64)); in ReconstructShuffle() 6656 Src.WindowBase = -NumSrcElts; in ReconstructShuffle() 6657 } else if (Src.MaxElt < NumSrcElts) { in ReconstructShuffle() 6669 DAG.getConstant(NumSrcElts, dl, MVT::i64)); in ReconstructShuffle()
|