Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/ProfileData/
H A DInstrProfReader.cpp199 return error(instrprof_error::truncated); in readValueProfileData()
202 return error(instrprof_error::malformed); in readValueProfileData()
218 return error(instrprof_error::malformed, in readValueProfileData()
272 return error(instrprof_error::eof); in readNextRecord()
284 return error(instrprof_error::malformed, in readNextRecord()
292 return error(instrprof_error::malformed, in readNextRecord()
480 instrprof_error::malformed, in readRawCounts()
484 return error(instrprof_error::malformed, in readRawCounts()
592 instrprof_error::malformed, in printBinaryIds()
607 instrprof_error::malformed, in printBinaryIds()
[all …]
H A DInstrProf.cpp83 case instrprof_error::success: in getInstrProfErrString()
86 case instrprof_error::eof: in getInstrProfErrString()
92 case instrprof_error::bad_magic: in getInstrProfErrString()
95 case instrprof_error::bad_header: in getInstrProfErrString()
104 case instrprof_error::too_large: in getInstrProfErrString()
107 case instrprof_error::truncated: in getInstrProfErrString()
110 case instrprof_error::malformed: in getInstrProfErrString()
122 case instrprof_error::invalid_prof: in getInstrProfErrString()
130 case instrprof_error::hash_mismatch: in getInstrProfErrString()
232 if (IE == instrprof_error::success) in addError()
[all …]
H A DRawMemProfReader.cpp48 return make_error<InstrProfError>(instrprof_error::bad_magic); in checkBuffer()
51 return make_error<InstrProfError>(instrprof_error::empty_raw_profile); in checkBuffer()
54 return make_error<InstrProfError>(instrprof_error::truncated); in checkBuffer()
64 return make_error<InstrProfError>(instrprof_error::unsupported_version); in checkBuffer()
72 return make_error<InstrProfError>(instrprof_error::malformed); in checkBuffer()
324 instrprof_error::malformed, in mapRawProfileToRecords()
460 instrprof_error::malformed, in symbolizeAndFilterStackFrames()
482 instrprof_error::malformed, in readRawProfile()
506 instrprof_error::malformed, in readRawProfile()
537 return make_error<InstrProfError>(instrprof_error::empty_raw_profile); in readNextRecord()
[all …]
H A DInstrProfCorrelator.cpp31 instrprof_error::unable_to_correlate_profile, in getCountersSection()
64 instrprof_error::unable_to_correlate_profile, in get()
93 instrprof_error::unable_to_correlate_profile, "not an object file"); in get()
139 instrprof_error::unable_to_correlate_profile, in get()
149 instrprof_error::unable_to_correlate_profile, in correlateProfileData()
H A DMemProf.cpp91 return make_error<InstrProfError>(instrprof_error::malformed, in readMemProfSchema()
99 return make_error<InstrProfError>(instrprof_error::malformed, in readMemProfSchema()
H A DInstrProfWriter.cpp239 auto MapWarn = [&](instrprof_error E) { in addRecord()
276 Warn(make_error<InstrProfError>(instrprof_error::malformed, in addMemProfFrame()
537 return make_error<InstrProfError>(instrprof_error::invalid_prof); in validateRecord()
/llvm-project-15.0.7/llvm/include/llvm/ProfileData/
H A DInstrProf.h303 enum class instrprof_error { enum
348 instrprof_error get() const { return Err; } in get()
353 static instrprof_error take(Error E) { in take()
354 auto Err = instrprof_error::success; in take()
365 instrprof_error Err;
374 instrprof_error FirstError = instrprof_error::success;
392 assert(FirstError == instrprof_error::success && in ~SoftInstrProfErrors()
397 void addError(instrprof_error IE);
416 if (FirstError == instrprof_error::success) in takeError()
419 FirstError = instrprof_error::success; in takeError()
[all …]
H A DInstrProfReader.h86 instrprof_error LastError = instrprof_error::success;
144 Error error(instrprof_error Err, const std::string &ErrMsg = "") {
147 if (Err == instrprof_error::success)
161 Error success() { return error(instrprof_error::success); } in success()
165 bool isEOF() { return LastError == instrprof_error::eof; } in isEOF()
168 bool hasError() { return LastError != instrprof_error::success && !isEOF(); } in hasError()
H A DInstrProfWriter.h125 return make_error<InstrProfError>(instrprof_error::unsupported_version); in mergeProfileKind()
130 instrprof_error::unsupported_version, in mergeProfileKind()
/llvm-project-15.0.7/llvm/unittests/ProfileData/
H A DInstrProfTest.cpp27 ErrorEquals(instrprof_error Expected, Error E) { in ErrorEquals()
28 instrprof_error Found; in ErrorEquals()
771 instrprof_error Result; in TEST_P()
773 Result = instrprof_error::success; in TEST_P()
775 ASSERT_EQ(Result, instrprof_error::success); in TEST_P()
778 Result = instrprof_error::success; in TEST_P()
782 Result = instrprof_error::success; in TEST_P()
784 ASSERT_EQ(Result, instrprof_error::success); in TEST_P()
790 Result = instrprof_error::success; in TEST_P()
799 Result = instrprof_error::success; in TEST_P()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp86 instrprof_error instrError = IPE.get(); in exitWithError()
125 auto IPE = instrprof_error::success; in handleMergeWriterError()
135 if (IPE != instrprof_error::success) { in handleMergeWriterError()
137 case instrprof_error::hash_mismatch: in handleMergeWriterError()
138 case instrprof_error::count_mismatch: in handleMergeWriterError()
206 SmallSet<instrprof_error, 4> &WriterErrorCodes;
225 if (IPE != instrprof_error::empty_raw_profile) in overlapInput()
297 if (IPE != instrprof_error::empty_raw_profile) in loadInput()
394 SmallSet<instrprof_error, 4> WriterErrorCodes; in mergeInstrProfile()
634 SmallSet<instrprof_error, 4> WriterErrorCodes; in supplementInstrProfile()
[all …]
/llvm-project-15.0.7/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp249 instrprof_error IPE = InstrProfError::take(std::move(E)); in loadFunctionRecord()
250 if (IPE == instrprof_error::hash_mismatch) { in loadFunctionRecord()
254 } else if (IPE != instrprof_error::unknown_function) in loadFunctionRecord()
H A DCoverageMappingReader.cpp571 return make_error<InstrProfError>(instrprof_error::malformed, in insertFunctionRecordIfNeeded()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenPGO.cpp1037 if (IPE == llvm::instrprof_error::unknown_function) in loadRegionCounts()
1039 else if (IPE == llvm::instrprof_error::hash_mismatch) in loadRegionCounts()
1041 else if (IPE == llvm::instrprof_error::malformed) in loadRegionCounts()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp1234 if (Err == instrprof_error::unknown_function) { in readCounters()
1238 } else if (Err == instrprof_error::hash_mismatch || in readCounters()
1239 Err == instrprof_error::malformed) { in readCounters()