Home
last modified time | relevance | path

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

/external/clang/lib/CodeGen/
DCodeGenPGO.cpp34 llvm::IndexedInstrProfReader *PGOReader = CGM.getPGOReader(); in setFuncName() local
37 PGOReader ? PGOReader->getVersion() : llvm::IndexedInstrProf::Version); in setFuncName()
617 llvm::IndexedInstrProfReader *PGOReader = CGM.getPGOReader(); in assignRegionCounters() local
618 if (!InstrumentRegions && !PGOReader) in assignRegionCounters()
638 if (PGOReader) { in assignRegionCounters()
640 loadRegionCounts(PGOReader, SM.isInMainFile(D->getLocation())); in assignRegionCounters()
642 applyFunctionAttributes(PGOReader, Fn); in assignRegionCounters()
727 CodeGenPGO::applyFunctionAttributes(llvm::IndexedInstrProfReader *PGOReader, in applyFunctionAttributes() argument
782 llvm::IndexedInstrProfReader *PGOReader = CGM.getPGOReader(); in valueProfile() local
783 if (PGOReader && haveRegionCounts()) { in valueProfile()
[all …]
DCodeGenPGO.h102 void applyFunctionAttributes(llvm::IndexedInstrProfReader *PGOReader,
104 void loadRegionCounts(llvm::IndexedInstrProfReader *PGOReader,
DCodeGenModule.h295 std::unique_ptr<llvm::IndexedInstrProfReader> PGOReader; variable
540 llvm::IndexedInstrProfReader *getPGOReader() const { return PGOReader.get(); } in getPGOReader()
DCodeGenModule.cpp152 PGOReader = std::move(ReaderOrErr.get()); in CodeGenModule()
395 if (PGOReader) { in Release()
396 getModule().setProfileSummary(PGOReader->getSummary().getMD(VMContext)); in Release()
/external/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp465 bool readCounters(IndexedInstrProfReader *PGOReader);
587 bool PGOUseFunc::readCounters(IndexedInstrProfReader *PGOReader) { in readCounters() argument
590 PGOReader->getInstrProfRecord(FuncInfo.FuncName, FuncInfo.FunctionHash); in readCounters()
630 ProgramMaxCount = PGOReader->getMaximumFunctionCount(); in readCounters()
866 std::unique_ptr<IndexedInstrProfReader> PGOReader = in annotateAllFunctions() local
868 if (!PGOReader) { in annotateAllFunctions()
874 if (!PGOReader->isIRLevelProfile()) { in annotateAllFunctions()
888 if (!Func.readCounters(PGOReader.get())) in annotateAllFunctions()
899 M.setProfileSummary(PGOReader->getSummary().getMD(M.getContext())); in annotateAllFunctions()
/external/clang/lib/Frontend/
DCompilerInvocation.cpp412 std::unique_ptr<llvm::IndexedInstrProfReader> PGOReader = in setPGOUseInstrumentor() local
414 if (PGOReader->isIRLevelProfile()) in setPGOUseInstrumentor()