Lines Matching refs:PGO
141 CodeGenPGO *PGO; variable
148 RegionCounter(CodeGenPGO &PGO, unsigned CounterIndex) in RegionCounter() argument
149 : PGO(&PGO), Counter(CounterIndex), Count(PGO.getRegionCount(Counter)), in RegionCounter()
150 ParentCount(PGO.getCurrentRegionCount()), Adjust(0) {} in RegionCounter()
153 RegionCounter(CodeGenPGO &PGO, const Stmt *S) in RegionCounter() argument
154 : PGO(&PGO), Counter(PGO.getRegionCounter(S)), in RegionCounter()
155 Count(PGO.getRegionCount(Counter)), in RegionCounter()
156 ParentCount(PGO.getCurrentRegionCount()), Adjust(0) {} in RegionCounter()
183 PGO->emitCounterIncrement(Builder, Counter);
188 RegionCount += PGO->getCurrentRegionCount();
189 PGO->setCurrentRegionCount(RegionCount);
196 PGO->setCurrentRegionCount(RegionCount); in beginElseRegion()
202 PGO->setCurrentRegionCount(RegionCount); in setCurrentRegionCount()
210 Adjust += PGO->getCurrentRegionCount() - RegionCount; in adjustForControlFlow()
212 RegionCount = PGO->getCurrentRegionCount(); in adjustForControlFlow()
220 PGO->setCurrentRegionCount(ParentCount + Adjust + LoopAdjust); in applyAdjustmentsToRegion()