Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProf.cpp79 case instrprof_error::success: in getInstrProfErrString()
81 case instrprof_error::eof: in getInstrProfErrString()
85 case instrprof_error::bad_magic: in getInstrProfErrString()
87 case instrprof_error::bad_header: in getInstrProfErrString()
93 case instrprof_error::too_large: in getInstrProfErrString()
95 case instrprof_error::truncated: in getInstrProfErrString()
97 case instrprof_error::malformed: in getInstrProfErrString()
99 case instrprof_error::invalid_prof: in getInstrProfErrString()
105 case instrprof_error::hash_mismatch: in getInstrProfErrString()
107 case instrprof_error::count_mismatch: in getInstrProfErrString()
[all …]
H A DInstrProfReader.cpp188 return error(instrprof_error::truncated); in readValueProfileData()
191 return error(instrprof_error::malformed); in readValueProfileData()
207 return error(instrprof_error::malformed); in readValueProfileData()
259 return error(instrprof_error::eof); in readNextRecord()
269 return error(instrprof_error::truncated); in readNextRecord()
271 return error(instrprof_error::malformed); in readNextRecord()
276 return error(instrprof_error::truncated); in readNextRecord()
278 return error(instrprof_error::malformed); in readNextRecord()
280 return error(instrprof_error::malformed); in readNextRecord()
314 return error(instrprof_error::bad_magic); in readHeader()
[all …]
H A DInstrProfWriter.cpp236 auto MapWarn = [&](instrprof_error E) { in addRecord()
422 return make_error<InstrProfError>(instrprof_error::invalid_prof); in validateRecord()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h282 enum class instrprof_error { enum
311 InstrProfError(instrprof_error Err) : Err(Err) { 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()
339 instrprof_error Err;
347 instrprof_error FirstError = instrprof_error::success;
365 assert(FirstError == instrprof_error::success && in ~SoftInstrProfErrors()
370 void addError(instrprof_error IE);
389 if (FirstError == instrprof_error::success) in takeError()
[all …]
H A 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()
H A DInstrProfWriter.h95 return make_error<InstrProfError>(instrprof_error::unsupported_version); in setIsIRLevelProfile()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp80 instrprof_error instrError = IPE.get(); 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()
199 SmallSet<instrprof_error, 4> &WriterErrorCodes;
218 if (IPE != instrprof_error::empty_raw_profile) in overlapInput()
247 if (IPE != instrprof_error::empty_raw_profile) in loadInput()
336 SmallSet<instrprof_error, 4> WriterErrorCodes; in mergeInstrProfile()
574 SmallSet<instrprof_error, 4> WriterErrorCodes; in supplementInstrProfile()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A 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()
H A DCoverageMappingReader.cpp570 return make_error<InstrProfError>(instrprof_error::malformed); in insertFunctionRecordIfNeeded()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A 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-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A 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()