Home
last modified time | relevance | path

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

/external/clang/lib/CodeGen/
DCodeGenPGO.h150 CodeGenPGO *PGO; variable
157 RegionCounter(CodeGenPGO &PGO, unsigned CounterIndex) in RegionCounter() argument
158 : PGO(&PGO), Counter(CounterIndex), Count(PGO.getRegionCount(Counter)), in RegionCounter()
159 ParentCount(PGO.getCurrentRegionCount()), Adjust(0) {} in RegionCounter()
162 RegionCounter(CodeGenPGO &PGO, const Stmt *S) in RegionCounter() argument
163 : PGO(&PGO), Counter(PGO.getRegionCounter(S)), in RegionCounter()
164 Count(PGO.getRegionCount(Counter)), in RegionCounter()
165 ParentCount(PGO.getCurrentRegionCount()), Adjust(0) {} in RegionCounter()
192 PGO->emitCounterIncrement(Builder, Counter);
197 RegionCount += PGO->getCurrentRegionCount();
[all …]
DCodeGenPGO.cpp360 CodeGenPGO &PGO; member
378 CodeGenPGO &PGO) in ComputeRegionCounts()
379 : PGO(PGO), RecordNextStmtCount(false), CountMap(CountMap) {} in ComputeRegionCounts()
383 CountMap[S] = PGO.getCurrentRegionCount(); in RecordStmtCount()
398 RegionCounter Cnt(PGO, D->getBody()); in VisitFunctionDecl()
400 CountMap[D->getBody()] = PGO.getCurrentRegionCount(); in VisitFunctionDecl()
411 RegionCounter Cnt(PGO, D->getBody()); in VisitCapturedDecl()
413 CountMap[D->getBody()] = PGO.getCurrentRegionCount(); in VisitCapturedDecl()
419 RegionCounter Cnt(PGO, D->getBody()); in VisitObjCMethodDecl()
421 CountMap[D->getBody()] = PGO.getCurrentRegionCount(); in VisitObjCMethodDecl()
[all …]
DCGStmt.cpp47 PGO.setCurrentStmt(S); in EmitStmt()
679 PGO.createLoopWeights(S.getCond(), Cnt)); in EmitWhileStmt()
762 PGO.createLoopWeights(S.getCond(), Cnt)); in EmitDoStmt()
838 PGO.createLoopWeights(S.getCond(), Cnt)); in EmitForStmt()
922 BoolCondVal, ForBody, ExitBlock, PGO.createLoopWeights(S.getCond(), Cnt)); in EmitCXXForRangeStmt()
1153 Weights = PGO.createBranchWeights(ThisCount, DefaultCount); in EmitCaseStmtRange()
1526 if (PGO.haveRegionCounts()) { in EmitSwitchStmt()
1592 PGO.createBranchWeights(*SwitchWeights)); in EmitSwitchStmt()
2154 PGO.assignRegionCounters(CD, F); in GenerateCapturedStmtFunction()
2157 PGO.emitInstrumentationData(); in GenerateCapturedStmtFunction()
[all …]
DCodeGenFunction.cpp46 PGO(cgm), SwitchInsn(nullptr), SwitchWeights(nullptr), in CodeGenFunction()
803 PGO.assignRegionCounters(GD.getDecl(), CurFn); in GenerateCode()
864 PGO.emitInstrumentationData(); in GenerateCode()
865 PGO.destroyRegionCounters(); in GenerateCode()
1065 uint64_t FalseCount = PGO.getCurrentRegionCount() - TrueCount; in EmitBranchOnBoolExpr()
1120 uint64_t CurrentCount = std::max(PGO.getCurrentRegionCount(), TrueCount); in EmitBranchOnBoolExpr()
1121 llvm::MDNode *Weights = PGO.createBranchWeights(TrueCount, in EmitBranchOnBoolExpr()
DCGObjC.cpp505 PGO.assignRegionCounters(OMD, CurFn); in GenerateObjCMethod()
511 PGO.emitInstrumentationData(); in GenerateObjCMethod()
512 PGO.destroyRegionCounters(); in GenerateObjCMethod()
1515 uint64_t EntryCount = PGO.getCurrentRegionCount(); in EmitObjCForCollectionStmt()
1519 PGO.createBranchWeights(EntryCount, Cnt.getCount())); in EmitObjCForCollectionStmt()
1662 PGO.createBranchWeights(Cnt.getCount(), EntryCount)); in EmitObjCForCollectionStmt()
DCGBlocks.cpp1198 PGO.assignRegionCounters(blockDecl, fn); in GenerateBlockFunction()
1202 PGO.emitInstrumentationData(); in GenerateBlockFunction()
1203 PGO.destroyRegionCounters(); in GenerateBlockFunction()
DCodeGenFunction.h837 CodeGenPGO PGO; variable
843 return RegionCounter(PGO, S); in getPGORegionCounter()
DCGCall.cpp2462 PGO.setCurrentRegionUnreachable(); in EmitNoreturnRuntimeCallOrInvoke()
DCGExpr.cpp89 PGO.setCurrentStmt(E); in EvaluateExprAsBool()
/external/chromium_org/tools/gyp/test/win/linker-flags/
Dpgo.gyp10 # In the PGO (Profile-Guided Optimization) build flow, we need to build the
17 # 1) PGO (Profile-Guided Optimization) database, and
21 # phase of PGO.
40 # to the linker, because it causes LNK1268 error in PGO biuld.
123 # output to determine if PGO (Profile-Guided Optimization) is available on
/external/chromium_org/build/internal/
DREADME.chromium18 …t. Includes release_defaults.vsprops. Enables Profile Guided Optimization (PGO) instrumentation (f…
21 …e. Includes release_defaults.vsprops. Enables Profile Guided Optimization (PGO) optimization (seco…
/external/llvm/docs/CommandGuide/
Dllvm-profdata.rst13 generated by PGO instrumentation and generates a file with merged data.
/external/clang/include/clang/Frontend/
DCodeGenOptions.def90 ///< execution counts to use with PGO.
/external/chromium_org/build/config/compiler/
DBUILD.gn769 # Disable Warning 4702 ("Unreachable code") for the WPO/PGO builds.
772 # of C4702 for PGO builds is likely very small.
/external/chromium_org/build/
Dcommon.gypi410 # This is known as PGO (profile guided optimization).
1224 # Experimental setting to optimize Chrome's DLLs with PGO.
5025 # Disable Warning 4702 ("Unreachable code") for the WPO/PGO
5029 # PGO builds is likely very small.