/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | MVEGatherScatterLowering.cpp | 278 cast<FixedVectorType>(Offsets->getType())->getNumElements(); in decomposeGEP() 280 assert(Ty->getNumElements() == OffsetsElemCount); in decomposeGEP() 315 if (BCTy->getNumElements() == BCSrcTy->getNumElements()) { in lookThroughBitcast() 459 if (Ty->getNumElements() != 4 || Ty->getScalarSizeInBits() != 32) in tryCreateMaskedGatherBase() 690 128 / cast<FixedVectorType>(InputTy)->getNumElements()); in tryCreateMaskedScatterOffset() 789 Ty->getNumElements(), in tryCreateIncrementingGatScat() 1153 unsigned TargetElemSize = 128 / XElType->getNumElements(); in CheckAndCreateOffsetAdd() 1154 for (unsigned i = 0; i < XElType->getNumElements(); i++) { in CheckAndCreateOffsetAdd() 1168 XElType->getNumElements(), in CheckAndCreateOffsetAdd() 1171 YElType->getNumElements(), in CheckAndCreateOffsetAdd() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64PreLegalizerCombiner.cpp | 318 if (SrcTy.getNumElements() % 16 == 0) { in applyExtAddvToUdotAddv() 319 NumOfDotMI = SrcTy.getNumElements() / 16; in applyExtAddvToUdotAddv() 321 } else if (SrcTy.getNumElements() % 8 == 0) { in applyExtAddvToUdotAddv() 322 NumOfDotMI = SrcTy.getNumElements() / 8; in applyExtAddvToUdotAddv() 338 if (SrcTy.getNumElements() % 16 != 0) { in applyExtAddvToUdotAddv() 372 unsigned SrcNumElts = SrcTy.getNumElements(); in applyExtAddvToUdotAddv() 436 ExtSrcTy.getNumElements() % 8 == 0 && ExtSrcTy.getNumElements() < 256) || in matchExtUaddvToUaddlv() 438 ExtSrcTy.getNumElements() % 4 == 0) || in matchExtUaddvToUaddlv() 440 ExtSrcTy.getNumElements() % 4 == 0)) { in matchExtUaddvToUaddlv() 464 unsigned SrcNumElem = SrcTy.getNumElements(); in applyExtUaddvToUaddlv() [all …]
|
H A D | AArch64PostLegalizerLowering.cpp | 243 unsigned NumElts = Ty.getNumElements(); in matchREV() 265 unsigned NumElts = MRI.getType(Dst).getNumElements(); in matchTRN() 286 unsigned NumElts = MRI.getType(Dst).getNumElements(); in matchUZP() 302 unsigned NumElts = MRI.getType(Dst).getNumElements(); in matchZip() 389 unsigned NumElts = Ty.getNumElements(); in isSingletonExtMask() 424 auto ExtInfo = getExtMask(Mask, DstTy.getNumElements()); in matchEXT() 487 int NumElts = MRI.getType(Dst).getNumElements(); in matchINS() 706 if (*LaneIdx >= SrcTy.getNumElements()) in matchDupLane() 716 switch (SrcTy.getNumElements()) { in matchDupLane() 777 Unmerge.getNumOperands() == (unsigned)SrcTy.getNumElements() + 1; in matchScalarizeVectorUnmerge() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 546 ->getNumElements(); in visitExtractElementInst() 692 unsigned NumInsElts = InsVecType->getNumElements(); in replaceExtractElements() 693 unsigned NumExtElts = ExtVecType->getNumElements(); in replaceExtractElements() 834 ->getNumElements(); in collectShuffleElements() 1555 if (!VTy || (VTy->getNumElements() & 1) || in foldTruncInsEltPair() 1716 unsigned VWidth = VecTy->getNumElements(); in visitInsertElementInst() 2215 cast<FixedVectorType>(Shuf.getType())->getNumElements(); in canonicalizeInsertSplat() 2376 cast<FixedVectorType>(SrcType)->getNumElements() != in foldTruncShuffle() 2377 cast<FixedVectorType>(DestType)->getNumElements() || in foldTruncShuffle() 2819 unsigned XNumElts = XType->getNumElements(); in visitShuffleVectorInst() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ExpandReductions.cpp | 127 cast<FixedVectorType>(Vec->getType())->getNumElements())) in expandReductions() 147 unsigned NumElts = FTy->getNumElements(); in expandReductions() 175 cast<FixedVectorType>(Vec->getType())->getNumElements())) in expandReductions() 187 cast<FixedVectorType>(Vec->getType())->getNumElements()) || in expandReductions()
|
H A D | InterleavedLoadCombinePass.cpp | 679 EI = new ElementInfo[VTy->getNumElements()]; in VectorInfo() 686 unsigned getDimension() const { return VTy->getNumElements(); } in getDimension() 744 if (Result.VTy->getNumElements() % VTy->getNumElements()) in computeFromBCI() 747 unsigned Factor = Result.VTy->getNumElements() / VTy->getNumElements(); in computeFromBCI() 758 for (unsigned i = 0; i < Result.VTy->getNumElements(); i += Factor) { in computeFromBCI() 839 assert((i < 2 * (signed)ArgTy->getNumElements()) && in computeFromSVI() 844 else if (i < (signed)ArgTy->getNumElements()) { in computeFromSVI() 851 Result.EI[j] = RHS.EI[i - ArgTy->getNumElements()]; in computeFromSVI() 1210 ->getNumElements(); in combine()
|
H A D | Analysis.cpp | 55 unsigned NumElts = ATy->getNumElements(); in ComputeLinearIndex() 106 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in ComputeValueVTs() 188 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) { in computeValueLLTs() 199 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in computeValueLLTs() 460 return Idx < AT->getNumElements(); in indexReallyValid() 462 return Idx < cast<StructType>(T)->getNumElements(); in indexReallyValid()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | FunctionComparator.cpp | 366 uint64_t NumElementsL = cast<ArrayType>(TyL)->getNumElements(); in cmpConstants() 367 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements(); in cmpConstants() 380 unsigned NumElementsL = cast<StructType>(TyL)->getNumElements(); in cmpConstants() 381 unsigned NumElementsR = cast<StructType>(TyR)->getNumElements(); in cmpConstants() 394 unsigned NumElementsL = cast<FixedVectorType>(TyL)->getNumElements(); in cmpConstants() 395 unsigned NumElementsR = cast<FixedVectorType>(TyR)->getNumElements(); in cmpConstants() 544 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes() 545 return cmpNumbers(STyL->getNumElements(), STyR->getNumElements()); in cmpTypes() 550 for (unsigned i = 0, e = STyL->getNumElements(); i != e; ++i) { in cmpTypes() 579 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes() [all …]
|
H A D | SCCPSolver.cpp | 475 assert(i < cast<StructType>(V->getType())->getNumElements() && in getStructValueState() 523 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) in invalidate() 699 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in addTrackedFunction() 738 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in getStructLatticeValueFor() 785 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in markOverdefined() 890 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in isStructLatticeConstant() 924 for (unsigned I = 0, E = ST->getNumElements(); I != E; ++I) { in getConstantOrNull() 1213 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in visitReturnInst() 1344 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in visitInsertValueInst() 1827 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in handleCallResult() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86PartialReduction.cpp | 110 if (cast<FixedVectorType>(Op->getType())->getNumElements() < 8) in tryMAddReplacement() 186 unsigned NumElts = MulTy->getNumElements(); in tryMAddReplacement() 266 unsigned NumElts = OpTy->getNumElements(); in trySADReplacement() 319 cast<FixedVectorType>(Ops[0]->getType())->getNumElements() * 2; in trySADReplacement() 329 NumElts = cast<FixedVectorType>(OpTy)->getNumElements(); in trySADReplacement() 336 cast<FixedVectorType>(Ops[0]->getType())->getNumElements(); in trySADReplacement() 368 unsigned NumElems = cast<FixedVectorType>(BO->getType())->getNumElements(); in matchAddReduction()
|
H A D | X86InstCombineIntrinsic.cpp | 206 unsigned VWidth = VT->getNumElements(); in simplifyX86immShift() 353 int NumElts = VT->getNumElements(); in simplifyX86varShift() 450 unsigned NumSrcElts = ArgTy->getNumElements(); in simplifyX86pack() 523 unsigned NumElts = ArgTy->getNumElements(); in simplifyX86movmsk() 1878 unsigned NumElts = VecTy->getNumElements(); in simplifyX86pshufb() 1923 unsigned NumElts = VecTy->getNumElements(); in simplifyX86vpermilvar() 1970 unsigned Size = VecTy->getNumElements(); in simplifyX86vpermv() 2490 cast<FixedVectorType>(Arg0->getType())->getNumElements(); in instCombineIntrinsic() 2707 cast<FixedVectorType>(Mask->getType())->getNumElements(); in instCombineIntrinsic() 2709 cast<FixedVectorType>(II.getType())->getNumElements(); in instCombineIntrinsic() [all …]
|
H A D | X86InterleavedAccess.cpp | 189 createSequentialMask(Indices[i], SubVecTy->getNumElements(), in decompose() 724 unsigned NumSubVecElems = ShuffleEltTy->getNumElements() / Factor; in lowerIntoOptimizedSequence() 733 if (ShuffleTy->getNumElements() != NumSubVecElems) in lowerIntoOptimizedSequence() 760 unsigned NumSubVecElems = ShuffleTy->getNumElements() / Factor; in lowerIntoOptimizedSequence() 829 assert(cast<FixedVectorType>(SVI->getType())->getNumElements() % Factor == in lowerInterleavedStore()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 224 cast<FixedVectorType>(DestTy)->getNumElements() == in ConstantFoldCastInstruction() 225 cast<FixedVectorType>(V->getType())->getNumElements()) { in ConstantFoldCastInstruction() 346 for (unsigned i = 0, e = V1VTy->getNumElements(); i != e; ++i) { in ConstantFoldSelectInstruction() 367 if (Result.size() == V1VTy->getNumElements()) in ConstantFoldSelectInstruction() 432 if (CIdx->uge(ValFVTy->getNumElements())) in ConstantFoldExtractElementInstruction() 498 unsigned NumElts = ValTy->getNumElements(); in ConstantFoldInsertElementInstruction() 599 NumElts = ST->getNumElements(); in ConstantFoldInsertValueInstruction() 601 NumElts = cast<ArrayType>(Agg->getType())->getNumElements(); in ConstantFoldInsertValueInstruction() 660 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in ConstantFoldUnaryInstruction() 1615 if (isIndexInRangeOfArrayType(STy->getNumElements(), CI)) in ConstantFoldGetElementPtr() [all …]
|
H A D | Constants.cpp | 766 unsigned NumElts = VTy->getNumElements(); in replaceUndefsWith() 791 unsigned NumElts = VTy->getNumElements(); in mergeUndefsWith() 1081 return ElementCount::getFixed(AT->getNumElements()); in getElementCount() 1113 unsigned UndefValue::getNumElements() const { in getNumElements() function in UndefValue 1116 return AT->getNumElements(); in getNumElements() 1118 return cast<FixedVectorType>(VT)->getNumElements(); in getNumElements() 1231 assert(V.size() == T->getNumElements() && in ConstantArray() 2660 unsigned ConstantDataSequential::getNumElements() const { in getNumElements() function in ConstantDataSequential 2662 return AT->getNumElements(); in getNumElements() 2673 assert(Elt < getNumElements() && "Invalid Elt"); in getElementPointer() [all …]
|
H A D | AutoUpgrade.cpp | 1422 if (!STy || STy->getNumElements() != 2) in UpgradeGlobalVariable() 1449 unsigned NumElts = ResultTy->getNumElements() * 8; in upgradeX86PSLLDQIntrinsics() 2524 ->getNumElements(); in UpgradeIntrinsicCall() 2775 if (NumDstElts < SrcTy->getNumElements()) { in UpgradeIntrinsicCall() 2806 if (NumDstElts != SrcTy->getNumElements()) { in UpgradeIntrinsicCall() 2937 unsigned EltNum = VecTy->getNumElements(); in UpgradeIntrinsicCall() 3016 ->getNumElements(); in UpgradeIntrinsicCall() 3105 unsigned NumElts = VecTy->getNumElements(); in UpgradeIntrinsicCall() 3190 unsigned NumElts = VecTy->getNumElements(); in UpgradeIntrinsicCall() 3244 unsigned NumElts = VecTy->getNumElements(); in UpgradeIntrinsicCall() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DerivedTypes.h | 341 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function 350 bool indexValid(unsigned Idx) const { return Idx < getNumElements(); } in indexValid() 363 return cast<StructType>(this)->getNumElements(); in getStructNumElements() 383 uint64_t getNumElements() const { return NumElements; } in getNumElements() function 399 return cast<ArrayType>(this)->getNumElements(); in getArrayNumElements() 548 return get(ElementType, FVTy->getNumElements()); in get() 582 unsigned getNumElements() const { return ElementQuantity; } in getNumElements() function
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | PatternInit.cpp | 67 ArrTy->getNumElements(), in initializationPatternFor() 79 llvm::SmallVector<llvm::Constant *, 8> Struct(StructTy->getNumElements()); in initializationPatternFor()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-diff/lib/ |
H A D | DifferenceEngine.cpp | 585 if (CVL->getType()->getNumElements() != CVR->getType()->getNumElements()) in equivalentAsOperands() 587 for (unsigned i = 0; i < CVL->getType()->getNumElements(); i++) { in equivalentAsOperands() 600 if (CAL->getType()->getNumElements() != CAR->getType()->getNumElements()) in equivalentAsOperands() 603 for (unsigned I = 0; I < CAL->getType()->getNumElements(); ++I) { in equivalentAsOperands() 623 if (LTy->getNumElements() != RTy->getNumElements() || in equivalentAsOperands() 627 for (unsigned I = 0; I < LTy->getNumElements(); I++) { in equivalentAsOperands()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | BasicTTIImpl.h | 97 for (int i = 0, e = VTy->getNumElements(); i < e; ++i) { in getBroadcastShuffleOverhead() 116 for (int i = 0, e = VTy->getNumElements(); i < e; ++i) { in getPermuteShuffleOverhead() 133 int NumSubElts = SubVTy->getNumElements(); in getExtractSubvectorOverhead() 161 int NumSubElts = SubVTy->getNumElements(); in getInsertSubvectorOverhead() 226 VT->getNumElements()), in getCommonMaskedMemoryOpCost() 230 VT->getNumElements() * in getCommonMaskedMemoryOpCost() 248 VT->getNumElements() * in getCommonMaskedMemoryOpCost() 252 VT->getNumElements()), in getCommonMaskedMemoryOpCost() 955 VTy->getNumElements() * Cost; 1389 unsigned NumElts = VT->getNumElements(); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | MachineIRBuilder.cpp | 247 assert((ResTy.getNumElements() > Op0Ty.getNumElements()) && in buildPadVectorWithUndefElements() 260 unsigned NumberOfPadElts = ResTy.getNumElements() - Regs.size(); in buildPadVectorWithUndefElements() 275 assert((ResTy.getNumElements() < Op0Ty.getNumElements()) && in buildDeleteTrailingVectorElements() 280 for (unsigned i = 0; i < ResTy.getNumElements(); ++i) in buildDeleteTrailingVectorElements() 711 SmallVector<SrcOp, 8> TmpVec(Res.getLLTTy(*getMRI()).getNumElements(), Src); in buildSplatVector() 736 SmallVector<int, 16> ZeroMask(DstTy.getNumElements()); in buildShuffleSplat() 747 assert((size_t)(Src1Ty.getNumElements() + Src2Ty.getNumElements()) >= in buildShuffleVector() 1111 TstTy.getNumElements() == Op0Ty.getNumElements())) && in validateSelectOp() 1227 DstTy.getNumElements() == Op0Ty.getNumElements(); in buildInstr() 1285 assert(DstOps[0].getLLTTy(*getMRI()).getNumElements() == in buildInstr() [all …]
|
H A D | Utils.cpp | 515 unsigned RegNumElts = RegTy.getNumElements(); in extractParts() 516 unsigned MainNumElts = MainTy.getNumElements(); in extractParts() 557 extractVectorParts(Reg, MainTy.getNumElements(), RegPieces, MIRBuilder, in extractParts() 593 unsigned RegNumElts = RegTy.getNumElements(); in extractVectorParts() 1088 std::gcd(OrigTy.getNumElements(), TargetTy.getNumElements()); in getLCMType() 1090 ElementCount Mul = OrigTy.getElementCount() * TargetTy.getNumElements(); in getLCMType() 1124 unsigned OrigTyNumElts = OrigTy.getNumElements(); in getCoverTy() 1125 unsigned TargetTyNumElts = TargetTy.getNumElements(); in getCoverTy() 1146 int GCD = std::gcd(OrigTy.getNumElements(), TargetTy.getNumElements()); in getGCDType()
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | NeonEmitter.cpp | 363 if (T.isVector() && T.getNumElements() > 1) in isBigEndianSafe() 630 S += "x" + utostr(getNumElements()); in str() 693 Ret += "V" + utostr(getNumElements()) + S; in builtin_str() 1257 getReturnType().getNumElements() == 1) in emitReturnReversal() 1670 if (Elts.size() > T.getNumElements()) { in emitDagShuffle() 1672 Elts.size() == T.getNumElements() * 2, in emitDagShuffle() 1675 } else if (Elts.size() < T.getNumElements()) { in emitDagShuffle() 1677 Elts.size() == T.getNumElements() / 2, in emitDagShuffle() 1694 for (unsigned I = 0; I < T.getNumElements(); ++I) { in emitDagDup() 2214 UpperBound = utostr(T.getNumElements() - 1); in genIntrinsicRangeCheckCode() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 416 unsigned WideBits = getScalarSizeInBits(Ty) * VTy->getNumElements(); in getNumVectorRegs() 528 unsigned VF = VTy->getNumElements(); in getArithmeticInstrCost() 662 assert(cast<FixedVectorType>(SrcTy)->getNumElements() == in getVectorTruncCost() 663 cast<FixedVectorType>(DstTy)->getNumElements() && in getVectorTruncCost() 679 unsigned VF = cast<FixedVectorType>(SrcTy)->getNumElements(); in getVectorTruncCost() 753 unsigned VF = DstVTy->getNumElements(); in getBoolVecToIntConversionCost() 851 unsigned VF = SrcVecTy->getNumElements(); in getCastInstrCost() 993 unsigned VF = cast<FixedVectorType>(ValTy)->getNumElements(); in getCmpSelInstrCost() 1244 unsigned NumElts = cast<FixedVectorType>(VecTy)->getNumElements(); in getInterleavedMemoryOpCost()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ScalarizeMaskedMemIntrin.cpp | 96 unsigned NumElts = cast<FixedVectorType>(Mask->getType())->getNumElements(); in isConstantIntVector() 173 unsigned VectorWidth = cast<FixedVectorType>(VecType)->getNumElements(); in scalarizeMaskedLoad() 308 unsigned VectorWidth = cast<FixedVectorType>(VecType)->getNumElements(); in scalarizeMaskedStore() 425 unsigned VectorWidth = VecType->getNumElements(); in scalarizeMaskedGather() 555 unsigned VectorWidth = SrcFVTy->getNumElements(); in scalarizeMaskedScatter() 642 unsigned VectorWidth = VecType->getNumElements(); in scalarizeMaskedExpandLoad() 770 unsigned VectorWidth = VecType->getNumElements(); in scalarizeMaskedCompressStore()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCMergeStringPool.cpp | 72 ConstDataLHS->getNumElements() * ConstDataLHS->getElementByteSize(); in operator ()() 77 ConstDataRHS->getNumElements() * ConstDataRHS->getElementByteSize(); in operator ()()
|