Searched defs:PGO (Results 1 - 3 of 3) sorted by relevance

/external/clang/lib/CodeGen/
H A DCodeGenPGO.h1 //===--- CodeGenPGO.h - PGO Instrumentation for LLVM CodeGen ----*- C++ -*-===//
29 /// Per-function PGO state. This class should generally not be used directly,
51 /// Whether or not we have PGO region data for the current function. This is
97 /// Calculate branch weights appropriate for PGO data
102 /// Assign counters to regions and configure them for PGO of a given
104 /// generates global variables or associates PGO data with each of the
148 /// which clients manage PGO counters and their values.
150 CodeGenPGO *PGO; member in class:clang::CodeGen::RegionCounter
157 RegionCounter(CodeGenPGO &PGO, unsigned CounterIndex) argument
158 : PGO(
162 RegionCounter(CodeGenPGO &PGO, const Stmt *S) argument
[all...]
H A DCodeGenPGO.cpp1 //===--- CodeGenPGO.cpp - PGO Instrumentation for LLVM CodeGen --*- C++ -*-===//
32 // naming convention. Do not include that '1' in the PGO profile name.
205 /// \brief Stable hasher for PGO region counters.
266 /// A RecursiveASTVisitor that fills a map of statements to PGO counters.
359 /// PGO state.
360 CodeGenPGO &PGO; member in struct:__anon17861::ComputeRegionCounts
378 CodeGenPGO &PGO)
379 : PGO(PGO), RecordNextStmtCount(false), CountMap(CountMap) {}
383 CountMap[S] = PGO
377 ComputeRegionCounts(llvm::DenseMap<const Stmt *, uint64_t> &CountMap, CodeGenPGO &PGO) argument
[all...]
H A DCodeGenFunction.h837 CodeGenPGO PGO; member in class:clang::CodeGen::CodeGenFunction
843 return RegionCounter(PGO, S);
850 /// The branch weights of SwitchInsn when doing instrumentation based PGO.
2497 /// evaluate to true based on PGO data.

Completed in 1319 milliseconds