Home
last modified time | relevance | path

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

/freebsd-12-stable/contrib/llvm-project/llvm/lib/ProfileData/
DInstrProf.cpp77 static std::string getInstrProfErrString(instrprof_error Err) { in getInstrProfErrString()
79 case instrprof_error::success: in getInstrProfErrString()
81 case instrprof_error::eof: in getInstrProfErrString()
83 case instrprof_error::unrecognized_format: in getInstrProfErrString()
85 case instrprof_error::bad_magic: in getInstrProfErrString()
87 case instrprof_error::bad_header: in getInstrProfErrString()
89 case instrprof_error::unsupported_version: in getInstrProfErrString()
91 case instrprof_error::unsupported_hash_type: in getInstrProfErrString()
93 case instrprof_error::too_large: in getInstrProfErrString()
95 case instrprof_error::truncated: in getInstrProfErrString()
[all …]
DInstrProfReader.cpp67 return make_error<InstrProfError>(instrprof_error::too_large); in create()
70 return make_error<InstrProfError>(instrprof_error::empty_raw_profile); in create()
83 return make_error<InstrProfError>(instrprof_error::unrecognized_format); in create()
118 return make_error<InstrProfError>(instrprof_error::too_large); in create()
122 return make_error<InstrProfError>(instrprof_error::bad_magic); in create()
174 return error(instrprof_error::bad_header); in readHeader()
188 return error(instrprof_error::truncated); in readValueProfileData()
191 return error(instrprof_error::malformed); in readValueProfileData()
207 return error(instrprof_error::malformed); in readValueProfileData()
213 return error(instrprof_error::malformed); in readValueProfileData()
[all …]
DInstrProfWriter.cpp236 auto MapWarn = [&](instrprof_error E) { in addRecord()
422 return make_error<InstrProfError>(instrprof_error::invalid_prof); in validateRecord()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/ProfileData/
DInstrProf.h282 enum class instrprof_error { enum
305 inline std::error_code make_error_code(instrprof_error E) { in make_error_code()
311 InstrProfError(instrprof_error Err) : Err(Err) { in InstrProfError()
312 assert(Err != instrprof_error::success && "Not an error"); in InstrProfError()
323 instrprof_error get() const { return Err; } in get()
327 static instrprof_error take(Error E) { in take()
328 auto Err = instrprof_error::success; in take()
330 assert(Err == instrprof_error::success && "Multiple errors encountered"); in take()
339 instrprof_error Err;
347 instrprof_error FirstError = instrprof_error::success;
[all …]
DInstrProfReader.h73 instrprof_error LastError = instrprof_error::success;
117 Error error(instrprof_error Err) { in error()
119 if (Err == instrprof_error::success) in error()
127 Error success() { return error(instrprof_error::success); } in success()
131 bool isEOF() { return LastError == instrprof_error::eof; } in isEOF()
134 bool hasError() { return LastError != instrprof_error::success && !isEOF(); } in hasError()
DInstrProfWriter.h95 return make_error<InstrProfError>(instrprof_error::unsupported_version); in setIsIRLevelProfile()
/freebsd-12-stable/contrib/llvm-project/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp80 instrprof_error instrError = IPE.get(); in exitWithError()
82 if (instrError == instrprof_error::unrecognized_format) { in exitWithError()
118 auto IPE = instrprof_error::success; in handleMergeWriterError()
128 if (IPE != instrprof_error::success) { in handleMergeWriterError()
130 case instrprof_error::hash_mismatch: in handleMergeWriterError()
131 case instrprof_error::count_mismatch: in handleMergeWriterError()
132 case instrprof_error::value_site_count_mismatch: in handleMergeWriterError()
199 SmallSet<instrprof_error, 4> &WriterErrorCodes;
202 SmallSet<instrprof_error, 4> &WriterErrorCodes) in WriterContext()
217 instrprof_error IPE = InstrProfError::take(std::move(E)); in overlapInput()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
DCoverageMapping.cpp248 instrprof_error IPE = InstrProfError::take(std::move(E)); in loadFunctionRecord()
249 if (IPE == instrprof_error::hash_mismatch) { in loadFunctionRecord()
253 } else if (IPE != instrprof_error::unknown_function) in loadFunctionRecord()
DCoverageMappingReader.cpp570 return make_error<InstrProfError>(instrprof_error::malformed); in insertFunctionRecordIfNeeded()
/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/
DCodeGenPGO.cpp1029 if (IPE == llvm::instrprof_error::unknown_function) in loadRegionCounts()
1031 else if (IPE == llvm::instrprof_error::hash_mismatch) in loadRegionCounts()
1033 else if (IPE == llvm::instrprof_error::malformed) in loadRegionCounts()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp1286 if (Err == instrprof_error::unknown_function) { in readCounters()
1290 } else if (Err == instrprof_error::hash_mismatch || in readCounters()
1291 Err == instrprof_error::malformed) { in readCounters()