Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProfReader.cpp118 instrprof_error::malformed, in readBinaryIdsInternal()
123 return make_error<InstrProfError>(instrprof_error::malformed, in readBinaryIdsInternal()
130 instrprof_error::malformed, "not enough data to read binary id data"); in readBinaryIdsInternal()
139 instrprof_error::malformed, in readBinaryIdsInternal()
176 return make_error<InstrProfError>(instrprof_error::empty_raw_profile); in create()
193 return make_error<InstrProfError>(instrprof_error::unrecognized_format); in create()
229 return make_error<InstrProfError>(instrprof_error::bad_magic); in create()
278 return error(instrprof_error::bad_header); in readHeader()
291 return error(instrprof_error::eof); in readTemporalProfTraceData()
295 return error(instrprof_error::malformed); in readTemporalProfTraceData()
[all …]
H A DInstrProf.cpp82 static std::string getInstrProfErrString(instrprof_error Err, in getInstrProfErrString()
88 case instrprof_error::success: in getInstrProfErrString()
91 case instrprof_error::eof: in getInstrProfErrString()
94 case instrprof_error::unrecognized_format: in getInstrProfErrString()
97 case instrprof_error::bad_magic: in getInstrProfErrString()
100 case instrprof_error::bad_header: in getInstrProfErrString()
103 case instrprof_error::unsupported_version: in getInstrProfErrString()
106 case instrprof_error::unsupported_hash_type: in getInstrProfErrString()
109 case instrprof_error::too_large: in getInstrProfErrString()
112 case instrprof_error::truncated: in getInstrProfErrString()
[all …]
H A DInstrProfCorrelator.cpp47 instrprof_error::unable_to_correlate_profile, in getInstrProfSection()
101 instrprof_error::unable_to_correlate_profile, in get()
106 instrprof_error::unable_to_correlate_profile, in get()
113 instrprof_error::unable_to_correlate_profile, in get()
129 instrprof_error::unable_to_correlate_profile, in get()
147 instrprof_error::unable_to_correlate_profile, in get()
172 instrprof_error::unable_to_correlate_profile, "not an object file"); in get()
219 instrprof_error::unable_to_correlate_profile, in get()
225 instrprof_error::unable_to_correlate_profile, in get()
235 instrprof_error::unable_to_correlate_profile, in correlateProfileData()
[all …]
H A DMemProfReader.cpp58 return make_error<InstrProfError>(instrprof_error::bad_magic); in checkBuffer()
61 return make_error<InstrProfError>(instrprof_error::empty_raw_profile); in checkBuffer()
64 return make_error<InstrProfError>(instrprof_error::truncated); in checkBuffer()
81 return make_error<InstrProfError>(instrprof_error::unsupported_version); in checkBuffer()
89 return make_error<InstrProfError>(instrprof_error::malformed); in checkBuffer()
481 instrprof_error::malformed, in mapRawProfileToRecords()
620 instrprof_error::malformed, in symbolizeAndFilterStackFrames()
685 instrprof_error::malformed, in readRawProfile()
723 instrprof_error::malformed, in readRawProfile()
H A DPGOCtxProfReader.cpp43 return make_error<InstrProfError>(instrprof_error::invalid_prof, in getOrEmplace()
53 return make_error<InstrProfError>(instrprof_error::invalid_prof, Msg); in wrongValue()
57 return make_error<InstrProfError>(instrprof_error::unsupported_version, Msg); in unsupported()
183 return make_error<InstrProfError>(instrprof_error::invalid_prof, in readMetadata()
H A DInstrProfWriter.cpp202 auto MapWarn = [&](instrprof_error E) { in addRecord()
261 Warn(make_error<InstrProfError>(instrprof_error::malformed, in addMemProfFrame()
278 Warn(make_error<InstrProfError>(instrprof_error::malformed, in addMemProfCallStack()
729 return make_error<InstrProfError>(instrprof_error::invalid_prof); in validateRecord()
H A DMemProf.cpp367 return make_error<InstrProfError>(instrprof_error::malformed, in readMemProfSchema()
376 return make_error<InstrProfError>(instrprof_error::malformed, in readMemProfSchema()
H A DIndexedMemProfData.cpp330 instrprof_error::unsupported_version, in writeMemProf()
460 instrprof_error::unsupported_version, in deserialize()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h399 enum class instrprof_error { enum
446 inline std::error_code make_error_code(instrprof_error E) { in make_error_code()
452 InstrProfError(instrprof_error Err, const Twine &ErrStr = Twine())
454 assert(Err != instrprof_error::success && "Not an error"); in Err()
465 instrprof_error get() const { return Err; } in get()
471 static std::pair<instrprof_error, std::string> take(Error E) { in take()
472 auto Err = instrprof_error::success; in take()
475 assert(Err == instrprof_error::success && "Multiple errors encountered"); in take()
485 instrprof_error Err;
633 return make_error<InstrProfError>(instrprof_error::malformed, in addSymbolName()
[all …]
H A DMemProfReader.h59 return make_error<InstrProfError>(instrprof_error::empty_raw_profile);
62 return make_error<InstrProfError>(instrprof_error::eof);
76 return make_error<InstrProfError>(instrprof_error::hash_mismatch);
H A DInstrProfReader.h96 instrprof_error LastError = instrprof_error::success;
172 Error error(instrprof_error Err, const std::string &ErrMsg = "") {
175 if (Err == instrprof_error::success)
189 Error success() { return error(instrprof_error::success); } in success()
193 bool isEOF() { return LastError == instrprof_error::eof; } in isEOF()
196 bool hasError() { return LastError != instrprof_error::success && !isEOF(); } in hasError()
H A DInstrProfWriter.h189 return make_error<InstrProfError>(instrprof_error::unsupported_version); in mergeProfileKind()
196 instrprof_error::unsupported_version, in mergeProfileKind()
/freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp531 instrprof_error instrError = IPE.get(); in exitWithError()
533 if (instrError == instrprof_error::unrecognized_format) { in exitWithError()
565 auto IPE = instrprof_error::success; in handleMergeWriterError()
575 if (IPE != instrprof_error::success) { in handleMergeWriterError()
577 case instrprof_error::hash_mismatch: in handleMergeWriterError()
578 case instrprof_error::count_mismatch: in handleMergeWriterError()
579 case instrprof_error::value_site_count_mismatch: in handleMergeWriterError()
654 SmallSet<instrprof_error, 4> &WriterErrorCodes;
657 SmallSet<instrprof_error, 4> &WriterErrorCodes, in WriterContext()
677 if (ErrorCode != instrprof_error::empty_raw_profile) in overlapInput()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp844 instrprof_error IPE = std::get<0>(InstrProfError::take(std::move(E))); in loadFunctionRecord()
845 if (IPE == instrprof_error::hash_mismatch) { in loadFunctionRecord()
850 if (IPE != instrprof_error::unknown_function) in loadFunctionRecord()
867 instrprof_error IPE = std::get<0>(InstrProfError::take(std::move(E))); in loadFunctionRecord()
868 if (IPE == instrprof_error::hash_mismatch) { in loadFunctionRecord()
873 if (IPE != instrprof_error::unknown_function) in loadFunctionRecord()
H A DCoverageMappingReader.cpp629 return make_error<InstrProfError>(instrprof_error::malformed, in insertFunctionRecordIfNeeded()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemProfUse.cpp390 if (Err == instrprof_error::unknown_function) { in readMemprof()
394 } else if (Err == instrprof_error::hash_mismatch) { in readMemprof()
H A DPGOInstrumentation.cpp1416 if (Err == instrprof_error::unknown_function) { in handleInstrProfError()
1420 } else if (Err == instrprof_error::hash_mismatch || in handleInstrProfError()
1421 Err == instrprof_error::malformed) { in handleInstrProfError()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp1429 if (IPE == llvm::instrprof_error::unknown_function) in loadRegionCounts()
1431 else if (IPE == llvm::instrprof_error::hash_mismatch) in loadRegionCounts()
1433 else if (IPE == llvm::instrprof_error::malformed) in loadRegionCounts()