/external/llvm/lib/ProfileData/ |
D | InstrProf.cpp | 36 std::string getInstrProfErrString(instrprof_error Err) { in getInstrProfErrString() 38 case instrprof_error::success: in getInstrProfErrString() 40 case instrprof_error::eof: in getInstrProfErrString() 42 case instrprof_error::unrecognized_format: in getInstrProfErrString() 44 case instrprof_error::bad_magic: in getInstrProfErrString() 46 case instrprof_error::bad_header: in getInstrProfErrString() 48 case instrprof_error::unsupported_version: in getInstrProfErrString() 50 case instrprof_error::unsupported_hash_type: in getInstrProfErrString() 52 case instrprof_error::too_large: in getInstrProfErrString() 54 case instrprof_error::truncated: in getInstrProfErrString() [all …]
|
D | InstrProfReader.cpp | 47 return make_error<InstrProfError>(instrprof_error::too_large); in create() 60 return make_error<InstrProfError>(instrprof_error::unrecognized_format); in create() 83 return make_error<InstrProfError>(instrprof_error::too_large); in create() 87 return make_error<InstrProfError>(instrprof_error::bad_magic); in create() 131 return error(instrprof_error::bad_header); in readHeader() 143 return error(instrprof_error::truncated); in readValueProfileData() 146 return error(instrprof_error::malformed); in readValueProfileData() 162 return error(instrprof_error::malformed); in readValueProfileData() 168 return error(instrprof_error::malformed); in readValueProfileData() 209 return error(instrprof_error::eof); in readNextRecord() [all …]
|
/external/swiftshader/third_party/llvm-16.0/llvm/lib/ProfileData/ |
D | InstrProfReader.cpp | 107 instrprof_error::malformed, in readBinaryIdsInternal() 117 return make_error<InstrProfError>(instrprof_error::malformed, in readBinaryIdsInternal() 124 instrprof_error::malformed, "not enough data to read binary id data"); in readBinaryIdsInternal() 133 instrprof_error::malformed, in readBinaryIdsInternal() 178 return make_error<InstrProfError>(instrprof_error::too_large); in create() 181 return make_error<InstrProfError>(instrprof_error::empty_raw_profile); in create() 194 return make_error<InstrProfError>(instrprof_error::unrecognized_format); in create() 228 return make_error<InstrProfError>(instrprof_error::too_large); in create() 232 return make_error<InstrProfError>(instrprof_error::bad_magic); in create() 273 return error(instrprof_error::bad_header); in readHeader() [all …]
|
D | InstrProf.cpp | 77 static std::string getInstrProfErrString(instrprof_error Err, in getInstrProfErrString() 83 case instrprof_error::success: in getInstrProfErrString() 86 case instrprof_error::eof: in getInstrProfErrString() 89 case instrprof_error::unrecognized_format: in getInstrProfErrString() 92 case instrprof_error::bad_magic: in getInstrProfErrString() 95 case instrprof_error::bad_header: in getInstrProfErrString() 98 case instrprof_error::unsupported_version: in getInstrProfErrString() 101 case instrprof_error::unsupported_hash_type: in getInstrProfErrString() 104 case instrprof_error::too_large: in getInstrProfErrString() 107 case instrprof_error::truncated: in getInstrProfErrString() [all …]
|
D | RawMemProfReader.cpp | 49 return make_error<InstrProfError>(instrprof_error::bad_magic); in checkBuffer() 52 return make_error<InstrProfError>(instrprof_error::empty_raw_profile); in checkBuffer() 55 return make_error<InstrProfError>(instrprof_error::truncated); in checkBuffer() 65 return make_error<InstrProfError>(instrprof_error::unsupported_version); in checkBuffer() 73 return make_error<InstrProfError>(instrprof_error::malformed); in checkBuffer() 325 instrprof_error::malformed, in mapRawProfileToRecords() 459 instrprof_error::malformed, in symbolizeAndFilterStackFrames() 481 instrprof_error::malformed, in readRawProfile() 505 instrprof_error::malformed, in readRawProfile() 536 return make_error<InstrProfError>(instrprof_error::empty_raw_profile); in readNextRecord() [all …]
|
D | InstrProfCorrelator.cpp | 32 instrprof_error::unable_to_correlate_profile, in getCountersSection() 65 instrprof_error::unable_to_correlate_profile, in get() 94 instrprof_error::unable_to_correlate_profile, "not an object file"); in get() 140 instrprof_error::unable_to_correlate_profile, in get() 150 instrprof_error::unable_to_correlate_profile, in correlateProfileData() 188 instrprof_error::unable_to_correlate_profile, in dumpYaml()
|
D | MemProf.cpp | 91 return make_error<InstrProfError>(instrprof_error::malformed, in readMemProfSchema() 99 return make_error<InstrProfError>(instrprof_error::malformed, in readMemProfSchema()
|
D | InstrProfWriter.cpp | 240 auto MapWarn = [&](instrprof_error E) { in addRecord() 277 Warn(make_error<InstrProfError>(instrprof_error::malformed, in addMemProfFrame() 594 return make_error<InstrProfError>(instrprof_error::invalid_prof); in validateRecord()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/ |
D | InstrProf.cpp | 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 …]
|
D | InstrProfReader.cpp | 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 …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/ |
D | InstrProf.h | 275 enum class instrprof_error { enum 297 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 …]
|
D | InstrProfReader.h | 66 instrprof_error LastError = instrprof_error::success; 105 Error error(instrprof_error Err) { in error() 107 if (Err == instrprof_error::success) in error() 115 Error success() { return error(instrprof_error::success); } in success() 119 bool isEOF() { return LastError == instrprof_error::eof; } in isEOF() 122 bool hasError() { return LastError != instrprof_error::success && !isEOF(); } in hasError()
|
D | InstrProfWriter.h | 90 return make_error<InstrProfError>(instrprof_error::unsupported_version); in setIsIRLevelProfile()
|
/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/ProfileData/ |
D | InstrProf.h | 308 enum class instrprof_error { enum 334 inline std::error_code make_error_code(instrprof_error E) { in make_error_code() 340 InstrProfError(instrprof_error Err, const Twine &ErrStr = Twine()) 342 assert(Err != instrprof_error::success && "Not an error"); in Err() 353 instrprof_error get() const { return Err; } in get() 358 static instrprof_error take(Error E) { in take() 359 auto Err = instrprof_error::success; in take() 361 assert(Err == instrprof_error::success && "Multiple errors encountered"); in take() 370 instrprof_error Err; 379 instrprof_error FirstError = instrprof_error::success; [all …]
|
D | InstrProfReader.h | 88 instrprof_error LastError = instrprof_error::success; 157 Error error(instrprof_error Err, const std::string &ErrMsg = "") { 160 if (Err == instrprof_error::success) 174 Error success() { return error(instrprof_error::success); } in success() 178 bool isEOF() { return LastError == instrprof_error::eof; } in isEOF() 181 bool hasError() { return LastError != instrprof_error::success && !isEOF(); } in hasError()
|
D | InstrProfWriter.h | 132 return make_error<InstrProfError>(instrprof_error::unsupported_version); in mergeProfileKind() 137 instrprof_error::unsupported_version, in mergeProfileKind()
|
/external/llvm/include/llvm/ProfileData/ |
D | InstrProf.h | 279 enum class instrprof_error { enum 299 inline std::error_code make_error_code(instrprof_error E) { in make_error_code() 305 InstrProfError(instrprof_error Err) : Err(Err) { in InstrProfError() 306 assert(Err != instrprof_error::success && "Not an error"); in InstrProfError() 317 instrprof_error get() const { return Err; } in get() 321 static instrprof_error take(Error E) { in take() 322 auto Err = instrprof_error::success; in take() 324 assert(Err == instrprof_error::success && "Multiple errors encountered"); in take() 333 instrprof_error Err; 341 instrprof_error FirstError; [all …]
|
D | InstrProfReader.h | 53 instrprof_error LastError; 56 InstrProfReader() : LastError(instrprof_error::success), Symtab() {} in InstrProfReader() 83 Error error(instrprof_error Err) { in error() 85 if (Err == instrprof_error::success) in error() 92 Error success() { return error(instrprof_error::success); } in success() 96 bool isEOF() { return LastError == instrprof_error::eof; } in isEOF() 98 bool hasError() { return LastError != instrprof_error::success && !isEOF(); } in hasError()
|
D | InstrProfWriter.h | 69 instrprof_error::unsupported_version); in setIsIRLevelProfile()
|
/external/llvm/tools/llvm-profdata/ |
D | llvm-profdata.cpp | 53 instrprof_error instrError = IPE.get(); in exitWithError() 55 if (instrError == instrprof_error::unrecognized_format) { in exitWithError() 82 auto IPE = instrprof_error::success; in handleMergeWriterError() 92 if (IPE != instrprof_error::success) { in handleMergeWriterError() 94 case instrprof_error::hash_mismatch: in handleMergeWriterError() 95 case instrprof_error::count_mismatch: in handleMergeWriterError() 96 case instrprof_error::value_site_count_mismatch: in handleMergeWriterError() 135 SmallSet<instrprof_error, 4> WriterErrorCodes; in mergeInstrProfile() 149 instrprof_error IPE = InstrProfError::take(std::move(E)); in mergeInstrProfile()
|
/external/llvm/unittests/ProfileData/ |
D | InstrProfTest.cpp | 29 static ::testing::AssertionResult ErrorEquals(instrprof_error Expected, in ErrorEquals() 31 instrprof_error Found; in ErrorEquals() 111 ASSERT_TRUE(ErrorEquals(instrprof_error::hash_mismatch, R.takeError())); in TEST_P() 114 ASSERT_TRUE(ErrorEquals(instrprof_error::unknown_function, R.takeError())); in TEST_P() 137 ASSERT_TRUE(ErrorEquals(instrprof_error::hash_mismatch, std::move(E1))); in TEST_P() 140 ASSERT_TRUE(ErrorEquals(instrprof_error::unknown_function, std::move(E2))); in TEST_P() 571 instrprof_error::success); in TEST_P() 577 instrprof_error::counter_overflow); in TEST_P() 582 instrprof_error::success); in TEST_P() 590 instrprof_error::success); in TEST_P() [all …]
|
/external/llvm/lib/ProfileData/Coverage/ |
D | CoverageMapping.cpp | 198 instrprof_error IPE = InstrProfError::take(std::move(E)); in load() 199 if (IPE == instrprof_error::hash_mismatch) { in load() 202 } else if (IPE != instrprof_error::unknown_function) in load()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | PGOInstrumentation.cpp | 595 if (Err == instrprof_error::unknown_function) { in readCounters() 598 } else if (Err == instrprof_error::hash_mismatch || in readCounters() 599 Err == instrprof_error::malformed) { in readCounters()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/Coverage/ |
D | CoverageMapping.cpp | 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()
|
/external/clang/lib/CodeGen/ |
D | CodeGenPGO.cpp | 809 if (IPE == llvm::instrprof_error::unknown_function) in loadRegionCounts() 811 else if (IPE == llvm::instrprof_error::hash_mismatch) in loadRegionCounts() 813 else if (IPE == llvm::instrprof_error::malformed) in loadRegionCounts()
|