/external/clang/lib/CodeGen/ |
D | CodeGenPGO.h | 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(); [all …]
|
D | CodeGenPGO.cpp | 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() [all …]
|
D | CGStmt.cpp | 47 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()
|
D | CodeGenFunction.cpp | 49 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()
|
D | CodeGenModule.cpp | 3456 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()
|
D | CGObjC.cpp | 498 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()
|
D | CodeGenFunction.h | 891 CodeGenPGO PGO; variable 897 return RegionCounter(PGO, S); in getPGORegionCounter()
|
D | CGBlocks.cpp | 1223 PGO.assignRegionCounters(blockDecl, fn); in GenerateBlockFunction()
|
D | CGCall.cpp | 2951 PGO.setCurrentRegionUnreachable(); in EmitNoreturnRuntimeCallOrInvoke()
|
D | CGExpr.cpp | 91 PGO.setCurrentStmt(E); in EvaluateExprAsBool()
|
/external/llvm/docs/CommandGuide/ |
D | llvm-profdata.rst | 37 generated by PGO instrumentation and merges them together into a single
|
/external/v8/ |
D | SConstruct | 293 'LINKFLAGS': ['/LTCG:PGO'] 643 'LINKFLAGS': ['/LTCG:PGO'] 804 'LINKFLAGS': ['/LTCG:PGO'] 912 'LINKFLAGS': ['/LTCG:PGO']
|
/external/clang/include/clang/Frontend/ |
D | CodeGenOptions.def | 96 ///< execution counts to use with PGO.
|