/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 678 unsigned NumSrcElts = SrcVT.getVectorNumElements(); in SimplifyMultipleUseDemandedBits() local 680 APInt DemandedSrcElts = APInt::getNullValue(NumSrcElts); in SimplifyMultipleUseDemandedBits() 701 unsigned NumSrcElts = SrcVT.isVector() ? SrcVT.getVectorNumElements() : 1; in SimplifyMultipleUseDemandedBits() local 703 APInt DemandedSrcElts = APInt::getNullValue(NumSrcElts); in SimplifyMultipleUseDemandedBits() 1090 unsigned NumSrcElts = Src.getValueType().getVectorNumElements(); in SimplifyDemandedBits() local 1091 APInt DemandedSrcElts = DemandedElts.zextOrSelf(NumSrcElts).shl(Idx); in SimplifyDemandedBits() 2082 unsigned NumSrcElts = SrcEltCnt.getFixedValue(); in SimplifyDemandedBits() local 2083 APInt DemandedSrcElts = APInt::getAllOnesValue(NumSrcElts); in SimplifyDemandedBits() 2085 if (CIdx->getAPIntValue().ult(NumSrcElts)) in SimplifyDemandedBits() 2086 DemandedSrcElts = APInt::getOneBitSet(NumSrcElts, CIdx->getZExtValue()); in SimplifyDemandedBits() [all …]
|
H A D | SelectionDAG.cpp | 2557 unsigned NumSrcElts = Src.getValueType().getVectorNumElements(); in isSplatValue() local 2559 APInt DemandedSrcElts = DemandedElts.zextOrSelf(NumSrcElts).shl(Idx); in isSplatValue() 2905 unsigned NumSrcElts = Src.getValueType().getVectorNumElements(); in computeKnownBits() local 2906 APInt DemandedSrcElts = DemandedElts.zextOrSelf(NumSrcElts).shl(Idx); in computeKnownBits() 3412 const unsigned NumSrcElts = VecVT.getVectorNumElements(); in computeKnownBits() local 3421 APInt DemandedSrcElts = APInt::getAllOnesValue(NumSrcElts); in computeKnownBits() 3423 if (ConstEltNo && ConstEltNo->getAPIntValue().ult(NumSrcElts)) in computeKnownBits() 3425 APInt::getOneBitSet(NumSrcElts, ConstEltNo->getZExtValue()); in computeKnownBits() 4076 const unsigned NumSrcElts = VecVT.getVectorNumElements(); in ComputeNumSignBits() local 4086 APInt DemandedSrcElts = APInt::getAllOnesValue(NumSrcElts); in ComputeNumSignBits() [all …]
|
H A D | DAGCombiner.cpp | 18240 unsigned NumSrcElts = SubVecVT.getVectorNumElements(); in combineInsertEltToShuffle() local 18243 if (NumSrcElts == 1) in combineInsertEltToShuffle() 18246 unsigned NumMaskVals = ExtendRatio * NumSrcElts; in combineInsertEltToShuffle() 18255 if (i / NumSrcElts == InsIndex) in combineInsertEltToShuffle() 18256 Mask[i] = (i % NumSrcElts) + NumMaskVals; in combineInsertEltToShuffle()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 188 ElementCount NumSrcElts = SrcTy->getElementCount(); in foldBitcastExtElt() local 191 if (NumSrcElts == NumElts) in foldBitcastExtElt() 195 assert(NumSrcElts.isScalable() == NumElts.isScalable() && in foldBitcastExtElt() 200 if (NumSrcElts.getKnownMinValue() < NumElts.getKnownMinValue()) { in foldBitcastExtElt() 212 NumElts.getKnownMinValue() / NumSrcElts.getKnownMinValue(); in foldBitcastExtElt()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 73 unsigned NumSrcElts, in foldConstVectorToAPInt() argument 78 for (unsigned i = 0; i != NumSrcElts; ++i) { in foldConstVectorToAPInt() 81 Element = C->getAggregateElement(NumSrcElts - i - 1); in foldConstVectorToAPInt() 118 unsigned NumSrcElts = cast<FixedVectorType>(VTy)->getNumElements(); in FoldBitCast() local 126 IntegerType::get(C->getContext(), FPWidth), NumSrcElts); in FoldBitCast() 133 SrcEltTy, NumSrcElts, DL)) in FoldBitCast()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
H A D | X86InstCombineIntrinsic.cpp | 450 unsigned NumSrcElts = ArgTy->getNumElements(); in simplifyX86pack() local 451 assert(cast<FixedVectorType>(ResTy)->getNumElements() == (2 * NumSrcElts) && in simplifyX86pack() 454 unsigned NumSrcEltsPerLane = NumSrcElts / NumLanes; in simplifyX86pack() 496 PackMask.push_back(Elt + (Lane * NumSrcEltsPerLane) + NumSrcElts); in simplifyX86pack()
|
H A D | X86ISelLowering.cpp | 5754 unsigned NumSrcElts = Mask.size(); in scaleShuffleElements() local 5755 assert(((NumSrcElts % NumDstElts) == 0 || (NumDstElts % NumSrcElts) == 0) && in scaleShuffleElements() 5759 if (NumDstElts >= NumSrcElts) { in scaleShuffleElements() 5760 int Scale = NumDstElts / NumSrcElts; in scaleShuffleElements() 6532 unsigned NumSrcElts = UndefSrcElts.getBitWidth(); in getTargetConstantBitsFromNode() local 6534 assert((NumSrcElts * SrcEltSizeInBits) == SizeInBits && in getTargetConstantBitsFromNode() 6543 if (NumSrcElts == NumElts) { in getTargetConstantBitsFromNode() 6553 for (unsigned i = 0; i != NumSrcElts; ++i) { in getTargetConstantBitsFromNode() 6629 unsigned NumSrcElts = SizeInBits / SrcEltSizeInBits; in getTargetConstantBitsFromNode() local 6631 APInt UndefSrcElts(NumSrcElts, 0); in getTargetConstantBitsFromNode() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
H A D | CGExpr.cpp | 2256 unsigned NumSrcElts = VTy->getNumElements(); in EmitStoreThroughExtVectorComponentLValue() local 2259 if (NumDstElts == NumSrcElts) { in EmitStoreThroughExtVectorComponentLValue() 2264 for (unsigned i = 0; i != NumSrcElts; ++i) in EmitStoreThroughExtVectorComponentLValue() 2268 } else if (NumDstElts > NumSrcElts) { in EmitStoreThroughExtVectorComponentLValue() 2274 for (unsigned i = 0; i != NumSrcElts; ++i) in EmitStoreThroughExtVectorComponentLValue() 2286 if (getAccessedFieldNo(NumSrcElts - 1, Elts) == Mask.size()) in EmitStoreThroughExtVectorComponentLValue() 2287 NumSrcElts--; in EmitStoreThroughExtVectorComponentLValue() 2290 for (unsigned i = 0; i != NumSrcElts; ++i) in EmitStoreThroughExtVectorComponentLValue()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
H A D | Instructions.h | 2271 static bool isExtractSubvectorMask(ArrayRef<int> Mask, int NumSrcElts, 2273 static bool isExtractSubvectorMask(const Constant *Mask, int NumSrcElts, 2282 return isExtractSubvectorMask(MaskAsInts, NumSrcElts, Index); 2292 int NumSrcElts = 2294 return isExtractSubvectorMask(ShuffleMask, NumSrcElts, Index);
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
H A D | Instructions.cpp | 2220 int NumSrcElts, int &Index) { in isExtractSubvectorMask() argument 2222 if (!isSingleSourceMaskImpl(Mask, NumSrcElts)) in isExtractSubvectorMask() 2226 if (NumSrcElts <= (int)Mask.size()) in isExtractSubvectorMask() 2235 int Offset = (M % NumSrcElts) - i; in isExtractSubvectorMask() 2241 if (0 <= SubIndex && SubIndex + (int)Mask.size() <= NumSrcElts) { in isExtractSubvectorMask()
|
H A D | AutoUpgrade.cpp | 2455 unsigned NumSrcElts = 128 / EltTy->getPrimitiveSizeInBits(); in UpgradeIntrinsicCall() local 2456 auto *VT = FixedVectorType::get(EltTy, NumSrcElts); in UpgradeIntrinsicCall() 2460 if (NumSrcElts == 2) in UpgradeIntrinsicCall() 2489 unsigned NumSrcElts = in UpgradeIntrinsicCall() local 2497 ShuffleMask[i] = i % NumSrcElts; in UpgradeIntrinsicCall()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.cpp | 7809 unsigned NumSrcElts = VTSize / EltVT.getFixedSizeInBits(); in ReconstructShuffle() local 7810 EVT DestVT = EVT::getVectorVT(*DAG.getContext(), EltVT, NumSrcElts); in ReconstructShuffle() 7826 if (Src.MaxElt - Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 7831 if (Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 7835 DAG.getConstant(NumSrcElts, dl, MVT::i32)); in ReconstructShuffle() 7836 Src.WindowBase = -NumSrcElts; in ReconstructShuffle() 7837 } else if (Src.MaxElt < NumSrcElts) { in ReconstructShuffle() 7849 DAG.getConstant(NumSrcElts, dl, MVT::i32)); in ReconstructShuffle() 18148 const unsigned NumSrcElts = VecVT.getVectorNumElements(); in computeKnownBitsForTargetNode() local 18150 assert(Pos->getAPIntValue().ult(NumSrcElts) && in computeKnownBitsForTargetNode() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.cpp | 8281 unsigned NumSrcElts = VTSize / EltVT.getFixedSizeInBits(); in ReconstructShuffle() local 8282 EVT DestVT = EVT::getVectorVT(*DAG.getContext(), EltVT, NumSrcElts); in ReconstructShuffle() 8300 if (Src.MaxElt - Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 8306 if (Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 8310 DAG.getConstant(NumSrcElts, dl, MVT::i64)); in ReconstructShuffle() 8311 Src.WindowBase = -NumSrcElts; in ReconstructShuffle() 8312 } else if (Src.MaxElt < NumSrcElts) { in ReconstructShuffle() 8324 DAG.getConstant(NumSrcElts, dl, MVT::i64)); in ReconstructShuffle()
|