Home
last modified time | relevance | path

Searched refs:ReaderOrErr (Results 1 – 8 of 8) sorted by relevance

/external/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp137 auto ReaderOrErr = InstrProfReader::create(Input.Filename); in mergeInstrProfile() local
138 if (Error E = ReaderOrErr.takeError()) in mergeInstrProfile()
141 auto Reader = std::move(ReaderOrErr.get()); in mergeInstrProfile()
182 auto ReaderOrErr = SampleProfileReader::create(Input.Filename, Context); in mergeSampleProfile() local
183 if (std::error_code EC = ReaderOrErr.getError()) in mergeSampleProfile()
190 Readers.push_back(std::move(ReaderOrErr.get())); in mergeSampleProfile()
331 auto ReaderOrErr = InstrProfReader::create(Filename); in showInstrProfile() local
337 if (Error E = ReaderOrErr.takeError()) in showInstrProfile()
340 auto Reader = std::move(ReaderOrErr.get()); in showInstrProfile()
448 auto ReaderOrErr = SampleProfileReader::create(Filename, Context); in showSampleProfile() local
[all …]
/external/llvm/unittests/ProfileData/
DSampleProfTest.cpp61 auto ReaderOrErr = SampleProfileReader::create(Profile, Context); in readProfile() local
62 ASSERT_TRUE(NoError(ReaderOrErr.getError())); in readProfile()
63 Reader = std::move(ReaderOrErr.get()); in readProfile()
DCoverageMappingTest.cpp192 auto ReaderOrErr = IndexedInstrProfReader::create(std::move(Profile)); in readProfCounts() local
193 ASSERT_TRUE(NoError(ReaderOrErr.takeError())); in readProfCounts()
194 ProfileReader = std::move(ReaderOrErr.get()); in readProfCounts()
DInstrProfTest.cpp51 auto ReaderOrErr = IndexedInstrProfReader::create(std::move(Profile)); in readProfile() local
52 ASSERT_TRUE(NoError(ReaderOrErr.takeError())); in readProfile()
53 Reader = std::move(ReaderOrErr.get()); in readProfile()
/external/llvm/lib/Transforms/IPO/
DSampleProfile.cpp1202 auto ReaderOrErr = SampleProfileReader::create(Filename, Ctx); in INITIALIZE_PASS_DEPENDENCY() local
1203 if (std::error_code EC = ReaderOrErr.getError()) { in INITIALIZE_PASS_DEPENDENCY()
1208 Reader = std::move(ReaderOrErr.get()); in INITIALIZE_PASS_DEPENDENCY()
/external/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp857 auto ReaderOrErr = IndexedInstrProfReader::create(ProfileFileName); in annotateAllFunctions() local
858 if (Error E = ReaderOrErr.takeError()) { in annotateAllFunctions()
867 std::move(ReaderOrErr.get()); in annotateAllFunctions()
/external/clang/lib/Frontend/
DCompilerInvocation.cpp405 auto ReaderOrErr = llvm::IndexedInstrProfReader::create(ProfileName); in setPGOUseInstrumentor() local
407 if (auto E = ReaderOrErr.takeError()) { in setPGOUseInstrumentor()
413 std::move(ReaderOrErr.get()); in setPGOUseInstrumentor()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp142 auto ReaderOrErr = llvm::IndexedInstrProfReader::create( in CodeGenModule() local
144 if (auto E = ReaderOrErr.takeError()) { in CodeGenModule()
152 PGOReader = std::move(ReaderOrErr.get()); in CodeGenModule()