Home
last modified time | relevance | path

Searched refs:Scaled64 (Results 1 – 7 of 7) sorted by relevance

/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp42 using Scaled64 = ScaledNumber<uint64_t>; typedef
101 DenseMap<Function *, Scaled64> Counts; in run()
104 M, [&](Function *F, uint64_t Count) { Counts[F] = Scaled64(Count, 0); }); in run()
110 Optional<Scaled64> Res = None; in run()
120 Scaled64 EntryFreq(BFI.getEntryFreq(), 0); in run()
121 Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0); in run()
124 return Optional<Scaled64>(BBCount); in run()
130 &CG, GetCallSiteProfCount, [&](const CallGraphNode *N, Scaled64 New) { in run()
/netbsd/external/apache2/llvm/dist/llvm/lib/LTO/
H A DSummaryBasedOptimizations.cpp51 using Scaled64 = ScaledNumber<uint64_t>; in computeSyntheticCounts() typedef
54 return Scaled64(Edge.second.RelBlockFreq, -CalleeInfo::ScaleShift); in computeSyntheticCounts()
65 auto AddToEntryCount = [](ValueInfo V, Scaled64 New) { in computeSyntheticCounts()
78 Scaled64 EC(GetEntryCount(V), 0); in computeSyntheticCounts()
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp79 using Scaled64 = BlockFrequencyInfoImplBase::Scaled64; typedef
386 const Scaled64 InfiniteLoopScale(1, 12); in computeLoopScale()
469 const Scaled64 &Min, const Scaled64 &Max) { in convertFloatingToInteger()
478 Scaled64 ScalingFactor; in convertFloatingToInteger()
522 Scaled64 New = Loop.Scale * F; in unwrapLoop()
541 auto Min = Scaled64::getLargest(); in finalizeMetrics()
542 auto Max = Scaled64::getZero(); in finalizeMetrics()
608 Scaled64
611 return Scaled64::getZero(); in getFloatingBlockFreq()
641 Scaled64 Block(Freq.getFrequency(), 0); in printBlockFreq()
[all …]
H A DSyntheticCountsUtils.cpp54 DenseMap<NodeRef, Scaled64> AdditionalCounts; in propagateFromSCC()
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DSyntheticCountsUtils.h29 using Scaled64 = ScaledNumber<uint64_t>;
37 using GetProfCountTy = function_ref<Optional<Scaled64>(NodeRef, EdgeRef)>;
38 using AddCountTy = function_ref<void(NodeRef, Scaled64)>;
H A DBlockFrequencyInfoImpl.h175 using Scaled64 = ScaledNumber<uint64_t>;
209 Scaled64 Scaled;
229 Scaled64 Scale;
522 Scaled64 getFloatingBlockFreq(const BlockNode &Node) const;
1011 Scaled64 getFloatingBlockFreq(const BlockT *BB) const {
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h93 using Scaled64 = ScaledNumber<uint64_t>; in updateRelBlockFreq() local
94 Scaled64 Temp(BlockFreq, ScaleShift); in updateRelBlockFreq()
95 Temp /= Scaled64::get(EntryFreq); in updateRelBlockFreq()