Home
last modified time | relevance | path

Searched refs:PGO (Results 1 – 13 of 13) sorted by relevance

/external/clang/lib/CodeGen/
DCodeGenPGO.h141 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();
[all …]
DCodeGenPGO.cpp239 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()
[all …]
DCGStmt.cpp47 PGO.setCurrentStmt(S); in EmitStmt()
729 PGO.createLoopWeights(S.getCond(), Cnt)); in EmitWhileStmt()
813 PGO.createLoopWeights(S.getCond(), Cnt)); in EmitDoStmt()
885 PGO.createLoopWeights(S.getCond(), Cnt)); in EmitForStmt()
964 BoolCondVal, ForBody, ExitBlock, PGO.createLoopWeights(S.getCond(), Cnt)); in EmitCXXForRangeStmt()
1199 Weights = PGO.createBranchWeights(ThisCount, DefaultCount); in EmitCaseStmtRange()
1572 if (PGO.haveRegionCounts()) { in EmitSwitchStmt()
1638 PGO.createBranchWeights(*SwitchWeights)); in EmitSwitchStmt()
2226 PGO.assignRegionCounters(CD, F); in GenerateCapturedStmtFunction()
DCodeGenFunction.cpp49 DidCallStackSave(false), IndirectBranch(nullptr), PGO(cgm), in CodeGenFunction()
869 PGO.checkGlobalDecl(GD); in GenerateCode()
870 PGO.assignRegionCounters(GD.getDecl(), CurFn); in GenerateCode()
1132 uint64_t FalseCount = PGO.getCurrentRegionCount() - TrueCount; in EmitBranchOnBoolExpr()
1190 uint64_t CurrentCount = std::max(PGO.getCurrentRegionCount(), TrueCount); in EmitBranchOnBoolExpr()
1191 llvm::MDNode *Weights = PGO.createBranchWeights(TrueCount, in EmitBranchOnBoolExpr()
DCodeGenModule.cpp3456 CodeGenPGO PGO(*this); in EmitDeferredUnusedCoverageMappings() local
3458 PGO.emitEmptyCounterMapping(D, getMangledName(GD), in EmitDeferredUnusedCoverageMappings()
3463 CodeGenPGO PGO(*this); in EmitDeferredUnusedCoverageMappings() local
3465 PGO.emitEmptyCounterMapping(D, getMangledName(GD), in EmitDeferredUnusedCoverageMappings()
3470 CodeGenPGO PGO(*this); in EmitDeferredUnusedCoverageMappings() local
3472 PGO.emitEmptyCounterMapping(D, getMangledName(GD), in EmitDeferredUnusedCoverageMappings()
DCGObjC.cpp498 PGO.assignRegionCounters(OMD, CurFn); in GenerateObjCMethod()
1506 uint64_t EntryCount = PGO.getCurrentRegionCount(); in EmitObjCForCollectionStmt()
1510 PGO.createBranchWeights(EntryCount, Cnt.getCount())); in EmitObjCForCollectionStmt()
1653 PGO.createBranchWeights(Cnt.getCount(), EntryCount)); in EmitObjCForCollectionStmt()
DCodeGenFunction.h891 CodeGenPGO PGO; variable
897 return RegionCounter(PGO, S); in getPGORegionCounter()
DCGBlocks.cpp1223 PGO.assignRegionCounters(blockDecl, fn); in GenerateBlockFunction()
DCGCall.cpp2951 PGO.setCurrentRegionUnreachable(); in EmitNoreturnRuntimeCallOrInvoke()
DCGExpr.cpp91 PGO.setCurrentStmt(E); in EvaluateExprAsBool()
/external/llvm/docs/CommandGuide/
Dllvm-profdata.rst37 generated by PGO instrumentation and merges them together into a single
/external/v8/
DSConstruct293 'LINKFLAGS': ['/LTCG:PGO']
643 'LINKFLAGS': ['/LTCG:PGO']
804 'LINKFLAGS': ['/LTCG:PGO']
912 'LINKFLAGS': ['/LTCG:PGO']
/external/clang/include/clang/Frontend/
DCodeGenOptions.def96 ///< execution counts to use with PGO.