Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/lib/ProfileData/
H A DInstrProf.cpp78 case instrprof_error::success: in getInstrProfErrString()
80 case instrprof_error::eof: in getInstrProfErrString()
84 case instrprof_error::bad_magic: in getInstrProfErrString()
86 case instrprof_error::bad_header: in getInstrProfErrString()
92 case instrprof_error::too_large: in getInstrProfErrString()
94 case instrprof_error::truncated: in getInstrProfErrString()
96 case instrprof_error::malformed: in getInstrProfErrString()
100 case instrprof_error::hash_mismatch: in getInstrProfErrString()
102 case instrprof_error::count_mismatch: in getInstrProfErrString()
185 if (IE == instrprof_error::success) in addError()
[all …]
H A DInstrProfReader.cpp167 return error(instrprof_error::bad_header); in readHeader()
179 return error(instrprof_error::truncated); in readValueProfileData()
182 return error(instrprof_error::malformed); in readValueProfileData()
198 return error(instrprof_error::malformed); in readValueProfileData()
250 return error(instrprof_error::eof); in readNextRecord()
260 return error(instrprof_error::truncated); in readNextRecord()
262 return error(instrprof_error::malformed); in readNextRecord()
267 return error(instrprof_error::truncated); in readNextRecord()
269 return error(instrprof_error::malformed); in readNextRecord()
271 return error(instrprof_error::malformed); in readNextRecord()
[all …]
H A DInstrProfWriter.cpp198 auto MapWarn = [&](instrprof_error E) { in addRecord()
/freebsd-12.1/contrib/llvm/include/llvm/ProfileData/
H A DInstrProf.h280 enum class instrprof_error { enum
308 InstrProfError(instrprof_error Err) : Err(Err) { in InstrProfError()
320 instrprof_error get() const { return Err; } in get()
324 static instrprof_error take(Error E) { in take()
325 auto Err = instrprof_error::success; in take()
336 instrprof_error Err;
344 instrprof_error FirstError = instrprof_error::success;
362 assert(FirstError == instrprof_error::success && in ~SoftInstrProfErrors()
367 void addError(instrprof_error IE);
386 if (FirstError == instrprof_error::success) in takeError()
[all …]
H A DInstrProfReader.h63 instrprof_error LastError = instrprof_error::success;
97 Error error(instrprof_error Err) { in error()
99 if (Err == instrprof_error::success) in error()
107 Error success() { return error(instrprof_error::success); } in success()
111 bool isEOF() { return LastError == instrprof_error::eof; } in isEOF()
114 bool hasError() { return LastError != instrprof_error::success && !isEOF(); } in hasError()
H A DInstrProfWriter.h86 instrprof_error::unsupported_version); in setIsIRLevelProfile()
/freebsd-12.1/contrib/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp69 instrprof_error instrError = IPE.get(); in exitWithError()
98 auto IPE = instrprof_error::success; in handleMergeWriterError()
108 if (IPE != instrprof_error::success) { in handleMergeWriterError()
110 case instrprof_error::hash_mismatch: in handleMergeWriterError()
111 case instrprof_error::count_mismatch: in handleMergeWriterError()
193 case instrprof_error::success: in isFatalError()
194 case instrprof_error::eof: in isFatalError()
195 case instrprof_error::unknown_function: in isFatalError()
196 case instrprof_error::hash_mismatch: in isFatalError()
197 case instrprof_error::count_mismatch: in isFatalError()
[all …]
/freebsd-12.1/contrib/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp215 instrprof_error IPE = InstrProfError::take(std::move(E)); in loadFunctionRecord()
216 if (IPE == instrprof_error::hash_mismatch) { in loadFunctionRecord()
219 } else if (IPE != instrprof_error::unknown_function) in loadFunctionRecord()
H A DCoverageMappingReader.cpp427 return make_error<InstrProfError>(instrprof_error::malformed); in insertFunctionRecordIfNeeded()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCodeGenPGO.cpp974 if (IPE == llvm::instrprof_error::unknown_function) in loadRegionCounts()
976 else if (IPE == llvm::instrprof_error::hash_mismatch) in loadRegionCounts()
978 else if (IPE == llvm::instrprof_error::malformed) in loadRegionCounts()
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp1025 if (Err == instrprof_error::unknown_function) { in readCounters()
1028 } else if (Err == instrprof_error::hash_mismatch || in readCounters()
1029 Err == instrprof_error::malformed) { in readCounters()