Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DTypeSize.h168 constexpr ScalarTy getKnownMinValue() const { return Quantity; } in getKnownMinValue() function
179 constexpr bool isKnownEven() const { return (getKnownMinValue() & 0x1) == 0; } in isKnownEven()
184 return getKnownMinValue() % RHS == 0; in isKnownMultipleOf()
196 return getKnownMinValue() % RHS.getKnownMinValue() == 0; in isKnownMultipleOf()
205 return getKnownMinValue(); in getFixedValue()
221 return LHS.getKnownMinValue() < RHS.getKnownMinValue(); in isKnownLT()
228 return LHS.getKnownMinValue() > RHS.getKnownMinValue(); in isKnownGT()
235 return LHS.getKnownMinValue() <= RHS.getKnownMinValue(); in isKnownLE()
242 return LHS.getKnownMinValue() >= RHS.getKnownMinValue(); in isKnownGE()
255 return LeafTy::get(getKnownMinValue() / RHS, isScalable()); in divideCoefficientBy()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/
H A DLowLevelType.h165 return getElementCount().getKnownMinValue(); in getNumElements()
197 return TypeSize(getScalarSizeInBits() * EC.getKnownMinValue(), in getSizeInBits()
205 return {(BaseSize.getKnownMinValue() + 7) / 8, BaseSize.isScalable()}; in getSizeInBytes()
431 maskAndShift(EC.getKnownMinValue(), VectorElementsFieldInfo) |
436 maskAndShift(EC.getKnownMinValue(),
H A DMachineValueType.h244 unsigned NewMinCount = 1 << Log2_32_Ceil(NElts.getKnownMinValue()); in getPow2VectorType()
347 return {(BaseSize.getKnownMinValue() + 7) / 8, BaseSize.isScalable()}; in getStoreSize()
468 return getScalableVectorVT(VT, EC.getKnownMinValue()); in getVectorVT()
469 return getVectorVT(VT, EC.getKnownMinValue()); in getVectorVT()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DSVEIntrinsicOpts.cpp123 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()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVRegisterBankInfo.cpp309 Mapping = getVRBValueMapping(Size.getKnownMinValue()); in getInstrMapping()
336 unsigned DstMinSize = DstTy.getSizeInBits().getKnownMinValue(); in getInstrMapping()
403 getVRBValueMapping(Ty.getSizeInBits().getKnownMinValue()); in getInstrMapping()
405 getVRBValueMapping(TestTy.getSizeInBits().getKnownMinValue()); in getInstrMapping()
520 getVRBValueMapping(Ty.getSizeInBits().getKnownMinValue()); in getInstrMapping()
H A DRISCVInstructionSelector.cpp863 if (Ty.getSizeInBits().getKnownMinValue() <= 64) in getRegClassForTypeOnBank()
866 if (Ty.getSizeInBits().getKnownMinValue() == 128) in getRegClassForTypeOnBank()
869 if (Ty.getSizeInBits().getKnownMinValue() == 256) in getRegClassForTypeOnBank()
872 if (Ty.getSizeInBits().getKnownMinValue() == 512) in getRegClassForTypeOnBank()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp903 ConstantRange CR(APInt(64, EC.getKnownMinValue())); in getBitWidthForCttzElements()
1075 if (VT.isScalableVector() && !isPowerOf2_32(EC.getKnownMinValue())) in getVectorTypeBreakdownMVT()
1081 if (!isPowerOf2_32(EC.getKnownMinValue())) { in getVectorTypeBreakdownMVT()
1083 NumVectorRegs = EC.getKnownMinValue(); in getVectorTypeBreakdownMVT()
1090 while (EC.getKnownMinValue() > 1 && in getVectorTypeBreakdownMVT()
1416 if (isPowerOf2_32(EC.getKnownMinValue())) { in computeRegisterProperties()
1422 SVT.getVectorElementCount().getKnownMinValue() > in computeRegisterProperties()
1423 EC.getKnownMinValue() && in computeRegisterProperties()
1468 else if (EC.getKnownMinValue() > 1) in computeRegisterProperties()
1562 divideCeil(VT.getVectorElementCount().getKnownMinValue(), in getVectorTypeBreakdown()
[all …]
H A DValueTypes.cpp143 return EC.getKnownMinValue(); in getExtendedVectorNumElements()
166 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.h350 return getVectorElementCount().getKnownMinValue(); in getVectorMinNumElements()
382 return {(BaseSize.getKnownMinValue() + 7) / 8, BaseSize.isScalable()}; in getStoreSize()
465 unsigned NewMinCount = 1 << Log2_32_Ceil(NElts.getKnownMinValue()); in getPow2VectorType()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1184 int GCDMinElts = std::gcd(OrigTy.getElementCount().getKnownMinValue(), in getLCMType()
1185 TargetTy.getElementCount().getKnownMinValue()); in getLCMType()
1188 TargetTy.getElementCount().getKnownMinValue()); in getLCMType()
1192 unsigned LCM = std::lcm(OrigTy.getSizeInBits().getKnownMinValue(), in getLCMType()
1193 TargetTy.getSizeInBits().getKnownMinValue()); in getLCMType()
1213 VecTy.getElementCount().getKnownMinValue(), in getLCMType()
1243 unsigned OrigTyNumElts = OrigTy.getElementCount().getKnownMinValue(); in getCoverTy()
1244 unsigned TargetTyNumElts = TargetTy.getElementCount().getKnownMinValue(); in getCoverTy()
1270 unsigned GCD = std::gcd(OrigTy.getSizeInBits().getKnownMinValue(), in getGCDType()
1271 TargetTy.getSizeInBits().getKnownMinValue()); in getGCDType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp2324 uint64_t MaxVF = VF.getKnownMinValue(); in isIndvarOverflowCheckKnownFalse()
2428 assert(isPowerOf2_32(VF.getKnownMinValue() * UF) && in getOrCreateVectorTripCount()
2477 if (UF * VF.getKnownMinValue() >= MinProfitableTripCount.getKnownMinValue()) in emitIterationCountCheck()
3013 VF.getKnownMinValue() * UF); in fixVectorizedLoop()
3411 ScalarizationCost += VF.getKnownMinValue() * in getDivRemSpeculationCost()
3415 ScalarizationCost += VF.getKnownMinValue() * in getDivRemSpeculationCost()
3923 ElementCount::getFixed(UserVF.getKnownMinValue()), UserVF); in computeFeasibleMaxVF()
4088 *MaxVScale * MaxFactors.ScalableVF.getKnownMinValue()); in computeMaxVF()
4184 llvm::bit_floor(WidestRegister.getKnownMinValue() / WidestType), in getMaximizedVFForTarget()
4197 unsigned WidestRegisterMinEC = MaxVectorElementCount.getKnownMinValue(); in getMaximizedVFForTarget()
[all …]
H A DVPlan.h108 return End.getKnownMinValue() <= Start.getKnownMinValue(); in isEmpty()
115 assert(isPowerOf2_32(Start.getKnownMinValue()) && in VFRange()
117 assert(isPowerOf2_32(End.getKnownMinValue()) && in VFRange()
142 assert(isPowerOf2_32(End.getKnownMinValue())); in end()
183 assert(Offset > 0 && Offset <= VF.getKnownMinValue() && in getLaneFromEnd()
185 unsigned LaneOffset = VF.getKnownMinValue() - Offset; in getLaneFromEnd()
221 assert(VF.isScalable() && Lane < VF.getKnownMinValue()); in mapToCacheIndex()
222 return VF.getKnownMinValue() + Lane; in mapToCacheIndex()
224 assert(Lane < VF.getKnownMinValue()); in mapToCacheIndex()
232 return VF.getKnownMinValue() * (VF.isScalable() ? 2 : 1); in getNumCachedLanes()
H A DVPlanRecipes.cpp472 Value *VFArg = State.Builder.getInt32(State.VF.getKnownMinValue()); in generatePerPart()
629 assert(Offset <= State.VF.getKnownMinValue() && in generatePerPart()
718 for (unsigned Lane = 0, NumLanes = State.VF.getKnownMinValue(); in execute()
1447 unsigned EndLane = FirstLaneOnly ? 1 : State.VF.getKnownMinValue(); in execute()
2203 State.VF.getKnownMinValue() * 2, true); in execute()
2215 createReplicatedMask(InterleaveFactor, State.VF.getKnownMinValue()), in execute()
2228 State.VF.getKnownMinValue(), *Group); in execute()
2298 createStrideMask(I, InterleaveFactor, State.VF.getKnownMinValue()); in execute()
2326 createBitMaskForGaps(State.Builder, State.VF.getKnownMinValue(), *Group); in execute()
H A DVPlan.cpp76 Builder.getInt32(VF.getKnownMinValue() - Lane)); in getAsRuntimeExpr()
309 unsigned LastLane = IsUniform ? 0 : VF.getKnownMinValue() - 1; in get()
348 for (unsigned Lane = 0; Lane < VF.getKnownMinValue(); ++Lane) in get()
391 DIL->cloneByMultiplyingDuplicationFactor(UF * VF.getKnownMinValue()); in setDebugLocFrom()
765 for (unsigned Lane = 0, VF = State->VF.getKnownMinValue(); Lane < VF; in execute()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryLocation.h113 return LocationSize(Value.getKnownMinValue(), Value.isScalable()); in precise()
184 return hasValue() && getValue().getKnownMinValue() == 0; in isZero()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDataLayout.h474 return {divideCeil(BaseSize.getKnownMinValue(), 8), BaseSize.isScalable()}; in getTypeStoreSize()
711 uint64_t MinBits = EltCnt.getKnownMinValue() * in getTypeSizeInBits()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaRISCV.cpp537 unsigned MinElemCount = Info.EC.getKnownMinValue(); in CheckInvalidVLENandLMUL()
646 MaxIndex = (VecInfo.EC.getKnownMinValue() * VecInfo.NumVectors) / in CheckBuiltinFunctionCall()
647 (ResVecInfo.EC.getKnownMinValue() * ResVecInfo.NumVectors); in CheckBuiltinFunctionCall()
661 MaxIndex = (ResVecInfo.EC.getKnownMinValue() * ResVecInfo.NumVectors) / in CheckBuiltinFunctionCall()
662 (VecInfo.EC.getKnownMinValue() * VecInfo.NumVectors); in CheckBuiltinFunctionCall()
1379 unsigned MinElts = Info.EC.getKnownMinValue(); in checkRVVTypeSupport()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
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()
583 unsigned NumElts = EC.getKnownMinValue(); in visitExtractElementInst()
2535 if (ShufTy->getElementCount().getKnownMinValue() > in foldCastShuffle()
2536 ShufOpTy->getElementCount().getKnownMinValue()) in foldCastShuffle()
H A DInstCombineLoadStoreAlloca.cpp469 if (DL.getTypeAllocSize(AI.getAllocatedType()).getKnownMinValue() == 0) { in visitAllocaInst()
487 .getKnownMinValue() != 0) { in visitAllocaInst()
787 auto EltAlign = commonAlignment(Align, Offset.getKnownMinValue()); in unpackLoadToAggregate()
1314 auto EltAlign = commonAlignment(Align, Offset.getKnownMinValue()); in unpackStoreToAggregate()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVSubtarget.h207 X = Quantity::getFixed(X.getKnownMinValue() * VScale); in expandVScale()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIntrinsicInst.cpp641 return VScaleFactor >= EC.getKnownMinValue(); in canIgnoreVectorLengthParam()
642 return (EC.getKnownMinValue() == 1) && match(VLParam, m_VScale()); in canIgnoreVectorLengthParam()
651 if (VLNum >= EC.getKnownMinValue()) in canIgnoreVectorLengthParam()
H A DType.cpp194 return {ETS.getFixedValue() * EC.getKnownMinValue(), EC.isScalable()}; in getPrimitiveSizeInBits()
678 return ScalableVectorType::get(ElementType, EC.getKnownMinValue()); in get()
680 return FixedVectorType::get(ElementType, EC.getKnownMinValue()); in get()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypes.cpp556 Info.EC.getKnownMinValue() * in ConvertType()
577 ConvertType(Info.ElementType), Info.EC.getKnownMinValue()); in ConvertType()
582 Info.EC.getKnownMinValue()); in ConvertType()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/
H A DGlobalISelMatchTable.cpp357 << Ty.getElementCount().getKnownMinValue() << "s" in emitCxxEnumValue()
379 << Ty.getElementCount().getKnownMinValue() << "), " in emitCxxConstructorCall()
412 Ty.getElementCount().getKnownMinValue()) < in operator <()
414 Other.Ty.getElementCount().getKnownMinValue()); in operator <()
420 Ty.getSizeInBits().getKnownMinValue()) < in operator <()
422 Other.Ty.getSizeInBits().getKnownMinValue()) in operator <()

12345