| /src/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/ |
| H A D | LowLevelType.h | 165 return getElementCount().getKnownMinValue(); in getNumElements() 184 constexpr ElementCount getElementCount() const { in getElementCount() function 196 auto EC = getElementCount(); in getSizeInBits() 215 return isVector() ? LLT::vector(getElementCount(), NewEltTy) : NewEltTy; in changeElementType() 224 return isVector() ? LLT::vector(getElementCount(), NewEltSize) in changeElementSize() 242 assert(getElementCount().isKnownMultipleOf(Factor)); in divide() 243 return scalarOrVector(getElementCount().divideCoefficientBy(Factor), in divide() 256 return scalarOrVector(getElementCount().multiplyCoefficientBy(Factor), in multiplyElements()
|
| /src/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | MatrixBuilder.h | 45 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in splatScalarOperandIfNeeded() 51 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in splatScalarOperandIfNeeded() 163 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in CreateAdd() 169 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in CreateAdd() 188 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in CreateSub() 194 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in CreateSub() 221 B.CreateVectorSplat(cast<VectorType>(LHS->getType())->getElementCount(), in CreateScalarDiv()
|
| H A D | DerivedTypes.h | 448 return VectorType::get(ElementType, Other->getElementCount()); in get() 458 return VectorType::get(EltTy, VTy->getElementCount()); in getInteger() 466 return VectorType::get(EltTy->getExtendedType(), VTy->getElementCount()); in getExtendedElementVectorType() 491 return VectorType::get(EltTy, VTy->getElementCount()); in getTruncatedElementVectorType() 508 auto EltCnt = VTy->getElementCount(); in getHalfElementsVectorType() 518 auto EltCnt = VTy->getElementCount(); in getDoubleElementsVectorType() 529 inline ElementCount getElementCount() const; 641 inline ElementCount VectorType::getElementCount() const { in getElementCount() function 699 return VectorType::get(EltTy, VTy->getElementCount()); in getWithNewType()
|
| /src/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | LowLevelTypeUtils.cpp | 22 auto EC = VTy->getElementCount(); in getLLTForType() 54 Ty.getElementCount()); in getMVTForLLT() 61 return EVT::getVectorVT(Ctx, EltVT, Ty.getElementCount()); in getApproximateEVTForLLT()
|
| H A D | ValueTypes.cpp | 136 ElementCount EC = cast<VectorType>(LLVMTy)->getElementCount(); in getExtendedVectorNumElements() 148 return cast<VectorType>(LLVMTy)->getElementCount(); in getExtendedVectorElementCount() 264 VTy->getElementCount()); in getVT() 287 VTy->getElementCount()); in getEVT()
|
| H A D | ReplaceWithVeclib.cpp | 106 ElementCount EC(VTy ? VTy->getElementCount() : ElementCount::getFixed(0)); in replaceWithCallToVeclib() 120 EC = VectorArgTy->getElementCount(); in replaceWithCallToVeclib() 121 else if (EC != VectorArgTy->getElementCount()) in replaceWithCallToVeclib()
|
| H A D | ExpandLargeDivRem.cpp | 63 unsigned NumElements = VTy->getElementCount().getFixedValue(); in scalarize()
|
| /src/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizerInfo.cpp | 136 OldTy.getElementCount() : ElementCount::getFixed(1); in mutationIsSane() 140 if (ElementCount::isKnownGE(NewTy.getElementCount(), OldElts)) in mutationIsSane() 144 if (ElementCount::isKnownLE(NewTy.getElementCount(), OldElts)) in mutationIsSane() 158 OldTy.getElementCount() != NewTy.getElementCount()) in mutationIsSane()
|
| H A D | LegalizeMutations.cpp | 52 NewTy.isVector() ? NewTy.getElementCount() : ElementCount::getFixed(1); in changeElementCountTo() 61 ElementCount NewEltCount = NewEltTy.isVector() ? NewEltTy.getElementCount() in changeElementCountTo()
|
| H A D | Utils.cpp | 1184 int GCDMinElts = std::gcd(OrigTy.getElementCount().getKnownMinValue(), in getLCMType() 1185 TargetTy.getElementCount().getKnownMinValue()); in getLCMType() 1187 ElementCount Mul = OrigTy.getElementCount().multiplyCoefficientBy( in getLCMType() 1188 TargetTy.getElementCount().getKnownMinValue()); in getLCMType() 1208 return LLT::vector(VecTy.getElementCount(), OrigEltTy); in getLCMType() 1213 VecTy.getElementCount().getKnownMinValue(), in getLCMType() 1217 VecTy.getElementCount().isScalable()), in getLCMType() 1243 unsigned OrigTyNumElts = OrigTy.getElementCount().getKnownMinValue(); in getCoverTy() 1244 unsigned TargetTyNumElts = TargetTy.getElementCount().getKnownMinValue(); in getCoverTy() 1851 return Index->Value.uge(VecTy.getElementCount().getKnownMinValue()); in canCreateUndefOrPoison() [all …]
|
| H A D | CallLowering.cpp | 396 PartLLT.getElementCount() == LLTy.getElementCount()) && in buildCopyFromRegs() 449 .changeElementCount(PartLLT.getElementCount() * 2); in buildCopyFromRegs() 584 ElementCount::isKnownLT(SrcTy.getElementCount(), in buildCopyToRegs() 585 PartTy.getElementCount())) { in buildCopyToRegs() 602 LLT::vector(SrcTy.getElementCount(), in buildCopyToRegs() 1258 return LLT::vector(ValTy.getElementCount(), PtrTy); in getStackValueStoreType()
|
| H A D | MachineIRBuilder.cpp | 1168 assert(SrcTy.getElementCount() == DstTy.getElementCount() && in validateTruncExt() 1193 TstTy.getElementCount() == Op0Ty.getElementCount())) && in validateSelectOp() 1309 DstTy.getElementCount() == Op0Ty.getElementCount(); in buildInstr() 1367 assert(DstOps[0].getLLTTy(*getMRI()).getElementCount() == in buildInstr() 1368 SrcOps[0].getLLTTy(*getMRI()).getElementCount() && in buildInstr()
|
| /src/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | SVEIntrinsicOpts.cpp | 123 if (IntrUserVTy->getElementCount().getKnownMinValue() > in isPTruePromoted() 124 PTrueVTy->getElementCount().getKnownMinValue()) in isPTruePromoted() 146 return PTrue1VTy->getElementCount().getKnownMinValue() < in coalescePTrueIntrinsicCalls() 147 PTrue2VTy->getElementCount().getKnownMinValue(); in coalescePTrueIntrinsicCalls()
|
| H A D | AArch64TargetTransformInfo.cpp | 532 if ((VTy->getElementCount().getKnownMinValue() != 2 && in getHistogramCost() 533 VTy->getElementCount().getKnownMinValue() != 4) || in getHistogramCost() 550 if (VTy->getElementCount() == ElementCount::getScalable(1)) in getIntrinsicInstrCost() 985 if (CursorVTy->getElementCount().getKnownMinValue() < in instCombineConvertFromSVBool() 986 IVTy->getElementCount().getKnownMinValue()) in instCombineConvertFromSVBool() 1107 Value *Splat = IC.Builder.CreateVectorSplat(RetTy->getElementCount(), in instCombineSVEDupX() 1320 FPTy, cast<VectorType>(Vec->getType())->getElementCount()); in instCombineSVECondLast() 1748 IC.Builder.CreateVectorSplat(RetTy->getElementCount(), ScalarArg); in instCombineSVEUnpack() 1765 SplatValue->getValue().uge(VTy->getElementCount().getKnownMinValue())) in instCombineSVETBL() 1772 IC.Builder.CreateVectorSplat(VTy->getElementCount(), Extract); in instCombineSVETBL() [all …]
|
| /src/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | Local.cpp | 62 cast<VectorType>(IntIdxTy)->getElementCount(), Op); in emitGEPOffset() 72 cast<VectorType>(IntIdxTy)->getElementCount(), Scale); in emitGEPOffset()
|
| H A D | TensorSpec.cpp | 112 auto R = llvm::make_range(TypedBuff, TypedBuff + Spec.getElementCount()); \ in tensorValueToString()
|
| /src/contrib/llvm-project/llvm/include/llvm/FuzzMutate/ |
| H A D | OpDescriptor.h | 192 return ThisVec->getElementCount() == FirstVec->getElementCount(); in matchFirstLengthWAnyType() 202 EC = VecTy->getElementCount(); in matchFirstLengthWAnyType()
|
| /src/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Constants.cpp | 412 C = ConstantVector::getSplat(VTy->getElementCount(), C); in getIntegerValue() 428 return ConstantVector::getSplat(VTy->getElementCount(), in getAllOnesValue() 440 return Elt < CAZ->getElementCount().getKnownMinValue() in getAggregateElement() 872 return ConstantVector::getSplat(VTy->getElementCount(), TrueC); in getTrue() 880 return ConstantVector::getSplat(VTy->getElementCount(), FalseC); in getFalse() 930 return ConstantVector::getSplat(VTy->getElementCount(), C); in get() 946 return ConstantVector::getSplat(VTy->getElementCount(), C); in get() 975 return ConstantVector::getSplat(VTy->getElementCount(), C); in get() 987 return ConstantVector::getSplat(VTy->getElementCount(), C); in get() 1000 return ConstantVector::getSplat(VTy->getElementCount(), C); in get() [all …]
|
| H A D | ConstantFold.cpp | 174 cast<VectorType>(DestTy)->getElementCount(), Res); in ConstantFoldCastInstruction() 401 if (CIdx->getValue().ult(ValVTy->getElementCount().getKnownMinValue())) { in ConstantFoldExtractElementInstruction() 483 unsigned SrcNumElts = V1VTy->getElementCount().getKnownMinValue(); in ConstantFoldShuffleVectorInstruction() 589 return ConstantVector::getSplat(VTy->getElementCount(), Elt); in ConstantFoldUnaryInstruction() 907 return ConstantVector::getSplat(VTy->getElementCount(), Res); in ConstantFoldBinaryInstruction() 1130 VT->getElementCount()); in ConstantFoldCompareInstruction() 1203 return ConstantVector::getSplat(C1VTy->getElementCount(), Elt); in ConstantFoldCompareInstruction() 1215 for (unsigned I = 0, E = C1VTy->getElementCount().getKnownMinValue(); in ConstantFoldCompareInstruction() 1366 cast<VectorType>(GEPTy)->getElementCount(), C) in ConstantFoldGetElementPtr()
|
| H A D | Verifier.cpp | 3315 Check(cast<VectorType>(SrcTy)->getElementCount() == in visitUIToFPInst() 3316 cast<VectorType>(DestTy)->getElementCount(), in visitUIToFPInst() 3338 Check(cast<VectorType>(SrcTy)->getElementCount() == in visitSIToFPInst() 3339 cast<VectorType>(DestTy)->getElementCount(), in visitSIToFPInst() 3360 Check(cast<VectorType>(SrcTy)->getElementCount() == in visitFPToUIInst() 3361 cast<VectorType>(DestTy)->getElementCount(), in visitFPToUIInst() 3382 Check(cast<VectorType>(SrcTy)->getElementCount() == in visitFPToSIInst() 3383 cast<VectorType>(DestTy)->getElementCount(), in visitFPToSIInst() 3403 Check(VSrc->getElementCount() == VDest->getElementCount(), in visitPtrToIntInst() 3423 Check(VSrc->getElementCount() == VDest->getElementCount(), in visitIntToPtrInst() [all …]
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | FunctionComparator.cpp | 607 if (STyL->getElementCount().isScalable() != in cmpTypes() 608 STyR->getElementCount().isScalable()) in cmpTypes() 609 return cmpNumbers(STyL->getElementCount().isScalable(), in cmpTypes() 610 STyR->getElementCount().isScalable()); in cmpTypes() 611 if (STyL->getElementCount() != STyR->getElementCount()) in cmpTypes() 612 return cmpNumbers(STyL->getElementCount().getKnownMinValue(), in cmpTypes() 613 STyR->getElementCount().getKnownMinValue()); in cmpTypes()
|
| /src/contrib/llvm-project/llvm/lib/CodeGenTypes/ |
| H A D | LowLevelType.cpp | 41 OS << getElementCount() << " x " << getElementType() << ">"; in print()
|
| /src/contrib/llvm-project/llvm/lib/FuzzMutate/ |
| H A D | OpDescriptor.cpp | 45 ElementCount EC = VecTy->getElementCount(); in makeConstantsWithType()
|
| /src/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | TensorSpec.h | 84 size_t getElementCount() const { return ElementCount; } in getElementCount() function
|
| /src/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULateCodeGenPrepare.cpp | 228 uint64_t OriginalElementCount = VTy->getElementCount().getFixedValue(); in convertToOptType() 270 unsigned NarrowElementCount = NewVTy->getElementCount().getFixedValue(); in convertFromOptType()
|