• Home
  • Raw
  • Download

Lines Matching refs:PGO

239   CodeGenPGO &PGO;  member
257 CodeGenPGO &PGO) in ComputeRegionCounts()
258 : PGO(PGO), RecordNextStmtCount(false), CountMap(CountMap) {} in ComputeRegionCounts()
262 CountMap[S] = PGO.getCurrentRegionCount(); in RecordStmtCount()
277 RegionCounter Cnt(PGO, D->getBody()); in VisitFunctionDecl()
279 CountMap[D->getBody()] = PGO.getCurrentRegionCount(); in VisitFunctionDecl()
290 RegionCounter Cnt(PGO, D->getBody()); in VisitCapturedDecl()
292 CountMap[D->getBody()] = PGO.getCurrentRegionCount(); in VisitCapturedDecl()
298 RegionCounter Cnt(PGO, D->getBody()); in VisitObjCMethodDecl()
300 CountMap[D->getBody()] = PGO.getCurrentRegionCount(); in VisitObjCMethodDecl()
306 RegionCounter Cnt(PGO, D->getBody()); in VisitBlockDecl()
308 CountMap[D->getBody()] = PGO.getCurrentRegionCount(); in VisitBlockDecl()
316 PGO.setCurrentRegionUnreachable(); in VisitReturnStmt()
322 PGO.setCurrentRegionUnreachable(); in VisitGotoStmt()
329 RegionCounter Cnt(PGO, S); in VisitLabelStmt()
331 CountMap[S] = PGO.getCurrentRegionCount(); in VisitLabelStmt()
338 BreakContinueStack.back().BreakCount += PGO.getCurrentRegionCount(); in VisitBreakStmt()
339 PGO.setCurrentRegionUnreachable(); in VisitBreakStmt()
346 BreakContinueStack.back().ContinueCount += PGO.getCurrentRegionCount(); in VisitContinueStmt()
347 PGO.setCurrentRegionUnreachable(); in VisitContinueStmt()
354 RegionCounter Cnt(PGO, S); in VisitWhileStmt()
359 CountMap[S->getBody()] = PGO.getCurrentRegionCount(); in VisitWhileStmt()
370 CountMap[S->getCond()] = PGO.getCurrentRegionCount(); in VisitWhileStmt()
380 RegionCounter Cnt(PGO, S); in VisitDoStmt()
383 CountMap[S->getBody()] = PGO.getCurrentRegionCount(); in VisitDoStmt()
395 CountMap[S->getCond()] = PGO.getCurrentRegionCount(); in VisitDoStmt()
407 RegionCounter Cnt(PGO, S); in VisitForStmt()
412 CountMap[S->getBody()] = PGO.getCurrentRegionCount(); in VisitForStmt()
419 Cnt.setCurrentRegionCount(PGO.getCurrentRegionCount() + in VisitForStmt()
421 CountMap[S->getInc()] = PGO.getCurrentRegionCount(); in VisitForStmt()
432 CountMap[S->getCond()] = PGO.getCurrentRegionCount(); in VisitForStmt()
445 RegionCounter Cnt(PGO, S); in VisitCXXForRangeStmt()
450 CountMap[S->getLoopVarStmt()] = PGO.getCurrentRegionCount(); in VisitCXXForRangeStmt()
457 Cnt.setCurrentRegionCount(PGO.getCurrentRegionCount() + in VisitCXXForRangeStmt()
459 CountMap[S->getInc()] = PGO.getCurrentRegionCount(); in VisitCXXForRangeStmt()
468 CountMap[S->getCond()] = PGO.getCurrentRegionCount(); in VisitCXXForRangeStmt()
479 RegionCounter Cnt(PGO, S); in VisitObjCForCollectionStmt()
482 CountMap[S->getBody()] = PGO.getCurrentRegionCount(); in VisitObjCForCollectionStmt()
493 PGO.setCurrentRegionUnreachable(); in VisitSwitchStmt()
501 RegionCounter ExitCnt(PGO, S); in VisitSwitchStmt()
511 RegionCounter Cnt(PGO, S); in VisitCaseStmt()
522 RegionCounter Cnt(PGO, S); in VisitDefaultStmt()
533 RegionCounter Cnt(PGO, S); in VisitIfStmt()
537 CountMap[S->getThen()] = PGO.getCurrentRegionCount(); in VisitIfStmt()
543 CountMap[S->getElse()] = PGO.getCurrentRegionCount(); in VisitIfStmt()
557 RegionCounter Cnt(PGO, S); in VisitCXXTryStmt()
565 RegionCounter Cnt(PGO, S); in VisitCXXCatchStmt()
567 CountMap[S] = PGO.getCurrentRegionCount(); in VisitCXXCatchStmt()
575 RegionCounter Cnt(PGO, E); in VisitAbstractConditionalOperator()
579 CountMap[E->getTrueExpr()] = PGO.getCurrentRegionCount(); in VisitAbstractConditionalOperator()
584 CountMap[E->getFalseExpr()] = PGO.getCurrentRegionCount(); in VisitAbstractConditionalOperator()
595 RegionCounter Cnt(PGO, E); in VisitBinLAnd()
598 CountMap[E->getRHS()] = PGO.getCurrentRegionCount(); in VisitBinLAnd()
608 RegionCounter Cnt(PGO, E); in VisitBinLOr()
611 CountMap[E->getRHS()] = PGO.getCurrentRegionCount(); in VisitBinLOr()