Searched refs:instrprof_error (Results 1 – 9 of 9) sorted by relevance
76 static std::string getInstrProfErrString(instrprof_error Err) { in getInstrProfErrString()78 case instrprof_error::success: in getInstrProfErrString()80 case instrprof_error::eof: in getInstrProfErrString()82 case instrprof_error::unrecognized_format: in getInstrProfErrString()84 case instrprof_error::bad_magic: in getInstrProfErrString()86 case instrprof_error::bad_header: in getInstrProfErrString()88 case instrprof_error::unsupported_version: in getInstrProfErrString()90 case instrprof_error::unsupported_hash_type: in getInstrProfErrString()92 case instrprof_error::too_large: in getInstrProfErrString()94 case instrprof_error::truncated: in getInstrProfErrString()[all …]
66 return make_error<InstrProfError>(instrprof_error::too_large); in create()69 return make_error<InstrProfError>(instrprof_error::empty_raw_profile); in create()82 return make_error<InstrProfError>(instrprof_error::unrecognized_format); in create()117 return make_error<InstrProfError>(instrprof_error::too_large); in create()121 return make_error<InstrProfError>(instrprof_error::bad_magic); in create()169 return error(instrprof_error::bad_header); in readHeader()181 return error(instrprof_error::truncated); in readValueProfileData()184 return error(instrprof_error::malformed); in readValueProfileData()200 return error(instrprof_error::malformed); in readValueProfileData()206 return error(instrprof_error::malformed); in readValueProfileData()[all …]
235 auto MapWarn = [&](instrprof_error E) { in addRecord()
275 enum class instrprof_error { enum297 inline std::error_code make_error_code(instrprof_error E) { in make_error_code()303 InstrProfError(instrprof_error Err) : Err(Err) { in InstrProfError()304 assert(Err != instrprof_error::success && "Not an error"); in InstrProfError()315 instrprof_error get() const { return Err; } in get()319 static instrprof_error take(Error E) { in take()320 auto Err = instrprof_error::success; in take()322 assert(Err == instrprof_error::success && "Multiple errors encountered"); in take()331 instrprof_error Err;339 instrprof_error FirstError = instrprof_error::success;[all …]
62 instrprof_error LastError = instrprof_error::success;101 Error error(instrprof_error Err) { in error()103 if (Err == instrprof_error::success) in error()111 Error success() { return error(instrprof_error::success); } in success()115 bool isEOF() { return LastError == instrprof_error::eof; } in isEOF()118 bool hasError() { return LastError != instrprof_error::success && !isEOF(); } in hasError()
90 return make_error<InstrProfError>(instrprof_error::unsupported_version); in setIsIRLevelProfile()
223 instrprof_error IPE = InstrProfError::take(std::move(E)); in loadFunctionRecord()224 if (IPE == instrprof_error::hash_mismatch) { in loadFunctionRecord()227 } else if (IPE != instrprof_error::unknown_function) in loadFunctionRecord()
436 return make_error<InstrProfError>(instrprof_error::malformed); in insertFunctionRecordIfNeeded()
1151 if (Err == instrprof_error::unknown_function) { in readCounters()1155 } else if (Err == instrprof_error::hash_mismatch || in readCounters()1156 Err == instrprof_error::malformed) { in readCounters()