Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DSyntheticCountsPropagation.cpp43 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()
121 Scaled64 EntryFreq(BFI.getEntryFreq(), 0); in run()
122 Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0); in run()
125 return Optional<Scaled64>(BBCount); in run()
131 &CG, GetCallSiteProfCount, [&](const CallGraphNode *N, Scaled64 New) { in run()
/external/llvm-project/llvm/lib/Transforms/IPO/
DSyntheticCountsPropagation.cpp42 using Scaled64 = ScaledNumber<uint64_t>; typedef
100 DenseMap<Function *, Scaled64> Counts; in run()
103 M, [&](Function *F, uint64_t Count) { Counts[F] = Scaled64(Count, 0); }); in run()
109 Optional<Scaled64> Res = None; in run()
119 Scaled64 EntryFreq(BFI.getEntryFreq(), 0); in run()
120 Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0); in run()
123 return Optional<Scaled64>(BBCount); in run()
129 &CG, GetCallSiteProfCount, [&](const CallGraphNode *N, Scaled64 New) { in run()
/external/llvm-project/llvm/lib/LTO/
DSummaryBasedOptimizations.cpp49 using Scaled64 = ScaledNumber<uint64_t>; in computeSyntheticCounts() typedef
52 return Scaled64(Edge.second.RelBlockFreq, -CalleeInfo::ScaleShift); in computeSyntheticCounts()
63 auto AddToEntryCount = [](ValueInfo V, Scaled64 New) { in computeSyntheticCounts()
76 Scaled64 EC(GetEntryCount(V), 0); in computeSyntheticCounts()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/
DSummaryBasedOptimizations.cpp49 using Scaled64 = ScaledNumber<uint64_t>; in computeSyntheticCounts() typedef
52 return Scaled64(Edge.second.RelBlockFreq, -CalleeInfo::ScaleShift); in computeSyntheticCounts()
63 auto AddToEntryCount = [](ValueInfo V, Scaled64 New) { in computeSyntheticCounts()
76 Scaled64 EC(GetEntryCount(V), 0); in computeSyntheticCounts()
/external/llvm-project/llvm/include/llvm/Analysis/
DSyntheticCountsUtils.h29 using Scaled64 = ScaledNumber<uint64_t>;
37 using GetProfCountTy = function_ref<Optional<Scaled64>(NodeRef, EdgeRef)>;
38 using AddCountTy = function_ref<void(NodeRef, Scaled64)>;
DBlockFrequencyInfoImpl.h176 using Scaled64 = ScaledNumber<uint64_t>;
210 Scaled64 Scaled;
230 Scaled64 Scale;
523 Scaled64 getFloatingBlockFreq(const BlockNode &Node) const;
1012 Scaled64 getFloatingBlockFreq(const BlockT *BB) const {
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DSyntheticCountsUtils.h32 using Scaled64 = ScaledNumber<uint64_t>;
40 using GetProfCountTy = function_ref<Optional<Scaled64>(NodeRef, EdgeRef)>;
41 using AddCountTy = function_ref<void(NodeRef, Scaled64)>;
DBlockFrequencyInfoImpl.h172 using Scaled64 = ScaledNumber<uint64_t>;
206 Scaled64 Scaled;
226 Scaled64 Scale;
519 Scaled64 getFloatingBlockFreq(const BlockNode &Node) const;
992 Scaled64 getFloatingBlockFreq(const BlockT *BB) const {
/external/llvm/lib/Analysis/
DBlockFrequencyInfoImpl.cpp51 typedef BlockFrequencyInfoImplBase::Scaled64 Scaled64; typedef
354 const Scaled64 InfiniteLoopScale(1, 12); in computeLoopScale()
436 const Scaled64 &Min, const Scaled64 &Max) { in convertFloatingToInteger()
445 Scaled64 ScalingFactor; in convertFloatingToInteger()
455 ScalingFactor = Scaled64(1, MaxBits) / Max; in convertFloatingToInteger()
462 Scaled64 Scaled = BFI.Freqs[Index].Scaled * ScalingFactor; in convertFloatingToInteger()
487 Scaled64 &F = Working.isAPackage() ? Working.getPackagedLoop()->Scale in unwrapLoop()
489 Scaled64 New = Loop.Scale * F; in unwrapLoop()
508 auto Min = Scaled64::getLargest(); in finalizeMetrics()
509 auto Max = Scaled64::getZero(); in finalizeMetrics()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DBlockFrequencyInfoImpl.cpp71 using Scaled64 = BlockFrequencyInfoImplBase::Scaled64; typedef
378 const Scaled64 InfiniteLoopScale(1, 12); in computeLoopScale()
461 const Scaled64 &Min, const Scaled64 &Max) { in convertFloatingToInteger()
470 Scaled64 ScalingFactor; in convertFloatingToInteger()
480 ScalingFactor = Scaled64(1, MaxBits) / Max; in convertFloatingToInteger()
487 Scaled64 Scaled = BFI.Freqs[Index].Scaled * ScalingFactor; in convertFloatingToInteger()
512 Scaled64 &F = Working.isAPackage() ? Working.getPackagedLoop()->Scale in unwrapLoop()
514 Scaled64 New = Loop.Scale * F; in unwrapLoop()
533 auto Min = Scaled64::getLargest(); in finalizeMetrics()
534 auto Max = Scaled64::getZero(); in finalizeMetrics()
[all …]
DSyntheticCountsUtils.cpp55 DenseMap<NodeRef, Scaled64> AdditionalCounts; in propagateFromSCC()
/external/llvm-project/llvm/lib/Analysis/
DBlockFrequencyInfoImpl.cpp77 using Scaled64 = BlockFrequencyInfoImplBase::Scaled64; typedef
384 const Scaled64 InfiniteLoopScale(1, 12); in computeLoopScale()
467 const Scaled64 &Min, const Scaled64 &Max) { in convertFloatingToInteger()
476 Scaled64 ScalingFactor; in convertFloatingToInteger()
486 ScalingFactor = Scaled64(1, MaxBits) / Max; in convertFloatingToInteger()
493 Scaled64 Scaled = BFI.Freqs[Index].Scaled * ScalingFactor; in convertFloatingToInteger()
518 Scaled64 &F = Working.isAPackage() ? Working.getPackagedLoop()->Scale in unwrapLoop()
520 Scaled64 New = Loop.Scale * F; in unwrapLoop()
539 auto Min = Scaled64::getLargest(); in finalizeMetrics()
540 auto Max = Scaled64::getZero(); in finalizeMetrics()
[all …]
DSyntheticCountsUtils.cpp54 DenseMap<NodeRef, Scaled64> AdditionalCounts; in propagateFromSCC()
/external/llvm/include/llvm/Analysis/
DBlockFrequencyInfoImpl.h162 typedef ScaledNumber<uint64_t> Scaled64;
192 Scaled64 Scaled;
211 Scaled64 Scale;
480 Scaled64 getFloatingBlockFreq(const BlockNode &Node) const;
929 Scaled64 getFloatingBlockFreq(const BlockT *BB) const {
/external/llvm-project/llvm/include/llvm/IR/
DModuleSummaryIndex.h93 using Scaled64 = ScaledNumber<uint64_t>; in updateRelBlockFreq() local
94 Scaled64 Temp(BlockFreq, ScaleShift); in updateRelBlockFreq()
95 Temp /= Scaled64::get(EntryFreq); in updateRelBlockFreq()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DModuleSummaryIndex.h92 using Scaled64 = ScaledNumber<uint64_t>; in updateRelBlockFreq() local
93 Scaled64 Temp(BlockFreq, ScaleShift); in updateRelBlockFreq()
94 Temp /= Scaled64::get(EntryFreq); in updateRelBlockFreq()