Searched refs:instrprof_error (Results 1 – 12 of 12) sorted by relevance
77 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 …]
67 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 …]
236 auto MapWarn = [&](instrprof_error E) { in addRecord()422 return make_error<InstrProfError>(instrprof_error::invalid_prof); in validateRecord()
282 enum class instrprof_error { enum305 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 …]
73 instrprof_error LastError = instrprof_error::success;114 Error error(instrprof_error Err) { in error()116 if (Err == instrprof_error::success) in error()124 Error success() { return error(instrprof_error::success); } in success()128 bool isEOF() { return LastError == instrprof_error::eof; } in isEOF()131 bool hasError() { return LastError != instrprof_error::success && !isEOF(); } in hasError()
95 return make_error<InstrProfError>(instrprof_error::unsupported_version); in setIsIRLevelProfile()
79 instrprof_error instrError = IPE.get(); in exitWithError()81 if (instrError == instrprof_error::unrecognized_format) { in exitWithError()117 auto IPE = instrprof_error::success; in handleMergeWriterError()127 if (IPE != instrprof_error::success) { in handleMergeWriterError()129 case instrprof_error::hash_mismatch: in handleMergeWriterError()130 case instrprof_error::count_mismatch: in handleMergeWriterError()131 case instrprof_error::value_site_count_mismatch: in handleMergeWriterError()198 SmallSet<instrprof_error, 4> &WriterErrorCodes;201 SmallSet<instrprof_error, 4> &WriterErrorCodes) in WriterContext()216 instrprof_error IPE = InstrProfError::take(std::move(E)); in overlapInput()[all …]
248 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()
570 return make_error<InstrProfError>(instrprof_error::malformed); in insertFunctionRecordIfNeeded()
1029 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()
1286 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()
285 * an error is detected, otherwise return instrprof_error::success.287 instrprof_error checkIntegrity();