Home
last modified time | relevance | path

Searched refs:Numerator (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolutionDivision.cpp55 void SCEVDivision::divide(ScalarEvolution &SE, const SCEV *Numerator, in divide() argument
58 assert(Numerator && Denominator && "Uninitialized SCEV"); in divide()
60 SCEVDivision D(SE, Numerator, Denominator); in divide()
64 if (Numerator == Denominator) { in divide()
70 if (Numerator->isZero()) { in divide()
78 *Quotient = Numerator; in divide()
86 *Quotient = Numerator; in divide()
95 *Remainder = Numerator; in divide()
103 D.visit(Numerator); in divide()
108 void SCEVDivision::visitConstant(const SCEVConstant *Numerator) { in visitConstant() argument
[all …]
H A DLoopCacheAnalysis.cpp301 const SCEV *Numerator = SE.getMulExpr(Stride, TripCount); in computeRefCost() local
307 RefCost = SE.getUDivCeilSCEV(Numerator, CacheLineSize); in computeRefCost()
H A DScalarEvolution.cpp12489 auto *Numerator = getExistingSCEV(LL); in isImpliedViaOperations() local
12490 if (!Numerator || Numerator->getType() != FoundLHS->getType()) in isImpliedViaOperations()
12495 if (!HasSameValue(Numerator, FoundLHS) || !isKnownPositive(Denominator)) in isImpliedViaOperations()
13091 const SCEV *Numerator = in howManyLessThans() local
13093 BECount = getUDivExpr(Numerator, Stride); in howManyLessThans()
H A DValueTracking.cpp6860 const APInt *Numerator, *Denominator; in isSafeToSpeculativelyExecuteWithOpcode() local
6871 if (match(Inst->getOperand(0), m_APInt(Numerator))) in isSafeToSpeculativelyExecuteWithOpcode()
6872 return !Numerator->isMinSignedValue(); in isSafeToSpeculativelyExecuteWithOpcode()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DScalarEvolutionDivision.h30 static void divide(ScalarEvolution &SE, const SCEV *Numerator,
36 void visitPtrToIntExpr(const SCEVPtrToIntExpr *Numerator) {} in visitPtrToIntExpr()
37 void visitTruncateExpr(const SCEVTruncateExpr *Numerator) {} in visitTruncateExpr()
38 void visitZeroExtendExpr(const SCEVZeroExtendExpr *Numerator) {} in visitZeroExtendExpr()
39 void visitSignExtendExpr(const SCEVSignExtendExpr *Numerator) {} in visitSignExtendExpr()
40 void visitUDivExpr(const SCEVUDivExpr *Numerator) {} in visitUDivExpr()
41 void visitSMaxExpr(const SCEVSMaxExpr *Numerator) {} in visitSMaxExpr()
42 void visitUMaxExpr(const SCEVUMaxExpr *Numerator) {} in visitUMaxExpr()
43 void visitSMinExpr(const SCEVSMinExpr *Numerator) {} in visitSMinExpr()
44 void visitUMinExpr(const SCEVUMinExpr *Numerator) {} in visitUMinExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DBranchProbability.cpp40 BranchProbability::BranchProbability(uint32_t Numerator, uint32_t Denominator) { in BranchProbability() argument
42 assert(Numerator <= Denominator && "Probability cannot be bigger than 1!"); in BranchProbability()
44 N = Numerator; in BranchProbability()
47 (Numerator * static_cast<uint64_t>(D) + Denominator / 2) / Denominator; in BranchProbability()
53 BranchProbability::getBranchProbability(uint64_t Numerator, in getBranchProbability() argument
55 assert(Numerator <= Denominator && "Probability cannot be bigger than 1!"); in getBranchProbability()
62 return BranchProbability(Numerator >> Scale, Denominator); in getBranchProbability()
/freebsd/contrib/llvm-project/llvm/include/llvm/MCA/
H A DSupport.h52 unsigned Numerator, Denominator; variable
55 ReleaseAtCycles() : Numerator(0), Denominator(1) {} in ResourceCycles()
57 : Numerator(Cycles), Denominator(ResourceUnits) {} in Numerator() function
61 return (Denominator == 1) ? Numerator : (double)Numerator / Denominator;
64 unsigned getNumerator() const { return Numerator; } in getNumerator()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DMathExtras.h403 constexpr T divideCeil(U Numerator, V Denominator) { in divideCeil() argument
405 T Bias = (Numerator != 0); in divideCeil()
406 return (Numerator - Bias) / Denominator + Bias; in divideCeil()
410 constexpr uint64_t divideCeil(uint64_t Numerator, uint64_t Denominator) { in divideCeil() argument
412 uint64_t Bias = (Numerator != 0); in divideCeil()
413 return (Numerator - Bias) / Denominator + Bias; in divideCeil()
419 constexpr bool divideSignedWouldOverflow(U Numerator, V Denominator) { in divideSignedWouldOverflow() argument
420 return Numerator == std::numeric_limits<U>::min() && Denominator == -1; in divideSignedWouldOverflow()
426 constexpr T divideCeilSigned(U Numerator, V Denominator) { in divideCeilSigned() argument
428 assert(!divideSignedWouldOverflow(Numerator, Denominator) && in divideCeilSigned()
[all …]
H A DBranchProbability.h44 BranchProbability(uint32_t Numerator, uint32_t Denominator);
56 static BranchProbability getBranchProbability(uint64_t Numerator,
/freebsd/contrib/llvm-project/llvm/lib/MCA/
H A DSupport.cpp26 Numerator += RHS.Numerator; in operator +=()
32 unsigned LHSNumerator = Numerator * (LCM / Denominator); in operator +=()
33 unsigned RHSNumerator = RHS.Numerator * (LCM / RHS.Denominator); in operator +=()
34 Numerator = LHSNumerator + RHSNumerator; in operator +=()
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dcommon.h119 inline void computePercentage(uptr Numerator, uptr Denominator, uptr *Integral, in computePercentage() argument
128 *Integral = Numerator * Digits / Denominator; in computePercentage()
130 (((Numerator * Digits) % Denominator) * Digits + Denominator / 2) / in computePercentage()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DGCOV.cpp567 static uint32_t branchDiv(uint64_t Numerator, uint64_t Divisor) { in branchDiv() argument
568 if (!Numerator) in branchDiv()
570 if (Numerator == Divisor) in branchDiv()
573 uint8_t Res = (Numerator * 100 + Divisor / 2) / Divisor; in branchDiv()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopPredication.cpp923 uint64_t Numerator = 0, Denominator = 0; in parseLoopLatchICmp()
926 Numerator += Weight; in parseLoopLatchICmp()
932 return BranchProbability::getBranchProbability(Numerator, Denominator); in parseLoopLatchICmp()
1005 uint64_t Numerator = 0, Denominator = 0; isLoopProfitableToPredicate() local
/freebsd/sys/contrib/device-tree/Bindings/net/
H A Dcpsw.txt39 - cpts_clock_mult : Numerator to convert input clock ticks into nanoseconds
H A Dkeystone-netcp.txt116 -- cpts_clock_mult: (optional) Numerator to convert input clock ticks
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstrInfo.td248 // src1 = Denominator, src2 = Numerator).
254 // Denominator, src2 = Numerator).
H A DAMDGPUAsmPrinter.cpp1008 auto DivideCeil = [&Ctx](const MCExpr *Numerator, const MCExpr *Denominator) { in getSIProgramInfo() argument
1010 AMDGPUMCExpr::createAlignTo(Numerator, Denominator, Ctx); in getSIProgramInfo()
H A DSIISelLowering.cpp8608 SDValue Numerator = Op.getOperand(1); in LowerINTRINSIC_WO_CHAIN() local
8616 SDValue Src0 = Param->isAllOnes() ? Numerator : Denominator; in LowerINTRINSIC_WO_CHAIN()
8619 Denominator, Numerator); in LowerINTRINSIC_WO_CHAIN()
/freebsd/sys/contrib/device-tree/Bindings/clock/
H A Dsilabs,si5341.txt52 - silabs,pll-m-num, silabs,pll-m-den: Numerator and denominator for PLL
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSelectOptimize.cpp947 static InstructionCost divideNearest(InstructionCost Numerator, in divideNearest() argument
949 return (Numerator + (Denominator / 2)) / Denominator; in divideNearest()
/freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp1059 uint64_t Numerator = Threshold * MultiplyFactor; in updateInstrProfileEntry() local
1067 if (Numerator <= Denominator) in updateInstrProfileEntry()
1069 ProfRecord->scale(Numerator, Denominator, [&](instrprof_error E) { in updateInstrProfileEntry()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIntrinsicsAMDGPU.td337 // 1st parameter: Numerator
339 // 3rd parameter: Select quotient. Must equal Numerator or Denominator.
340 // (0 = Denominator, 1 = Numerator).
/freebsd/contrib/file/magic/Magdir/
H A Dimages158 # Numerator
163 # Numerator
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp12242 uint32_t Numerator = CaseProb.getNumerator(); in scaleCaseProbality() local
12244 return BranchProbability(Numerator, std::max(Numerator, Denominator)); in scaleCaseProbality()