Home
last modified time | relevance | path

Searched refs:PGOReader (Results 1 – 5 of 5) sorted by relevance

/external/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp132 std::unique_ptr<IndexedInstrProfReader> PGOReader; member in __anondc7bfcd90111::PGOInstrumentationUse
449 bool readCounters(IndexedInstrProfReader *PGOReader);
512 bool PGOUseFunc::readCounters(IndexedInstrProfReader *PGOReader) { in readCounters() argument
515 PGOReader->getInstrProfRecord(FuncInfo.FuncName, FuncInfo.FunctionHash); in readCounters()
544 ProgramMaxCount = PGOReader->getMaximumFunctionCount(); in readCounters()
682 IndexedInstrProfReader *PGOReader) { in setPGOCountOnFunc() argument
683 if (Func.readCounters(PGOReader)) { in setPGOCountOnFunc()
700 PGOReader = std::move(ReaderOrErr.get()); in runOnModule()
701 if (!PGOReader) { in runOnModule()
715 setPGOCountOnFunc(Func, PGOReader.get()); in runOnModule()
/external/clang/lib/CodeGen/
DCodeGenPGO.cpp31 llvm::IndexedInstrProfReader *PGOReader = CGM.getPGOReader(); in setFuncName() local
34 PGOReader ? PGOReader->getVersion() : llvm::IndexedInstrProf::Version); in setFuncName()
611 llvm::IndexedInstrProfReader *PGOReader = CGM.getPGOReader(); in assignRegionCounters() local
612 if (!InstrumentRegions && !PGOReader) in assignRegionCounters()
632 if (PGOReader) { in assignRegionCounters()
634 loadRegionCounts(PGOReader, SM.isInMainFile(D->getLocation())); in assignRegionCounters()
636 applyFunctionAttributes(PGOReader, Fn); in assignRegionCounters()
719 CodeGenPGO::applyFunctionAttributes(llvm::IndexedInstrProfReader *PGOReader, in applyFunctionAttributes() argument
724 uint64_t MaxFunctionCount = PGOReader->getMaximumFunctionCount(); in applyFunctionAttributes()
753 void CodeGenPGO::loadRegionCounts(llvm::IndexedInstrProfReader *PGOReader, in loadRegionCounts() argument
[all …]
DCodeGenPGO.h95 void applyFunctionAttributes(llvm::IndexedInstrProfReader *PGOReader,
97 void loadRegionCounts(llvm::IndexedInstrProfReader *PGOReader,
DCodeGenModule.h290 std::unique_ptr<llvm::IndexedInstrProfReader> PGOReader; variable
534 llvm::IndexedInstrProfReader *getPGOReader() const { return PGOReader.get(); } in getPGOReader()
DCodeGenModule.cpp93 NoObjCARCExceptionsMetadata(nullptr), PGOReader(nullptr), in CodeGenModule()
159 PGOReader = std::move(ReaderOrErr.get()); in CodeGenModule()
378 if (PGOReader) { in Release()
379 getModule().setMaximumFunctionCount(PGOReader->getMaximumFunctionCount()); in Release()