Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/ProfileData/
DInstrProf.cpp76 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 …]
DInstrProfReader.cpp65 return make_error<InstrProfError>(instrprof_error::too_large); in create()
68 return make_error<InstrProfError>(instrprof_error::empty_raw_profile); in create()
81 return make_error<InstrProfError>(instrprof_error::unrecognized_format); in create()
103 return make_error<InstrProfError>(instrprof_error::too_large); in create()
107 return make_error<InstrProfError>(instrprof_error::bad_magic); in create()
151 return error(instrprof_error::bad_header); in readHeader()
163 return error(instrprof_error::truncated); in readValueProfileData()
166 return error(instrprof_error::malformed); in readValueProfileData()
182 return error(instrprof_error::malformed); in readValueProfileData()
188 return error(instrprof_error::malformed); in readValueProfileData()
[all …]
DInstrProfWriter.cpp198 auto MapWarn = [&](instrprof_error E) { in addRecord()
/external/llvm/lib/ProfileData/
DInstrProf.cpp36 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 …]
DInstrProfReader.cpp47 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-7.0/llvm/include/llvm/ProfileData/
DInstrProf.h280 enum class instrprof_error { enum
302 inline std::error_code make_error_code(instrprof_error E) { in make_error_code()
308 InstrProfError(instrprof_error Err) : Err(Err) { in InstrProfError()
309 assert(Err != instrprof_error::success && "Not an error"); 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()
327 assert(Err == instrprof_error::success && "Multiple errors encountered"); in take()
336 instrprof_error Err;
344 instrprof_error FirstError = instrprof_error::success;
[all …]
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()
DInstrProfWriter.h86 instrprof_error::unsupported_version); in setIsIRLevelProfile()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp69 instrprof_error instrError = IPE.get(); in exitWithError()
71 if (instrError == instrprof_error::unrecognized_format) { 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()
112 case instrprof_error::value_site_count_mismatch: in handleMergeWriterError()
139 SmallSet<instrprof_error, 4> &WriterErrorCodes;
142 SmallSet<instrprof_error, 4> &WriterErrorCodes) in WriterContext()
148 static bool isFatalError(instrprof_error IPE) { in isFatalError()
[all …]
/external/llvm/include/llvm/ProfileData/
DInstrProf.h279 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 …]
DInstrProfReader.h53 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()
DInstrProfWriter.h69 instrprof_error::unsupported_version); in setIsIRLevelProfile()
/external/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp53 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/swiftshader/third_party/llvm-7.0/llvm/unittests/ProfileData/
DInstrProfTest.cpp25 ErrorEquals(instrprof_error Expected, Error E) { in ErrorEquals()
26 instrprof_error Found; in ErrorEquals()
108 ASSERT_TRUE(ErrorEquals(instrprof_error::hash_mismatch, R.takeError())); in TEST_P()
111 ASSERT_TRUE(ErrorEquals(instrprof_error::unknown_function, R.takeError())); in TEST_P()
134 ASSERT_TRUE(ErrorEquals(instrprof_error::hash_mismatch, std::move(E1))); in TEST_P()
137 ASSERT_TRUE(ErrorEquals(instrprof_error::unknown_function, std::move(E2))); in TEST_P()
570 instrprof_error Result; in TEST_P()
572 Result = instrprof_error::success; in TEST_P()
574 ASSERT_EQ(Result, instrprof_error::success); in TEST_P()
577 Result = instrprof_error::success; in TEST_P()
[all …]
/external/llvm/unittests/ProfileData/
DInstrProfTest.cpp29 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/
DCoverageMapping.cpp198 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/swiftshader/third_party/llvm-7.0/llvm/lib/ProfileData/Coverage/
DCoverageMapping.cpp221 instrprof_error IPE = InstrProfError::take(std::move(E)); in loadFunctionRecord()
222 if (IPE == instrprof_error::hash_mismatch) { in loadFunctionRecord()
225 } else if (IPE != instrprof_error::unknown_function) in loadFunctionRecord()
DCoverageMappingReader.cpp427 return make_error<InstrProfError>(instrprof_error::malformed); in insertFunctionRecordIfNeeded()
/external/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp595 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/clang/lib/CodeGen/
DCodeGenPGO.cpp809 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp1019 if (Err == instrprof_error::unknown_function) { in readCounters()
1022 } else if (Err == instrprof_error::hash_mismatch || in readCounters()
1023 Err == instrprof_error::malformed) { in readCounters()