/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 274 unsigned VWidth = cast<FixedVectorType>(V->getType())->getNumElements(); in findDemandedEltsBySingleUser() 292 cast<FixedVectorType>(UserInstr->getType())->getNumElements(); in findDemandedEltsBySingleUser() 318 unsigned VWidth = cast<FixedVectorType>(V->getType())->getNumElements(); in findDemandedEltsByAllUsers() 442 ->getNumElements(); in visitExtractElementInst() 475 unsigned NumElts = cast<FixedVectorType>(V->getType())->getNumElements(); in collectSingleShuffleElements() 517 cast<FixedVectorType>(LHS->getType())->getNumElements(); in collectSingleShuffleElements() 549 unsigned NumInsElts = InsVecType->getNumElements(); in replaceExtractElements() 550 unsigned NumExtElts = ExtVecType->getNumElements(); in replaceExtractElements() 631 unsigned NumElts = cast<FixedVectorType>(V->getType())->getNumElements(); in collectShuffleElements() 676 cast<FixedVectorType>(RHS->getType())->getNumElements(); in collectShuffleElements() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
H A D | LowLevelTypeImpl.h | 100 uint16_t getNumElements() const { in getNumElements() function 112 return getScalarSizeInBits() * getNumElements(); in getSizeInBits() 128 return isVector() ? LLT::vector(getNumElements(), NewEltTy) : NewEltTy; in changeElementType() 137 return isVector() ? LLT::vector(getNumElements(), NewEltSize) in changeElementSize() 153 assert(getNumElements() % Factor == 0); in divide() 154 return scalarOrVector(getNumElements() / Factor, getElementType()); in divide()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
H A D | MVEGatherScatterLowering.cpp | 240 cast<FixedVectorType>(Offsets->getType())->getNumElements(); in checkGEP() 242 assert(Ty->getNumElements() == OffsetsElemCount); in checkGEP() 277 if (BCTy->getNumElements() == BCSrcTy->getNumElements()) { in lookThroughBitcast() 364 if (!isLegalTypeAndAlignment(Ty->getNumElements(), Ty->getScalarSizeInBits(), in lowerGather() 406 if (Ty->getNumElements() != 4 || Ty->getScalarSizeInBits() != 32) in tryCreateMaskedGatherBase() 428 if (Ty->getNumElements() != 4 || Ty->getScalarSizeInBits() != 32) in tryCreateMaskedGatherBaseWB() 526 if (!isLegalTypeAndAlignment(Ty->getNumElements(), Ty->getScalarSizeInBits(), in lowerScatter() 555 if (!(Ty->getNumElements() == 4 && Ty->getScalarSizeInBits() == 32)) { in tryCreateMaskedScatterBase() 581 if (Ty->getNumElements() != 4 || Ty->getScalarSizeInBits() != 32) in tryCreateMaskedScatterBaseWB() 665 if (Ty->getNumElements() != 4 || in tryCreateIncrementingGatScat() [all …]
|
/netbsd-src/external/apache2/llvm/dist/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() 582 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitSelectInst() 636 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitGetElementPtrInst() 681 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitCastInst() 700 unsigned DstNumElems = cast<FixedVectorType>(DstVT)->getNumElements(); in visitBitCastInst() 701 unsigned SrcNumElems = cast<FixedVectorType>(SrcVT)->getNumElements(); in visitBitCastInst() 754 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitInsertElementInst() [all …]
|
/netbsd-src/external/apache2/llvm/dist/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 …]
|
/netbsd-src/external/apache2/llvm/dist/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() 234 unsigned NumAmtElts = cast<FixedVectorType>(AmtVT)->getNumElements(); in simplifyX86immShift() 352 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() 568 assert(VecTy->getNumElements() == 4 && "insertps with wrong vector type"); in simplifyX86insertps() 811 unsigned NumElts = VecTy->getNumElements(); in simplifyX86pshufb() 856 unsigned NumElts = VecTy->getNumElements(); in simplifyX86vpermilvar() 903 unsigned Size = VecTy->getNumElements(); in simplifyX86vpermv() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
H A D | InterleavedLoadCombinePass.cpp | 680 EI = new ElementInfo[VTy->getNumElements()]; in VectorInfo() 685 unsigned getDimension() const { return VTy->getNumElements(); } in getDimension() 743 if (Result.VTy->getNumElements() % VTy->getNumElements()) in computeFromBCI() 746 unsigned Factor = Result.VTy->getNumElements() / VTy->getNumElements(); in computeFromBCI() 757 for (unsigned i = 0; i < Result.VTy->getNumElements(); i += Factor) { in computeFromBCI() 838 assert((i < 2 * (signed)ArgTy->getNumElements()) && in computeFromSVI() 843 else if (i < (signed)ArgTy->getNumElements()) { in computeFromSVI() 850 Result.EI[j] = RHS.EI[i - ArgTy->getNumElements()]; in computeFromSVI() 1206 ->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 | LowLevelType.cpp | 23 auto NumElements = cast<FixedVectorType>(VTy)->getNumElements(); in getLLTForType() 52 Ty.getNumElements()); in getMVTForLLT()
|
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()
|
/netbsd-src/external/apache2/llvm/dist/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() 125 (int)cast<FixedVectorType>(VTy)->getNumElements()) && in getExtractSubvectorOverhead() 147 int NumSubElts = SubVTy->getNumElements(); in getInsertSubvectorOverhead() 150 (int)cast<FixedVectorType>(VTy)->getNumElements()) && in getInsertSubvectorOverhead() 207 VT->getNumElements()), in getCommonMaskedMemoryOpCost() 211 VT->getNumElements() * in getCommonMaskedMemoryOpCost() 228 VT->getNumElements() * in getCommonMaskedMemoryOpCost() 232 VT->getNumElements()), in getCommonMaskedMemoryOpCost() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
H A D | DerivedTypes.h | 329 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function 338 bool indexValid(unsigned Idx) const { return Idx < getNumElements(); } in indexValid() 351 return cast<StructType>(this)->getNumElements(); in getStructNumElements() 371 uint64_t getNumElements() const { return NumElements; } in getNumElements() function 387 return cast<ArrayType>(this)->getNumElements(); in getArrayNumElements() 536 return get(ElementType, FVTy->getNumElements()); in get() 570 unsigned getNumElements() const { return ElementQuantity; } in getNumElements() function
|
H A D | GetElementPtrTypeIterator.h | 84 NumElements = ATy->getNumElements(); 90 NumElements = cast<FixedVectorType>(VTy)->getNumElements();
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 58 unsigned NumElts = cast<FixedVectorType>(DstTy)->getNumElements(); in BitCastConstantVector() 59 if (NumElts != cast<FixedVectorType>(CV->getType())->getNumElements()) in BitCastConstantVector() 365 Constant *N = ConstantInt::get(DestTy, ATy->getNumElements()); in getFoldedSizeOfImpl() 372 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOfImpl() 452 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf() 508 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf() 601 cast<FixedVectorType>(DestTy)->getNumElements() == in ConstantFoldCastInstruction() 602 cast<FixedVectorType>(V->getType())->getNumElements()) { in ConstantFoldCastInstruction() 614 e = cast<FixedVectorType>(V->getType())->getNumElements(); in ConstantFoldCastInstruction() 702 STy->getNumElements() == 2 && in ConstantFoldCastInstruction() [all …]
|
H A D | Constants.cpp | 164 unsigned NumElts = cast<FixedVectorType>(VTy)->getNumElements(); in isNotOneValue() 214 unsigned NumElts = cast<FixedVectorType>(VTy)->getNumElements(); in isNotMinSignedValue() 233 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in isFiniteNonZeroFP() 247 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in isNormalFP() 261 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in hasExactInverseFP() 275 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in isNaN() 318 for (unsigned i = 0, e = cast<FixedVectorType>(VTy)->getNumElements(); in containsUndefinedElement() 339 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) in containsConstantExpression() 438 return Elt < PV->getNumElements() ? PV->getElementValue(Elt) : nullptr; in getAggregateElement() 441 return Elt < UV->getNumElements() ? UV->getElementValue(Elt) : nullptr; in getAggregateElement() [all …]
|
H A D | AutoUpgrade.cpp | 1016 if (!STy || STy->getNumElements() != 2) in UpgradeGlobalVariable() 1043 unsigned NumElts = ResultTy->getNumElements() * 8; in UpgradeX86PSLLDQIntrinsics() 1077 unsigned NumElts = ResultTy->getNumElements() * 8; in UpgradeX86PSRLDQIntrinsics() 1134 cast<FixedVectorType>(Op0->getType())->getNumElements()); in EmitX86Select() 1161 unsigned NumElts = cast<FixedVectorType>(Op0->getType())->getNumElements(); in UpgradeX86ALIGNIntrinsics() 1288 unsigned NumElts = cast<FixedVectorType>(Ty)->getNumElements(); in upgradeX86Rotate() 1358 unsigned NumElts = cast<FixedVectorType>(Ty)->getNumElements(); in upgradeX86ConcatShift() 1395 unsigned NumElts = cast<FixedVectorType>(Data->getType())->getNumElements(); in UpgradeMaskedStore() 1419 cast<FixedVectorType>(Passthru->getType())->getNumElements(); in UpgradeMaskedLoad() 1466 unsigned NumElts = cast<FixedVectorType>(Vec->getType())->getNumElements(); in ApplyX86MaskOn1BitsVec() [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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/ |
H A D | LegalizerInfo.cpp | 140 const unsigned OldElts = OldTy.isVector() ? OldTy.getNumElements() : 1; in mutationIsSane() 144 if (NewTy.getNumElements() >= OldElts) in mutationIsSane() 148 if (NewTy.getNumElements() <= OldElts) in mutationIsSane() 161 if (!NewTy.isVector() || OldTy.getNumElements() != NewTy.getNumElements()) in mutationIsSane() 669 LLT::vector(Aspect.Type.getNumElements(), ElementSizeAndAction.first); in findVectorLegalAction() 680 findAction(NumElementsVec, IntermediateType.getNumElements()); in findVectorLegalAction()
|
H A D | MachineIRBuilder.cpp | 645 SmallVector<SrcOp, 8> TmpVec(Res.getLLTTy(*getMRI()).getNumElements(), Src); in buildSplatVector() 667 SmallVector<int, 16> ZeroMask(DstTy.getNumElements()); in buildShuffleSplat() 678 assert(Src1Ty.getNumElements() + Src2Ty.getNumElements() >= Mask.size()); in buildShuffleVector() 965 assert(SrcTy.getNumElements() == DstTy.getNumElements() && in validateTruncExt() 990 TstTy.getNumElements() == Op0Ty.getNumElements())) && in validateSelectOp() 1106 DstTy.getNumElements() == Op0Ty.getNumElements(); in buildInstr() 1167 assert(DstOps[0].getLLTTy(*getMRI()).getNumElements() == in buildInstr() 1168 SrcOps[0].getLLTTy(*getMRI()).getNumElements() && in buildInstr()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
H A D | PatternInit.cpp | 67 ArrTy->getNumElements(), in initializationPatternFor() 79 llvm::SmallVector<llvm::Constant *, 8> Struct(StructTy->getNumElements()); in initializationPatternFor()
|
/netbsd-src/external/apache2/llvm/dist/clang/utils/TableGen/ |
H A D | NeonEmitter.cpp | 205 unsigned getNumElements() const { return Bitwidth / ElementBitwidth; } in getNumElements() function in __anon9e9e0a7a0111::Type 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() 1196 for (int J = Dest.getType().getNumElements() - 1; J >= 0; --J) in emitReverseVariable() 1204 for (int J = Dest.getType().getNumElements() - 1; J >= 0; --J) in emitReverseVariable() 1223 if (!NewV.getType().isVector() || NewV.getType().getNumElements() == 1) in emitArgumentReversal() 1236 getReturnType().getNumElements() == 1) in emitReturnReversal() 1643 std::make_unique<MaskExpander>(Arg1.first.getNumElements())); in emitDagShuffle() 1657 if (Elts.size() > T.getNumElements()) { in emitDagShuffle() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 243 TempValues.reserve(VTp->getNumElements()); in getRandomValue() 244 for (unsigned i = 0; i < VTp->getNumElements(); ++i) in getRandomValue() 489 cast<FixedVectorType>(Val0->getType())->getNumElements()), in Act() 503 unsigned Width = cast<FixedVectorType>(Val0->getType())->getNumElements(); in Act() 536 cast<FixedVectorType>(Val0->getType())->getNumElements()), in Act() 554 DestTy = pickVectorType(VecTy->getNumElements()); in Act() 637 cast<FixedVectorType>(Val0->getType())->getNumElements(); in Act()
|
/netbsd-src/external/apache2/llvm/dist/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()
|
/netbsd-src/external/apache2/llvm/dist/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()
|