Home
last modified time | relevance | path

Searched refs:ReaderOrErr (Results 1 – 14 of 14) 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/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InsertPrefetch.cpp161 ErrorOr<std::unique_ptr<SampleProfileReader>> ReaderOrErr = in doInitialization() local
163 if (std::error_code EC = ReaderOrErr.getError()) { in doInitialization()
169 Reader = std::move(ReaderOrErr.get()); in doInitialization()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/Coverage/
DCoverageMappingReader.cpp740 auto ReaderOrErr = loadTestingFormat(ObjectBuffer.getBuffer()); in create() local
741 if (!ReaderOrErr) in create()
742 return ReaderOrErr.takeError(); in create()
743 Readers.push_back(std::move(ReaderOrErr.get())); in create()
801 auto ReaderOrErr = loadBinaryFormat(std::move(Bin), Arch); in create() local
802 if (!ReaderOrErr) in create()
803 return ReaderOrErr.takeError(); in create()
804 Readers.push_back(std::move(ReaderOrErr.get())); in create()
/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/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/
DSampleProfReader.cpp1350 auto ReaderOrErr = in create() local
1352 if (std::error_code EC = ReaderOrErr.getError()) { in create()
1357 Reader->Remapper = std::move(ReaderOrErr.get()); in create()
DInstrProf.cpp1172 auto ReaderOrErr = InstrProfReader::create(Filename); in accumulateCounts() local
1173 if (Error E = ReaderOrErr.takeError()) { in accumulateCounts()
1176 auto Reader = std::move(ReaderOrErr.get()); in accumulateCounts()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DSampleProfile.cpp1808 auto ReaderOrErr = in doInitialization() local
1810 if (std::error_code EC = ReaderOrErr.getError()) { in doInitialization()
1815 Reader = std::move(ReaderOrErr.get()); in doInitialization()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp1527 auto ReaderOrErr = in annotateAllFunctions() local
1529 if (Error E = ReaderOrErr.takeError()) { in annotateAllFunctions()
1538 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()