Home
last modified time | relevance | path

Searched refs:getKnownMinValue (Results 1 – 25 of 123) sorted by relevance

12345

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DTypeSize.h169 constexpr ScalarTy getKnownMinValue() const { return Quantity; } in getKnownMinValue() function
180 constexpr bool isKnownEven() const { return (getKnownMinValue() & 0x1) == 0; } in isKnownEven()
185 return getKnownMinValue() % RHS == 0; in isKnownMultipleOf()
197 return getKnownMinValue() % RHS.getKnownMinValue() == 0; in isKnownMultipleOf()
206 return getKnownMinValue(); in getFixedValue()
222 return LHS.getKnownMinValue() < RHS.getKnownMinValue(); in isKnownLT()
229 return LHS.getKnownMinValue() > RHS.getKnownMinValue(); in isKnownGT()
236 return LHS.getKnownMinValue() <= RHS.getKnownMinValue(); in isKnownLE()
243 return LHS.getKnownMinValue() >= RHS.getKnownMinValue(); in isKnownGE()
256 return LeafTy::get(getKnownMinValue() / RHS, isScalable()); in divideCoefficientBy()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanHelpers.h79 return End.getKnownMinValue() <= Start.getKnownMinValue(); in isEmpty()
86 assert(isPowerOf2_32(Start.getKnownMinValue()) && in VFRange()
88 assert(isPowerOf2_32(End.getKnownMinValue()) && in VFRange()
113 assert(isPowerOf2_32(End.getKnownMinValue())); in end()
153 assert(Offset > 0 && Offset <= VF.getKnownMinValue() && in getLaneFromEnd()
155 unsigned LaneOffset = VF.getKnownMinValue() - Offset; in getLaneFromEnd()
192 assert(VF.isScalable() && Lane < VF.getKnownMinValue() && in mapToCacheIndex()
194 return VF.getKnownMinValue() + Lane; in mapToCacheIndex()
196 assert(Lane < VF.getKnownMinValue() && in mapToCacheIndex()
H A DLoopVectorize.cpp2222 uint64_t MaxVF = VF.getKnownMinValue(); in isIndvarOverflowCheckKnownFalse()
2269 assert(isPowerOf2_32(VF.getKnownMinValue() * UF) && in getOrCreateVectorTripCount()
2343 if (UF * VF.getKnownMinValue() >= MinProfitableTripCount.getKnownMinValue()) in createIterationCountCheck()
2587 unsigned EstimatedVF = VF.getKnownMinValue(); in getEstimatedRuntimeVF()
3552 ElementCount::getFixed(UserVF.getKnownMinValue()), UserVF); in computeFeasibleMaxVF()
3720 *MaxVScale * MaxFactors.ScalableVF.getKnownMinValue()); in computeMaxVF()
3867 llvm::bit_floor(WidestRegister.getKnownMinValue() / WidestType), in getMaximizedVFForTarget()
3880 unsigned WidestRegisterMinEC = MaxVectorElementCount.getKnownMinValue(); in getMaximizedVFForTarget()
3916 llvm::bit_floor(WidestRegister.getKnownMinValue() / SmallestType), in getMaximizedVFForTarget()
3945 unsigned EstimatedWidthA = A.Width.getKnownMinValue(); in isMoreProfitable()
[all …]
H A DVPlanUnroll.cpp521 for (unsigned I = 0; I != VF.getKnownMinValue(); ++I) in replicateByVF()
529 for (unsigned I = 0; I != VF.getKnownMinValue(); ++I) in replicateByVF()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVRegisterBankInfo.cpp267 Mapping = getVRBValueMapping(Size.getKnownMinValue()); in getInstrMapping()
294 unsigned DstMinSize = DstTy.getSizeInBits().getKnownMinValue(); in getInstrMapping()
321 OpdsMapping[0] = getVRBValueMapping(Size.getKnownMinValue()); in getInstrMapping()
355 OpdsMapping[0] = getVRBValueMapping(Size.getKnownMinValue()); in getInstrMapping()
381 getVRBValueMapping(Ty.getSizeInBits().getKnownMinValue()); in getInstrMapping()
383 getVRBValueMapping(TestTy.getSizeInBits().getKnownMinValue()); in getInstrMapping()
491 .getKnownMinValue()); in getInstrMapping()
515 getVRBValueMapping(Ty.getSizeInBits().getKnownMinValue()); in getInstrMapping()
H A DRISCVLegalizerInfo.cpp43 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 1 || in typeIsLegalIntOrFPVec()
55 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 1 || in typeIsLegalBoolVec()
66 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 1 || in typeIsLegalPtrVec()
68 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 16 || in typeIsLegalPtrVec()
668 DstTy.getElementCount().getKnownMinValue() >= 8 && in RISCVLegalizerInfo()
669 SrcTy.getElementCount().getKnownMinValue() >= 8; in RISCVLegalizerInfo()
941 DataTy.getElementCount().getKnownMinValue() * (EltSizeBits / 8); in legalizeLoadStore()
1183 auto BigTyMinElts = BigTy.getElementCount().getKnownMinValue(); in legalizeInsertSubvector()
1184 auto LitTyMinElts = LitTy.getElementCount().getKnownMinValue(); in legalizeInsertSubvector()
1206 STI.expandVScale(LitTy.getSizeInBits()).getKnownMinValue())); in legalizeInsertSubvector()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DSVEIntrinsicOpts.cpp120 if (IntrUserVTy->getElementCount().getKnownMinValue() > in isPTruePromoted()
121 PTrueVTy->getElementCount().getKnownMinValue()) in isPTruePromoted()
143 return PTrue1VTy->getElementCount().getKnownMinValue() < in coalescePTrueIntrinsicCalls()
144 PTrue2VTy->getElementCount().getKnownMinValue(); in coalescePTrueIntrinsicCalls()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/
H A DLowLevelType.h166 return getElementCount().getKnownMinValue(); in getNumElements()
195 return TypeSize(getScalarSizeInBits() * EC.getKnownMinValue(), in getSizeInBits()
203 return {(BaseSize.getKnownMinValue() + 7) / 8, BaseSize.isScalable()}; in getSizeInBytes()
399 RawData |= maskAndShift(EC.getKnownMinValue(), VectorElementsFieldInfo) |
H A DMachineValueType.h254 unsigned NewMinCount = 1 << Log2_32_Ceil(NElts.getKnownMinValue()); in getPow2VectorType()
360 return {(BaseSize.getKnownMinValue() + 7) / 8, BaseSize.isScalable()}; in getStoreSize()
504 return getScalableVectorVT(VT, EC.getKnownMinValue()); in getVectorVT()
505 return getVectorVT(VT, EC.getKnownMinValue()); in getVectorVT()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp1002 ConstantRange CR(APInt(64, EC.getKnownMinValue())); in getBitWidthForCttzElements()
1090 if (NumElts.isScalable() && NumElts.getKnownMinValue() == 1) in getTypeConversion()
1174 if (VT.isScalableVector() && !isPowerOf2_32(EC.getKnownMinValue())) in getVectorTypeBreakdownMVT()
1180 if (!isPowerOf2_32(EC.getKnownMinValue())) { in getVectorTypeBreakdownMVT()
1182 NumVectorRegs = EC.getKnownMinValue(); in getVectorTypeBreakdownMVT()
1189 while (EC.getKnownMinValue() > 1 && in getVectorTypeBreakdownMVT()
1515 if (isPowerOf2_32(EC.getKnownMinValue())) { in computeRegisterProperties()
1521 SVT.getVectorElementCount().getKnownMinValue() > in computeRegisterProperties()
1522 EC.getKnownMinValue() && in computeRegisterProperties()
1567 else if (EC.getKnownMinValue() > 1) in computeRegisterProperties()
[all …]
H A DValueTypes.cpp144 return EC.getKnownMinValue(); in getExtendedVectorNumElements()
166 unsigned Sz = getSizeInBits().getKnownMinValue(); in getEVTString()
173 utostr(getVectorElementCount().getKnownMinValue()) + in getEVTString()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DTypeSize.cpp55 return getKnownMinValue(); in operator TypeSize::ScalarTy()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DValueTypes.h355 return getVectorElementCount().getKnownMinValue(); in getVectorMinNumElements()
392 return {(BaseSize.getKnownMinValue() + 7) / 8, BaseSize.isScalable()}; in getStoreSize()
475 unsigned NewMinCount = 1 << Log2_32_Ceil(NElts.getKnownMinValue()); in getPow2VectorType()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDataLayout.h470 return {StoreSizeInBits.getKnownMinValue() / 8, in getTypeStoreSize()
484 alignToPowerOf2(BaseSize.getKnownMinValue(), 8); in getTypeStoreSizeInBits()
712 uint64_t MinBits = EltCnt.getKnownMinValue() * in getTypeSizeInBits()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1202 int GCDMinElts = std::gcd(OrigTy.getElementCount().getKnownMinValue(), in getLCMType()
1203 TargetTy.getElementCount().getKnownMinValue()); in getLCMType()
1206 TargetTy.getElementCount().getKnownMinValue()); in getLCMType()
1210 unsigned LCM = std::lcm(OrigTy.getSizeInBits().getKnownMinValue(), in getLCMType()
1211 TargetTy.getSizeInBits().getKnownMinValue()); in getLCMType()
1231 VecTy.getElementCount().getKnownMinValue(), in getLCMType()
1261 unsigned OrigTyNumElts = OrigTy.getElementCount().getKnownMinValue(); in getCoverTy()
1262 unsigned TargetTyNumElts = TargetTy.getElementCount().getKnownMinValue(); in getCoverTy()
1288 unsigned GCD = std::gcd(OrigTy.getSizeInBits().getKnownMinValue(), in getGCDType()
1289 TargetTy.getSizeInBits().getKnownMinValue()); in getGCDType()
[all …]
H A DLegalityPredicates.cpp215 MemTy.getSizeInBytes().getKnownMinValue()); in memSizeNotByteSizePow2()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInterleavedAccess.cpp272 unsigned NumElts = ResVTy->getElementCount().getKnownMinValue(); in lowerDeinterleaveIntrinsicToLoad()
346 unsigned NumElts = InVTy->getElementCount().getKnownMinValue(); in lowerInterleaveIntrinsicToStore()
462 unsigned NumElts = VTy->getElementCount().getKnownMinValue(); in lowerInterleavedVPLoad()
573 unsigned NumElts = VTy->getElementCount().getKnownMinValue(); in lowerInterleavedVPStore()
H A DRISCVSubtarget.h239 X = Quantity::getFixed(X.getKnownMinValue() * VScale); in expandVScale()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryLocation.h99 return LocationSize(Value.getKnownMinValue(), Value.isScalable()); in precise()
170 return hasValue() && getValue().getKnownMinValue() == 0; in isZero()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp484 if (DL.getTypeAllocSize(AI.getAllocatedType()).getKnownMinValue() == 0) { in visitAllocaInst()
502 .getKnownMinValue() != 0) { in visitAllocaInst()
750 commonAlignment(Align, SL->getElementOffset(i).getKnownMinValue()), in unpackLoadToAggregate()
795 auto EltAlign = commonAlignment(Align, Offset.getKnownMinValue()); in unpackLoadToAggregate()
1305 commonAlignment(Align, SL->getElementOffset(i).getKnownMinValue()); in unpackStoreToAggregate()
1351 auto EltAlign = commonAlignment(Align, Offset.getKnownMinValue()); in unpackStoreToAggregate()
H A DInstCombineVectorOps.cpp69 return CEI->getValue().ult(EC.getKnownMinValue()); in cheapToScalarize()
206 ExtIndexC = NumElts.getKnownMinValue() - 1 - ExtIndexC; in foldBitcastExtElt()
239 if (NumSrcElts.getKnownMinValue() < NumElts.getKnownMinValue()) { in foldBitcastExtElt()
252 NumElts.getKnownMinValue() / NumSrcElts.getKnownMinValue(); in foldBitcastExtElt()
429 unsigned NumElts = EC.getKnownMinValue(); in visitExtractElementInst()
511 if (IndexC && IdxVal < EC.getKnownMinValue() && GEP->hasOneUse()) { in visitExtractElementInst()
595 unsigned NumElts = EC.getKnownMinValue(); in visitExtractElementInst()
2598 if (ShufTy->getElementCount().getKnownMinValue() > in foldCastShuffle()
2599 ShufOpTy->getElementCount().getKnownMinValue()) in foldCastShuffle()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaRISCV.cpp532 unsigned MinElemCount = Info.EC.getKnownMinValue(); in CheckInvalidVLENandLMUL()
678 MaxIndex = (VecInfo.EC.getKnownMinValue() * VecInfo.NumVectors) / in CheckBuiltinFunctionCall()
679 (ResVecInfo.EC.getKnownMinValue() * ResVecInfo.NumVectors); in CheckBuiltinFunctionCall()
693 MaxIndex = (ResVecInfo.EC.getKnownMinValue() * ResVecInfo.NumVectors) / in CheckBuiltinFunctionCall()
694 (VecInfo.EC.getKnownMinValue() * VecInfo.NumVectors); in CheckBuiltinFunctionCall()
1426 unsigned MinElts = Info.EC.getKnownMinValue(); in checkRVVTypeSupport()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp42 TypeSize::getFixed(MinStoreSize.getKnownMinValue() * MinVScale); in canCoerceMustAliasedValueToLoad()
383 TypeSize::getFixed(MinSrcValSize.getKnownMinValue() * in getValueForLoad()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp125 return ConstantInt::get(Ty, EC.getKnownMinValue()); in CreateElementCount()
127 return CreateVScaleMultiple(*this, Ty, EC.getKnownMinValue()); in CreateElementCount()
132 return ConstantInt::get(Ty, Size.getKnownMinValue()); in CreateTypeSize()
134 return CreateVScaleMultiple(*this, Ty, Size.getKnownMinValue()); in CreateTypeSize()
1093 int NumElts = Ty->getElementCount().getKnownMinValue(); in CreateVectorReverse()
1143 Zeros.resize(EC.getKnownMinValue()); in CreateVectorSplat()
H A DIntrinsicInst.cpp616 return VScaleFactor >= EC.getKnownMinValue(); in canIgnoreVectorLengthParam()
617 return (EC.getKnownMinValue() == 1) && match(VLParam, m_VScale()); in canIgnoreVectorLengthParam()
626 if (VLNum >= EC.getKnownMinValue()) in canIgnoreVectorLengthParam()

12345