Lines Matching +full:fractional +full:- +full:n
1 //===- MachineBlockFrequencyInfo.cpp - MBB Frequency Analysis -------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
30 #define DEBUG_TYPE "machine-block-freq"
34 "view-machine-block-freq-propagation-dags", cl::Hidden,
40 "fractional block frequency representation."),
43 "integer fractional block frequency representation."),
49 "view-block-layout-with-bfi", cl::Hidden,
56 "fractional block frequency representation."),
59 "integer fractional block frequency representation."),
65 // Defined in Analysis/BlockFrequencyInfo.cpp: -view-bfi-func-name=
69 // Defined in Analysis/BlockFrequencyInfo.cpp: -view-hot-freq-perc=
73 "print-machine-bfi", cl::init(false), cl::Hidden,
96 return &G->getFunction()->front(); in getEntryNode()
99 static ChildIteratorType child_begin(const NodeRef N) { in child_begin()
100 return N->succ_begin(); in child_begin()
103 static ChildIteratorType child_end(const NodeRef N) { return N->succ_end(); } in child_end()
106 return nodes_iterator(G->getFunction()->begin()); in nodes_begin()
110 return nodes_iterator(G->getFunction()->end()); in nodes_end()
129 int layout_order = -1; in getNodeLabel()
132 const MachineFunction *F = Node->getParent(); in getNodeLabel()
139 for (auto MBI = F->begin(); MBI != F->end(); ++MBI, ++O) { in getNodeLabel()
158 Node, EI, MBFI, MBFI->getMBPI(), ViewHotFreqPercent); in getEdgeAttributes()
179 << '\n'; in run()
236 MBFI->calculate(F, MBPI, MLI); in calculate()
243 MBFI->print(dbgs()); in calculate()
256 void MachineBlockFrequencyInfo::print(raw_ostream &OS) { MBFI->print(OS); } in print()
269 return MBFI ? MBFI->getBlockFreq(MBB) : BlockFrequency(0); in getBlockFreq()
277 const Function &F = MBFI->getFunction()->getFunction(); in getBlockProfileCount()
278 return MBFI->getBlockProfileCount(F, MBB); in getBlockProfileCount()
286 const Function &F = MBFI->getFunction()->getFunction(); in getProfileCountFromFreq()
287 return MBFI->getProfileCountFromFreq(F, Freq); in getProfileCountFromFreq()
293 return MBFI->isIrrLoopHeader(MBB); in isIrrLoopHeader()
301 auto NewSuccFreq = MBFI->getBlockFreq(&NewPredecessor) * in onEdgeSplit()
304 MBFI->setBlockFreq(&NewSuccessor, NewSuccFreq); in onEdgeSplit()
308 return MBFI ? MBFI->getFunction() : nullptr; in getFunction()
312 return MBFI ? &MBFI->getBPI() : nullptr; in getMBPI()
316 return MBFI ? MBFI->getEntryFreq() : BlockFrequency(0); in getEntryFreq()