Home
last modified time | relevance | path

Searched refs:instrprof_error (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProfReader.cpp115 instrprof_error::malformed, in readBinaryIdsInternal()
120 return make_error<InstrProfError>(instrprof_error::malformed, in readBinaryIdsInternal()
127 instrprof_error::malformed, "not enough data to read binary id data"); in readBinaryIdsInternal()
136 instrprof_error::malformed, in readBinaryIdsInternal()
170 return make_error<InstrProfError>(instrprof_error::empty_raw_profile); in create()
183 return make_error<InstrProfError>(instrprof_error::unrecognized_format); in create()
219 return make_error<InstrProfError>(instrprof_error::bad_magic); in create()
266 return error(instrprof_error::bad_header); in readHeader()
279 return error(instrprof_error::eof); in readTemporalProfTraceData()
283 return error(instrprof_error::malformed); in readTemporalProfTraceData()
[all …]
H A DInstrProf.cpp80 static std::string getInstrProfErrString(instrprof_error Err, in getInstrProfErrString()
86 case instrprof_error::success: in getInstrProfErrString()
89 case instrprof_error::eof: in getInstrProfErrString()
92 case instrprof_error::unrecognized_format: in getInstrProfErrString()
95 case instrprof_error::bad_magic: in getInstrProfErrString()
98 case instrprof_error::bad_header: in getInstrProfErrString()
101 case instrprof_error::unsupported_version: in getInstrProfErrString()
104 case instrprof_error::unsupported_hash_type: in getInstrProfErrString()
107 case instrprof_error::too_large: in getInstrProfErrString()
110 case instrprof_error::truncated: in getInstrProfErrString()
[all …]
H A DInstrProfCorrelator.cpp47 instrprof_error::unable_to_correlate_profile, in getInstrProfSection()
105 instrprof_error::unable_to_correlate_profile, in get()
123 instrprof_error::unable_to_correlate_profile, in get()
148 instrprof_error::unable_to_correlate_profile, "not an object file"); in get()
195 instrprof_error::unable_to_correlate_profile, in get()
201 instrprof_error::unable_to_correlate_profile, in get()
211 instrprof_error::unable_to_correlate_profile, in correlateProfileData()
249 instrprof_error::unable_to_correlate_profile, in dumpYaml()
431 instrprof_error::unable_to_correlate_profile, in correlateProfileNameImpl()
476 instrprof_error::unable_to_correlate_profile, in correlateProfileNameImpl()
H A DMemProfReader.cpp55 return make_error<InstrProfError>(instrprof_error::bad_magic); in checkBuffer()
58 return make_error<InstrProfError>(instrprof_error::empty_raw_profile); in checkBuffer()
61 return make_error<InstrProfError>(instrprof_error::truncated); in checkBuffer()
78 return make_error<InstrProfError>(instrprof_error::unsupported_version); in checkBuffer()
86 return make_error<InstrProfError>(instrprof_error::malformed); in checkBuffer()
494 instrprof_error::malformed, in mapRawProfileToRecords()
643 instrprof_error::malformed, in symbolizeAndFilterStackFrames()
708 instrprof_error::malformed, in readRawProfile()
746 instrprof_error::malformed, in readRawProfile()
H A DPGOCtxProfReader.cpp41 return make_error<InstrProfError>(instrprof_error::invalid_prof, in getOrEmplace()
59 return make_error<InstrProfError>(instrprof_error::invalid_prof, Msg); in wrongValue()
63 return make_error<InstrProfError>(instrprof_error::unsupported_version, Msg); in unsupported()
H A DInstrProfWriter.cpp257 auto MapWarn = [&](instrprof_error E) { in addRecord()
294 Warn(make_error<InstrProfError>(instrprof_error::malformed, in addMemProfFrame()
311 Warn(make_error<InstrProfError>(instrprof_error::malformed, in addMemProfCallStack()
775 instrprof_error::unsupported_version, in writeMemProf()
1045 return make_error<InstrProfError>(instrprof_error::invalid_prof); in validateRecord()
H A DMemProf.cpp383 return make_error<InstrProfError>(instrprof_error::malformed, in readMemProfSchema()
392 return make_error<InstrProfError>(instrprof_error::malformed, in readMemProfSchema()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h344 enum class instrprof_error { enum
390 inline std::error_code make_error_code(instrprof_error E) { in make_error_code()
396 InstrProfError(instrprof_error Err, const Twine &ErrStr = Twine())
398 assert(Err != instrprof_error::success && "Not an error"); in Err()
409 instrprof_error get() const { return Err; } in get()
415 static std::pair<instrprof_error, std::string> take(Error E) { in take()
416 auto Err = instrprof_error::success; in take()
419 assert(Err == instrprof_error::success && "Multiple errors encountered"); in take()
429 instrprof_error Err;
572 return make_error<InstrProfError>(instrprof_error::malformed, in addSymbolName()
[all …]
H A DInstrProfReader.h92 instrprof_error LastError = instrprof_error::success;
165 Error error(instrprof_error Err, const std::string &ErrMsg = "") {
168 if (Err == instrprof_error::success)
182 Error success() { return error(instrprof_error::success); } in success()
186 bool isEOF() { return LastError == instrprof_error::eof; } in isEOF()
189 bool hasError() { return LastError != instrprof_error::success && !isEOF(); } in hasError()
H A DMemProfReader.h70 return make_error<InstrProfError>(instrprof_error::empty_raw_profile);
73 return make_error<InstrProfError>(instrprof_error::eof);
88 return make_error<InstrProfError>(instrprof_error::hash_mismatch);
H A DInstrProfWriter.h174 return make_error<InstrProfError>(instrprof_error::unsupported_version); in mergeProfileKind()
179 instrprof_error::unsupported_version, in mergeProfileKind()
/freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp491 instrprof_error instrError = IPE.get(); in exitWithError()
493 if (instrError == instrprof_error::unrecognized_format) { in exitWithError()
525 auto IPE = instrprof_error::success; in handleMergeWriterError()
535 if (IPE != instrprof_error::success) { in handleMergeWriterError()
537 case instrprof_error::hash_mismatch: in handleMergeWriterError()
538 case instrprof_error::count_mismatch: in handleMergeWriterError()
539 case instrprof_error::value_site_count_mismatch: in handleMergeWriterError()
614 SmallSet<instrprof_error, 4> &WriterErrorCodes;
617 SmallSet<instrprof_error, 4> &WriterErrorCodes, in WriterContext()
636 if (ErrorCode != instrprof_error::empty_raw_profile) in overlapInput()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp816 instrprof_error IPE = std::get<0>(InstrProfError::take(std::move(E))); in loadFunctionRecord()
817 if (IPE == instrprof_error::hash_mismatch) { in loadFunctionRecord()
822 if (IPE != instrprof_error::unknown_function) in loadFunctionRecord()
834 instrprof_error IPE = std::get<0>(InstrProfError::take(std::move(E))); in loadFunctionRecord()
835 if (IPE == instrprof_error::hash_mismatch) { in loadFunctionRecord()
840 if (IPE != instrprof_error::unknown_function) in loadFunctionRecord()
H A DCoverageMappingReader.cpp622 return make_error<InstrProfError>(instrprof_error::malformed, in insertFunctionRecordIfNeeded()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp1415 if (IPE == llvm::instrprof_error::unknown_function) in loadRegionCounts()
1417 else if (IPE == llvm::instrprof_error::hash_mismatch) in loadRegionCounts()
1419 else if (IPE == llvm::instrprof_error::malformed) in loadRegionCounts()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp807 if (Err == instrprof_error::unknown_function) { in readMemprof()
811 } else if (Err == instrprof_error::hash_mismatch) { in readMemprof()
H A DPGOInstrumentation.cpp1335 if (Err == instrprof_error::unknown_function) { in handleInstrProfError()
1339 } else if (Err == instrprof_error::hash_mismatch || in handleInstrProfError()
1340 Err == instrprof_error::malformed) { in handleInstrProfError()