/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/ |
H A D | MVEGatherScatterLowering.cpp | 244 if (PtrTy->getNumElements() != 4 || MemoryTy->getScalarSizeInBits() == 32) in decomposePtr() 278 cast<FixedVectorType>(Offsets->getType())->getNumElements(); in decomposeGEP() 280 assert(Ty->getNumElements() == OffsetsElemCount); in decomposeGEP() 315 if (BCTy->getNumElements() == BCSrcTy->getNumElements()) { in lookThroughBitcast() 415 if (!isLegalTypeAndAlignment(Ty->getNumElements(), Ty->getScalarSizeInBits(), in lowerGather() 459 if (Ty->getNumElements() != 4 || Ty->getScalarSizeInBits() != 32) in tryCreateMaskedGatherBase() 480 if (Ty->getNumElements() != 4 || Ty->getScalarSizeInBits() != 32) in tryCreateMaskedGatherBaseWB() 534 128 / cast<FixedVectorType>(ResultTy)->getNumElements()); in tryCreateMaskedGatherOffset() 591 if (!isLegalTypeAndAlignment(Ty->getNumElements(), Ty->getScalarSizeInBits(), in lowerScatter() 622 if (!(Ty->getNumElements() == 4 && Ty->getScalarSizeInBits() == 32)) { in tryCreateMaskedScatterBase() [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 321 unsigned VWidth = cast<FixedVectorType>(V->getType())->getNumElements(); in findDemandedEltsBySingleUser() 339 cast<FixedVectorType>(UserInstr->getType())->getNumElements(); in findDemandedEltsBySingleUser() 365 unsigned VWidth = cast<FixedVectorType>(V->getType())->getNumElements(); in findDemandedEltsByAllUsers() 543 ->getNumElements(); in visitExtractElementInst() 614 unsigned NumElts = cast<FixedVectorType>(V->getType())->getNumElements(); in collectSingleShuffleElements() 656 cast<FixedVectorType>(LHS->getType())->getNumElements(); in collectSingleShuffleElements() 688 unsigned NumInsElts = InsVecType->getNumElements(); in replaceExtractElements() 689 unsigned NumExtElts = ExtVecType->getNumElements(); in replaceExtractElements() 769 unsigned NumElts = cast<FixedVectorType>(V->getType())->getNumElements(); in collectShuffleElements() 814 cast<FixedVectorType>(RHS->getType())->getNumElements(); in collectShuffleElements() [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
H A D | Scalarizer.cpp | 295 Size = cast<FixedVectorType>(Ty)->getNumElements(); in INITIALIZE_PASS_DEPENDENCY() 514 unsigned NumElems = VT->getNumElements(); in splitUnary() 534 unsigned NumElems = VT->getNumElements(); in splitBinary() 577 unsigned NumElems = VT->getNumElements(); in splitCall() 634 unsigned NumElems = VT->getNumElements(); in visitSelectInst() 688 unsigned NumElems = VT->getNumElements(); in visitGetElementPtrInst() 733 unsigned NumElems = VT->getNumElements(); in visitCastInst() 752 unsigned DstNumElems = DstVT->getNumElements(); in visitBitCastInst() 753 unsigned SrcNumElems = SrcVT->getNumElements(); in visitBitCastInst() 806 unsigned NumElems = VT->getNumElements(); in visitInsertElementInst() [all …]
|
H A D | ScalarizeMaskedMemIntrin.cpp | 96 unsigned NumElts = cast<FixedVectorType>(Mask->getType())->getNumElements(); in isConstantIntVector() 177 unsigned VectorWidth = cast<FixedVectorType>(VecType)->getNumElements(); in scalarizeMaskedLoad() 316 unsigned VectorWidth = cast<FixedVectorType>(VecType)->getNumElements(); in scalarizeMaskedStore() 433 unsigned VectorWidth = VecType->getNumElements(); in scalarizeMaskedGather() 563 unsigned VectorWidth = SrcFVTy->getNumElements(); in scalarizeMaskedScatter() 650 unsigned VectorWidth = VecType->getNumElements(); in scalarizeMaskedExpandLoad() 778 unsigned VectorWidth = VecType->getNumElements(); in scalarizeMaskedCompressStore()
|
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
H A D | FunctionComparator.cpp | 318 uint64_t NumElementsL = cast<ArrayType>(TyL)->getNumElements(); in cmpConstants() 319 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements(); in cmpConstants() 332 unsigned NumElementsL = cast<StructType>(TyL)->getNumElements(); in cmpConstants() 333 unsigned NumElementsR = cast<StructType>(TyR)->getNumElements(); in cmpConstants() 346 unsigned NumElementsL = cast<FixedVectorType>(TyL)->getNumElements(); in cmpConstants() 347 unsigned NumElementsR = cast<FixedVectorType>(TyR)->getNumElements(); in cmpConstants() 471 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes() 472 return cmpNumbers(STyL->getNumElements(), STyR->getNumElements()); in cmpTypes() 477 for (unsigned i = 0, e = STyL->getNumElements(); i != e; ++i) { in cmpTypes() 506 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes() [all …]
|
H A D | SCCPSolver.cpp | 75 for (unsigned i = 0, e = ST->getNumElements(); i != e; ++i) { in tryToReplaceWithConstant() 427 assert(i < cast<StructType>(V->getType())->getNumElements() && in getStructValueState() 605 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in addTrackedFunction() 642 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in getStructLatticeValueFor() 676 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in markOverdefined() 764 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in isStructLatticeConstant() 1061 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in visitReturnInst() 1190 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in visitInsertValueInst() 1529 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in handleCallArguments() 1647 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in handleCallResult() [all …]
|
/openbsd-src/gnu/llvm/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() 235 unsigned NumAmtElts = cast<FixedVectorType>(AmtVT)->getNumElements(); in simplifyX86immShift() 353 int NumElts = VT->getNumElements(); in simplifyX86varShift() 450 unsigned NumSrcElts = ArgTy->getNumElements(); in simplifyX86pack() 451 assert(cast<FixedVectorType>(ResTy)->getNumElements() == (2 * NumSrcElts) && in simplifyX86pack() 523 unsigned NumElts = ArgTy->getNumElements(); in simplifyX86movmsk() 567 assert(VecTy->getNumElements() == 4 && "insertps with wrong vector type"); in simplifyX86insertps() 810 unsigned NumElts = VecTy->getNumElements(); in simplifyX86pshufb() 855 unsigned NumElts = VecTy->getNumElements(); in simplifyX86vpermilvar() 902 unsigned Size = VecTy->getNumElements(); in simplifyX86vpermv() [all …]
|
H A D | X86InterleavedAccess.cpp | 189 createSequentialMask(Indices[i], SubVecTy->getNumElements(), in decompose() 728 unsigned NumSubVecElems = ShuffleEltTy->getNumElements() / Factor; in lowerIntoOptimizedSequence() 737 if (ShuffleTy->getNumElements() != NumSubVecElems) in lowerIntoOptimizedSequence() 764 unsigned NumSubVecElems = ShuffleTy->getNumElements() / Factor; in lowerIntoOptimizedSequence() 833 assert(cast<FixedVectorType>(SVI->getType())->getNumElements() % Factor == in lowerInterleavedStore()
|
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
H A D | InterleavedLoadCombinePass.cpp | 678 EI = new ElementInfo[VTy->getNumElements()]; in VectorInfo() 683 unsigned getDimension() const { return VTy->getNumElements(); } in getDimension() 741 if (Result.VTy->getNumElements() % VTy->getNumElements()) in computeFromBCI() 744 unsigned Factor = Result.VTy->getNumElements() / VTy->getNumElements(); in computeFromBCI() 755 for (unsigned i = 0; i < Result.VTy->getNumElements(); i += Factor) { in computeFromBCI() 836 assert((i < 2 * (signed)ArgTy->getNumElements()) && in computeFromSVI() 841 else if (i < (signed)ArgTy->getNumElements()) { in computeFromSVI() 848 Result.EI[j] = RHS.EI[i - ArgTy->getNumElements()]; in computeFromSVI() 1204 ->getNumElements(); in combine()
|
H A D | ExpandReductions.cpp | 127 cast<FixedVectorType>(Vec->getType())->getNumElements())) in expandReductions() 147 cast<FixedVectorType>(Vec->getType())->getNumElements())) in expandReductions() 159 cast<FixedVectorType>(Vec->getType())->getNumElements()) || in expandReductions()
|
H A D | Analysis.cpp | 55 unsigned NumElts = ATy->getNumElements(); in ComputeLinearIndex() 105 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in ComputeValueVTs() 139 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) { in computeValueLLTs() 150 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in computeValueLLTs() 411 return Idx < AT->getNumElements(); in indexReallyValid() 413 return Idx < cast<StructType>(T)->getNumElements(); in indexReallyValid()
|
H A D | InterleavedAccessPass.cpp | 334 cast<FixedVectorType>(LI->getType())->getNumElements(); in lowerInterleavedLoad() 403 return Idx < (int)cast<FixedVectorType>(BIOp0Ty)->getNumElements(); in replaceBinOpShuffles() 504 cast<FixedVectorType>(SVI->getOperand(0)->getType())->getNumElements(); in lowerInterleavedStore()
|
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
H A D | DerivedTypes.h | 327 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function 336 bool indexValid(unsigned Idx) const { return Idx < getNumElements(); } in indexValid() 349 return cast<StructType>(this)->getNumElements(); in getStructNumElements() 369 uint64_t getNumElements() const { return NumElements; } in getNumElements() function 385 return cast<ArrayType>(this)->getNumElements(); in getArrayNumElements() 534 return get(ElementType, FVTy->getNumElements()); in get() 568 unsigned getNumElements() const { return ElementQuantity; } in getNumElements() function
|
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/ |
H A D | MachineIRBuilder.cpp | 235 assert((ResTy.getNumElements() > Op0Ty.getNumElements()) && in buildPadVectorWithUndefElements() 243 unsigned NumberOfPadElts = ResTy.getNumElements() - Regs.size(); in buildPadVectorWithUndefElements() 258 assert((ResTy.getNumElements() < Op0Ty.getNumElements()) && in buildDeleteTrailingVectorElements() 263 for (unsigned i = 0; i < ResTy.getNumElements(); ++i) in buildDeleteTrailingVectorElements() 688 SmallVector<SrcOp, 8> TmpVec(Res.getLLTTy(*getMRI()).getNumElements(), Src); in buildSplatVector() 713 SmallVector<int, 16> ZeroMask(DstTy.getNumElements()); in buildShuffleSplat() 724 assert((size_t)(Src1Ty.getNumElements() + Src2Ty.getNumElements()) >= in buildShuffleVector() 1026 assert(SrcTy.getNumElements() == DstTy.getNumElements() && in validateTruncExt() 1051 TstTy.getNumElements() == Op0Ty.getNumElements())) && in validateSelectOp() 1167 DstTy.getNumElements() == Op0Ty.getNumElements(); in buildInstr() [all …]
|
/openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
H A D | PatternInit.cpp | 67 ArrTy->getNumElements(), in initializationPatternFor() 79 llvm::SmallVector<llvm::Constant *, 8> Struct(StructTy->getNumElements()); in initializationPatternFor()
|
/openbsd-src/gnu/llvm/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() 136 (int)cast<FixedVectorType>(VTy)->getNumElements()) && in getExtractSubvectorOverhead() 161 int NumSubElts = SubVTy->getNumElements(); in getInsertSubvectorOverhead() 164 (int)cast<FixedVectorType>(VTy)->getNumElements()) && in getInsertSubvectorOverhead() 226 VT->getNumElements()), in getCommonMaskedMemoryOpCost() 230 VT->getNumElements() * in getCommonMaskedMemoryOpCost() 248 VT->getNumElements() * in getCommonMaskedMemoryOpCost() 252 VT->getNumElements()), in getCommonMaskedMemoryOpCost() [all …]
|
/openbsd-src/gnu/llvm/llvm/tools/llvm-diff/lib/ |
H A D | DifferenceEngine.cpp | 587 if (CVL->getType()->getNumElements() != CVR->getType()->getNumElements()) in equivalentAsOperands() 589 for (unsigned i = 0; i < CVL->getType()->getNumElements(); i++) { in equivalentAsOperands() 602 if (CAL->getType()->getNumElements() != CAR->getType()->getNumElements()) in equivalentAsOperands() 605 for (unsigned I = 0; I < CAL->getType()->getNumElements(); ++I) { in equivalentAsOperands() 625 if (LTy->getNumElements() != RTy->getNumElements() || in equivalentAsOperands() 629 for (unsigned I = 0; I < LTy->getNumElements(); I++) { in equivalentAsOperands()
|
/openbsd-src/gnu/llvm/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 56 unsigned NumElts = cast<FixedVectorType>(DstTy)->getNumElements(); in BitCastConstantVector() 57 if (NumElts != cast<FixedVectorType>(CV->getType())->getNumElements()) in BitCastConstantVector() 406 cast<FixedVectorType>(DestTy)->getNumElements() == in ConstantFoldCastInstruction() 407 cast<FixedVectorType>(V->getType())->getNumElements()) { in ConstantFoldCastInstruction() 419 e = cast<FixedVectorType>(V->getType())->getNumElements(); in ConstantFoldCastInstruction() 532 for (unsigned i = 0, e = V1VTy->getNumElements(); i != e; ++i) { in ConstantFoldSelectInstruction() 553 if (Result.size() == V1VTy->getNumElements()) in ConstantFoldSelectInstruction() 629 if (CIdx->uge(ValFVTy->getNumElements())) in ConstantFoldExtractElementInstruction() 695 unsigned NumElts = ValTy->getNumElements(); in ConstantFoldInsertElementInstruction() 796 NumElts = ST->getNumElements(); in ConstantFoldInsertValueInstruction() [all …]
|
H A D | DebugInfoMetadata.cpp | 1283 return getNumElements() > 0 && getElement(0) == dwarf::DW_OP_LLVM_entry_value; in isEntryValue() 1286 return getNumElements() > 0 && getElement(0) == dwarf::DW_OP_deref; in startsWithDeref() 1356 if (getNumElements() == 1) in isValid() 1409 if (getNumElements() == 0) in isImplicit() 1429 if (getNumElements() == 0) in isComplex() 1452 if (getNumElements() == 0) in isSingleLocationExpression() 1482 NewOps.reserve(Expr->getNumElements() + 2); in convertToVariadicExpression() 1495 if (!Expr->getNumElements()) in convertToNonVariadicExpression() 1577 if (getNumElements() == 0) { in extractIfOffset() 1582 if (getNumElements() == 2 && Elements[0] == dwarf::DW_OP_plus_uconst) { in extractIfOffset() [all …]
|
H A D | Constants.cpp | 138 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in isNotOneValue() 183 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in isNotMinSignedValue() 205 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in isFiniteNonZeroFP() 226 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in isNormalFP() 247 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in hasExactInverseFP() 268 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in isNaN() 319 for (unsigned i = 0, e = cast<FixedVectorType>(VTy)->getNumElements(); in containsUndefinedElement() 348 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) in containsConstantExpression() 435 return Elt < PV->getNumElements() ? PV->getElementValue(Elt) : nullptr; in getAggregateElement() 438 return Elt < UV->getNumElements() ? UV->getElementValue(Elt) : nullptr; in getAggregateElement() [all …]
|
H A D | AutoUpgrade.cpp | 795 cast<FixedVectorType>(F->getReturnType())->getNumElements() == 4) { in UpgradeIntrinsicFunction1() 1228 if (!STy || STy->getNumElements() != 2) in UpgradeGlobalVariable() 1255 unsigned NumElts = ResultTy->getNumElements() * 8; in UpgradeX86PSLLDQIntrinsics() 1289 unsigned NumElts = ResultTy->getNumElements() * 8; in UpgradeX86PSRLDQIntrinsics() 1346 cast<FixedVectorType>(Op0->getType())->getNumElements()); in EmitX86Select() 1373 unsigned NumElts = cast<FixedVectorType>(Op0->getType())->getNumElements(); in UpgradeX86ALIGNIntrinsics() 1499 unsigned NumElts = cast<FixedVectorType>(Ty)->getNumElements(); in upgradeX86Rotate() 1569 unsigned NumElts = cast<FixedVectorType>(Ty)->getNumElements(); in upgradeX86ConcatShift() 1606 unsigned NumElts = cast<FixedVectorType>(Data->getType())->getNumElements(); in UpgradeMaskedStore() 1630 unsigned NumElts = cast<FixedVectorType>(ValTy)->getNumElements(); in UpgradeMaskedLoad() [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64PostLegalizerLowering.cpp | 235 unsigned NumElts = Ty.getNumElements(); in matchREV() 257 unsigned NumElts = MRI.getType(Dst).getNumElements(); in matchTRN() 278 unsigned NumElts = MRI.getType(Dst).getNumElements(); in matchUZP() 294 unsigned NumElts = MRI.getType(Dst).getNumElements(); in matchZip() 380 unsigned NumElts = Ty.getNumElements(); in isSingletonExtMask() 415 auto ExtInfo = getExtMask(Mask, DstTy.getNumElements()); in matchEXT() 476 int NumElts = MRI.getType(Dst).getNumElements(); in matchINS() 698 if (*LaneIdx >= SrcTy.getNumElements()) in matchDupLane() 708 switch (SrcTy.getNumElements()) { in matchDupLane() 751 assert(MRI.getType(MI.getOperand(0).getReg()).getNumElements() == 2 && in applyDupLane()
|
/openbsd-src/gnu/llvm/clang/utils/TableGen/ |
H A D | NeonEmitter.cpp | 204 unsigned getNumElements() const { return Bitwidth / ElementBitwidth; } in getNumElements() function in __anoncfaa73c60111::Type 363 if (T.isVector() && T.getNumElements() > 1) in isBigEndianSafe() 626 S += "x" + utostr(getNumElements()); in str() 689 Ret += "V" + utostr(getNumElements()) + S; in builtin_str() 1204 for (int J = Dest.getType().getNumElements() - 1; J >= 0; --J) in emitReverseVariable() 1212 for (int J = Dest.getType().getNumElements() - 1; J >= 0; --J) in emitReverseVariable() 1231 if (!NewV.getType().isVector() || NewV.getType().getNumElements() == 1) in emitArgumentReversal() 1253 getReturnType().getNumElements() == 1) in emitReturnReversal() 1652 std::make_unique<MaskExpander>(Arg1.first.getNumElements())); in emitDagShuffle() 1666 if (Elts.size() > T.getNumElements()) { in emitDagShuffle() [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 415 unsigned WideBits = getScalarSizeInBits(Ty) * VTy->getNumElements(); in getNumVectorRegs() 521 unsigned VF = VTy->getNumElements(); in getArithmeticInstrCost() 655 assert(cast<FixedVectorType>(SrcTy)->getNumElements() == in getVectorTruncCost() 656 cast<FixedVectorType>(DstTy)->getNumElements() && in getVectorTruncCost() 672 unsigned VF = cast<FixedVectorType>(SrcTy)->getNumElements(); in getVectorTruncCost() 746 unsigned VF = DstVTy->getNumElements(); in getBoolVecToIntConversionCost() 810 unsigned VF = SrcVecTy->getNumElements(); in getCastInstrCost() 952 unsigned VF = cast<FixedVectorType>(ValTy)->getNumElements(); in getCmpSelInstrCost() 1198 unsigned NumElts = cast<FixedVectorType>(VecTy)->getNumElements(); in getInterleavedMemoryOpCost()
|