/freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | InstrProfReader.cpp | 115 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 D | InstrProf.cpp | 80 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 D | InstrProfCorrelator.cpp | 47 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 D | MemProfReader.cpp | 55 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 D | PGOCtxProfReader.cpp | 41 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 D | InstrProfWriter.cpp | 257 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 D | MemProf.cpp | 383 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 D | InstrProf.h | 344 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 D | InstrProfReader.h | 92 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 D | MemProfReader.h | 70 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 D | InstrProfWriter.h | 174 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 D | llvm-profdata.cpp | 491 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 D | CoverageMapping.cpp | 816 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 D | CoverageMappingReader.cpp | 622 return make_error<InstrProfError>(instrprof_error::malformed, in insertFunctionRecordIfNeeded()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenPGO.cpp | 1415 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 D | MemProfiler.cpp | 807 if (Err == instrprof_error::unknown_function) { in readMemprof() 811 } else if (Err == instrprof_error::hash_mismatch) { in readMemprof()
|
H A D | PGOInstrumentation.cpp | 1335 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()
|