| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 276 cast<FixedVectorType>(Offsets->getType())->getNumElements(); in decomposeGEP() 278 assert(Ty->getNumElements() == OffsetsElemCount); in decomposeGEP() 313 if (BCTy->getNumElements() == BCSrcTy->getNumElements()) { in lookThroughBitcast() 444 if (Ty->getNumElements() != 4 || Ty->getScalarSizeInBits() != 32) in tryCreateMaskedGatherBase() 465 if (Ty->getNumElements() != 4 || Ty->getScalarSizeInBits() != 32) in tryCreateMaskedGatherBaseWB() 519 128 / cast<FixedVectorType>(ResultTy)->getNumElements()); in tryCreateMaskedGatherOffset() 675 128 / cast<FixedVectorType>(InputTy)->getNumElements()); in tryCreateMaskedScatterOffset() 775 Ty->getNumElements(), in tryCreateIncrementingGatScat() 1133 unsigned TargetElemSize = 128 / XElType->getNumElements(); in CheckAndCreateOffsetAdd() 1134 for (unsigned i = 0; i < XElType->getNumElements(); i++) { in CheckAndCreateOffsetAdd() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 503 ->getNumElements(); in visitExtractElementInst() 610 unsigned NumInsElts = InsVecType->getNumElements(); in replaceExtractElements() 611 unsigned NumExtElts = ExtVecType->getNumElements(); in replaceExtractElements() 747 ->getNumElements(); in collectShuffleElements() 1496 unsigned VWidth = VecTy->getNumElements(); in visitInsertElementInst() 1930 cast<FixedVectorType>(Shuf.getType())->getNumElements(); in canonicalizeInsertSplat() 2083 cast<FixedVectorType>(SrcType)->getNumElements() != in foldTruncShuffle() 2084 cast<FixedVectorType>(DestType)->getNumElements() || in foldTruncShuffle() 2128 cast<FixedVectorType>(Shuf.getType())->getNumElements(); in narrowVectorSelect() 2393 unsigned XNumElts = XType->getNumElements(); in visitShuffleVectorInst() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | Scalarizer.cpp | 265 Size = cast<FixedVectorType>(Ty)->getNumElements(); in INITIALIZE_PASS_DEPENDENCY() 469 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in splitUnary() 489 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in splitBinary() 532 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in splitCall() 587 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitSelectInst() 641 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitGetElementPtrInst() 686 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitCastInst() 759 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitInsertElementInst() 794 unsigned NumSrcElems = cast<FixedVectorType>(VT)->getNumElements(); in visitExtractElementInst() 826 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitShuffleVectorInst() [all …]
|
| H A D | ScalarizeMaskedMemIntrin.cpp | 98 unsigned NumElts = cast<FixedVectorType>(Mask->getType())->getNumElements(); in isConstantIntVector() 179 unsigned VectorWidth = cast<FixedVectorType>(VecType)->getNumElements(); in scalarizeMaskedLoad() 318 unsigned VectorWidth = cast<FixedVectorType>(VecType)->getNumElements(); in scalarizeMaskedStore() 435 unsigned VectorWidth = VecType->getNumElements(); in scalarizeMaskedGather() 565 unsigned VectorWidth = SrcFVTy->getNumElements(); in scalarizeMaskedScatter() 652 unsigned VectorWidth = VecType->getNumElements(); in scalarizeMaskedExpandLoad() 780 unsigned VectorWidth = VecType->getNumElements(); in scalarizeMaskedCompressStore()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | FunctionComparator.cpp | 310 uint64_t NumElementsL = cast<ArrayType>(TyL)->getNumElements(); in cmpConstants() 311 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements(); in cmpConstants() 324 unsigned NumElementsL = cast<StructType>(TyL)->getNumElements(); in cmpConstants() 325 unsigned NumElementsR = cast<StructType>(TyR)->getNumElements(); in cmpConstants() 338 unsigned NumElementsL = cast<FixedVectorType>(TyL)->getNumElements(); in cmpConstants() 339 unsigned NumElementsR = cast<FixedVectorType>(TyR)->getNumElements(); in cmpConstants() 454 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes() 455 return cmpNumbers(STyL->getNumElements(), STyR->getNumElements()); in cmpTypes() 460 for (unsigned i = 0, e = STyL->getNumElements(); i != e; ++i) { in cmpTypes() 489 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86PartialReduction.cpp | 71 if (cast<FixedVectorType>(Op->getType())->getNumElements() < 8) in tryMAddReplacement() 140 unsigned NumElts = MulTy->getNumElements(); in tryMAddReplacement() 215 unsigned NumElts = OpTy->getNumElements(); in trySADReplacement() 268 cast<FixedVectorType>(Ops[0]->getType())->getNumElements() * 2; in trySADReplacement() 278 NumElts = cast<FixedVectorType>(OpTy)->getNumElements(); in trySADReplacement() 285 cast<FixedVectorType>(Ops[0]->getType())->getNumElements(); in trySADReplacement() 313 unsigned NumElems = cast<FixedVectorType>(BO->getType())->getNumElements(); in matchAddReduction()
|
| H A D | X86InstCombineIntrinsic.cpp | 205 unsigned VWidth = VT->getNumElements(); in simplifyX86immShift() 352 int NumElts = VT->getNumElements(); in simplifyX86varShift() 450 unsigned NumSrcElts = ArgTy->getNumElements(); in simplifyX86pack() 523 unsigned NumElts = ArgTy->getNumElements(); in simplifyX86movmsk() 811 unsigned NumElts = VecTy->getNumElements(); in simplifyX86pshufb() 856 unsigned NumElts = VecTy->getNumElements(); in simplifyX86vpermilvar() 903 unsigned Size = VecTy->getNumElements(); in simplifyX86vpermv() 1425 cast<FixedVectorType>(Arg0->getType())->getNumElements(); in instCombineIntrinsic() 1642 cast<FixedVectorType>(Mask->getType())->getNumElements(); in instCombineIntrinsic() 1644 cast<FixedVectorType>(II.getType())->getNumElements(); in instCombineIntrinsic() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | InterleavedLoadCombinePass.cpp | 681 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() 1207 ->getNumElements(); in combine()
|
| H A D | ExpandReductions.cpp | 129 cast<FixedVectorType>(Vec->getType())->getNumElements())) in expandReductions() 149 cast<FixedVectorType>(Vec->getType())->getNumElements())) in expandReductions() 161 cast<FixedVectorType>(Vec->getType())->getNumElements()) || in expandReductions()
|
| H A D | Analysis.cpp | 58 unsigned NumElts = ATy->getNumElements(); in ComputeLinearIndex() 108 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in ComputeValueVTs() 142 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) { in computeValueLLTs() 153 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in computeValueLLTs() 389 return Idx < AT->getNumElements(); in indexReallyValid() 391 return Idx < cast<StructType>(T)->getNumElements(); in indexReallyValid()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizerInfo.cpp | 135 const unsigned OldElts = OldTy.isVector() ? OldTy.getNumElements() : 1; in mutationIsSane() 139 if (NewTy.getNumElements() >= OldElts) in mutationIsSane() 143 if (NewTy.getNumElements() <= OldElts) in mutationIsSane() 156 if (!NewTy.isVector() || OldTy.getNumElements() != NewTy.getNumElements()) in mutationIsSane()
|
| H A D | MachineIRBuilder.cpp | 643 SmallVector<SrcOp, 8> TmpVec(Res.getLLTTy(*getMRI()).getNumElements(), Src); in buildSplatVector() 665 SmallVector<int, 16> ZeroMask(DstTy.getNumElements()); in buildShuffleSplat() 676 assert(Src1Ty.getNumElements() + Src2Ty.getNumElements() >= Mask.size()); in buildShuffleVector() 964 assert(SrcTy.getNumElements() == DstTy.getNumElements() && in validateTruncExt() 989 TstTy.getNumElements() == Op0Ty.getNumElements())) && in validateSelectOp() 1105 DstTy.getNumElements() == Op0Ty.getNumElements(); in buildInstr() 1168 assert(DstOps[0].getLLTTy(*getMRI()).getNumElements() == in buildInstr() 1169 SrcOps[0].getLLTTy(*getMRI()).getNumElements() && in buildInstr()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 92 for (int i = 0, e = VTy->getNumElements(); i < e; ++i) { in getBroadcastShuffleOverhead() 109 for (int i = 0, e = VTy->getNumElements(); i < e; ++i) { in getPermuteShuffleOverhead() 122 int NumSubElts = SubVTy->getNumElements(); in getExtractSubvectorOverhead() 147 int NumSubElts = SubVTy->getNumElements(); in getInsertSubvectorOverhead() 207 VT->getNumElements()), in getCommonMaskedMemoryOpCost() 211 VT->getNumElements() * in getCommonMaskedMemoryOpCost() 228 VT->getNumElements() * in getCommonMaskedMemoryOpCost() 232 VT->getNumElements()), in getCommonMaskedMemoryOpCost() 815 VTy->getNumElements() * Cost; 1171 unsigned NumElts = VT->getNumElements(); [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | DerivedTypes.h | 326 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function 335 bool indexValid(unsigned Idx) const { return Idx < getNumElements(); } in indexValid() 348 return cast<StructType>(this)->getNumElements(); in getStructNumElements() 368 uint64_t getNumElements() const { return NumElements; } in getNumElements() function 384 return cast<ArrayType>(this)->getNumElements(); in getArrayNumElements() 533 return get(ElementType, FVTy->getNumElements()); in get() 567 unsigned getNumElements() const { return ElementQuantity; } in getNumElements() function
|
| H A D | GetElementPtrTypeIterator.h | 84 NumElements = ATy->getNumElements(); 90 NumElements = cast<FixedVectorType>(VTy)->getNumElements();
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/tools/llvm-diff/ |
| H A D | DifferenceEngine.cpp | 447 if (CVL->getType()->getNumElements() != CVR->getType()->getNumElements()) in equivalentAsOperands() 449 for (unsigned i = 0; i < CVL->getType()->getNumElements(); i++) { in equivalentAsOperands() 462 if (CAL->getType()->getNumElements() != CAR->getType()->getNumElements()) in equivalentAsOperands() 465 for (unsigned I = 0; I < CAL->getType()->getNumElements(); ++I) { in equivalentAsOperands() 485 if (LTy->getNumElements() != RTy->getNumElements() || in equivalentAsOperands() 489 for (unsigned I = 0; I < LTy->getNumElements(); I++) { in equivalentAsOperands()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 58 unsigned NumElts = cast<FixedVectorType>(DstTy)->getNumElements(); in BitCastConstantVector() 408 cast<FixedVectorType>(DestTy)->getNumElements() == in ConstantFoldCastInstruction() 409 cast<FixedVectorType>(V->getType())->getNumElements()) { in ConstantFoldCastInstruction() 561 if (Result.size() == V1VTy->getNumElements()) in ConstantFoldSelectInstruction() 637 if (CIdx->uge(ValFVTy->getNumElements())) in ConstantFoldExtractElementInstruction() 695 unsigned NumElts = ValTy->getNumElements(); in ConstantFoldInsertElementInstruction() 792 NumElts = ST->getNumElements(); in ConstantFoldInsertValueInstruction() 794 NumElts = cast<ArrayType>(Agg->getType())->getNumElements(); in ConstantFoldInsertValueInstruction() 854 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in ConstantFoldUnaryInstruction() 1302 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in isMaybeZeroSizedType() [all …]
|
| H A D | Constants.cpp | 782 unsigned NumElts = VTy->getNumElements(); in replaceUndefsWith() 807 unsigned NumElts = VTy->getNumElements(); in mergeUndefsWith() 1110 return ElementCount::getFixed(AT->getNumElements()); in getElementCount() 1142 unsigned UndefValue::getNumElements() const { in getNumElements() function in UndefValue 1145 return AT->getNumElements(); in getNumElements() 1147 return cast<FixedVectorType>(VT)->getNumElements(); in getNumElements() 1260 assert(V.size() == T->getNumElements() && in ConstantArray() 2923 unsigned ConstantDataSequential::getNumElements() const { in getNumElements() function in ConstantDataSequential 2925 return AT->getNumElements(); in getNumElements() 2936 assert(Elt < getNumElements() && "Invalid Elt"); in getElementPointer() [all …]
|
| H A D | AutoUpgrade.cpp | 1022 if (!STy || STy->getNumElements() != 2) in UpgradeGlobalVariable() 1049 unsigned NumElts = ResultTy->getNumElements() * 8; in UpgradeX86PSLLDQIntrinsics() 1083 unsigned NumElts = ResultTy->getNumElements() * 8; in UpgradeX86PSRLDQIntrinsics() 1998 ->getNumElements(); in UpgradeIntrinsicCall() 2251 if (NumDstElts < SrcTy->getNumElements()) { in UpgradeIntrinsicCall() 2282 if (NumDstElts != SrcTy->getNumElements()) { in UpgradeIntrinsicCall() 2415 unsigned EltNum = VecTy->getNumElements(); in UpgradeIntrinsicCall() 2496 ->getNumElements(); in UpgradeIntrinsicCall() 2589 unsigned NumElts = VecTy->getNumElements(); in UpgradeIntrinsicCall() 2674 unsigned NumElts = VecTy->getNumElements(); in UpgradeIntrinsicCall() [all …]
|
| H A D | DebugInfoMetadata.cpp | 1120 if (getNumElements() == 1) in isValid() 1170 if (getNumElements() == 0) in isImplicit() 1190 if (getNumElements() == 0) in isComplex() 1230 if (getNumElements() == 0) { in extractIfOffset() 1235 if (getNumElements() == 2 && Elements[0] == dwarf::DW_OP_plus_uconst) { in extractIfOffset() 1240 if (getNumElements() == 3 && Elements[0] == dwarf::DW_OP_constu) { in extractIfOffset() 1423 bool NeedsDeref = (Expr->getNumElements() > DropUntilStackValue) && in appendToStack() 1498 if ((getNumElements() != 2 && getNumElements() != 3 && in isConstant() 1499 getNumElements() != 6) || in isConstant() 1504 if (getNumElements() == 2 && getElement(0) == dwarf::DW_OP_consts) in isConstant() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 247 TempValues.reserve(VTp->getNumElements()); in getRandomValue() 248 for (unsigned i = 0; i < VTp->getNumElements(); ++i) in getRandomValue() 493 cast<FixedVectorType>(Val0->getType())->getNumElements()), in Act() 507 unsigned Width = cast<FixedVectorType>(Val0->getType())->getNumElements(); in Act() 540 cast<FixedVectorType>(Val0->getType())->getNumElements()), in Act() 558 DestTy = pickVectorType(VecTy->getNumElements()); in Act() 641 cast<FixedVectorType>(Val0->getType())->getNumElements(); in Act()
|
| /freebsd-13.1/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | NeonEmitter.cpp | 362 if (T.isVector() && T.getNumElements() > 1) in isBigEndianSafe() 622 S += "x" + utostr(getNumElements()); in str() 685 Ret += "V" + utostr(getNumElements()) + S; in builtin_str() 1236 getReturnType().getNumElements() == 1) in emitReturnReversal() 1657 if (Elts.size() > T.getNumElements()) { in emitDagShuffle() 1659 Elts.size() == T.getNumElements() * 2, in emitDagShuffle() 1662 } else if (Elts.size() < T.getNumElements()) { in emitDagShuffle() 1664 Elts.size() == T.getNumElements() / 2, in emitDagShuffle() 1681 for (unsigned I = 0; I < T.getNumElements(); ++I) { in emitDagDup() 2161 UpperBound = utostr(T.getNumElements() - 1); in genIntrinsicRangeCheckCode() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64PostLegalizerLowering.cpp | 231 unsigned NumElts = Ty.getNumElements(); in matchREV() 253 unsigned NumElts = MRI.getType(Dst).getNumElements(); in matchTRN() 274 unsigned NumElts = MRI.getType(Dst).getNumElements(); in matchUZP() 290 unsigned NumElts = MRI.getType(Dst).getNumElements(); in matchZip() 378 MRI.getType(Dst).getNumElements()); in matchEXT() 434 int NumElts = MRI.getType(Dst).getNumElements(); in matchINS() 656 if (*LaneIdx >= SrcTy.getNumElements()) in matchDupLane() 666 switch (SrcTy.getNumElements()) { in matchDupLane() 709 assert(MRI.getType(MI.getOperand(0).getReg()).getNumElements() == 2 && in applyDupLane()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.cpp | 378 unsigned WideBits = getScalarSizeInBits(Ty) * VTy->getNumElements(); in getNumVectorRegs() 486 unsigned VF = VTy->getNumElements(); in getArithmeticInstrCost() 616 assert(cast<FixedVectorType>(SrcTy)->getNumElements() == in getVectorTruncCost() 617 cast<FixedVectorType>(DstTy)->getNumElements() && in getVectorTruncCost() 633 unsigned VF = cast<FixedVectorType>(SrcTy)->getNumElements(); in getVectorTruncCost() 707 unsigned VF = DstVTy->getNumElements(); in getBoolVecToIntConversionCost() 771 unsigned VF = SrcVecTy->getNumElements(); in getCastInstrCost() 905 unsigned VF = cast<FixedVectorType>(ValTy)->getNumElements(); in getCmpSelInstrCost() 1148 unsigned NumElts = cast<FixedVectorType>(VecTy)->getNumElements(); in getInterleavedMemoryOpCost()
|