Home
last modified time | relevance | path

Searched refs:sampleprof_error (Results 1 – 9 of 9) sorted by relevance

/external/llvm/include/llvm/ProfileData/
DSampleProf.h31 enum class sampleprof_error { enum
45 inline std::error_code make_error_code(sampleprof_error E) { in make_error_code()
49 inline sampleprof_error MergeResult(sampleprof_error &Accumulator, in MergeResult()
50 sampleprof_error Result) { in MergeResult()
53 if (Accumulator == sampleprof_error::success && in MergeResult()
54 Result != sampleprof_error::success) in MergeResult()
63 struct is_error_code_enum<llvm::sampleprof_error> : std::true_type {};
141 sampleprof_error addSamples(uint64_t S, uint64_t Weight = 1) {
146 return sampleprof_error::counter_overflow;
150 return sampleprof_error::counter_overflow;
[all …]
DSampleProfWriter.h52 return sampleprof_error::success; in write()
91 return sampleprof_error::success; in writeHeader()
DSampleProfReader.h294 std::error_code readHeader() override { return sampleprof_error::success; } in readHeader()
/external/llvm/lib/ProfileData/
DSampleProfReader.cpp154 sampleprof_error Result = sampleprof_error::success; in read()
179 return sampleprof_error::malformed; in read()
198 return sampleprof_error::malformed; in read()
249 EC = sampleprof_error::malformed; in readNumber()
251 EC = sampleprof_error::truncated; in readNumber()
253 EC = sampleprof_error::success; in readNumber()
268 EC = sampleprof_error::truncated; in readString()
283 return sampleprof_error::truncated_name_table; in readStringFromTable()
360 return sampleprof_error::success; in readProfile()
382 return sampleprof_error::success; in read()
[all …]
DSampleProf.cpp26 sampleprof_error E = static_cast<sampleprof_error>(IE); in message()
28 case sampleprof_error::success: in message()
30 case sampleprof_error::bad_magic: in message()
32 case sampleprof_error::unsupported_version: in message()
34 case sampleprof_error::too_large: in message()
36 case sampleprof_error::truncated: in message()
38 case sampleprof_error::malformed: in message()
40 case sampleprof_error::unrecognized_format: in message()
42 case sampleprof_error::unsupported_writing_format: in message()
44 case sampleprof_error::truncated_name_table: in message()
[all …]
DSampleProfWriter.cpp82 return sampleprof_error::success; in write()
88 return sampleprof_error::truncated_name_table; in writeNameIdx()
90 return sampleprof_error::success; in writeNameIdx()
136 return sampleprof_error::success; in writeHeader()
177 return sampleprof_error::success; in writeBody()
232 EC = sampleprof_error::unsupported_writing_format; in create()
234 EC = sampleprof_error::unrecognized_format; in create()
/external/llvm/unittests/ProfileData/
DSampleProfTest.cpp104 sampleprof_error Result; in TEST_F()
109 ASSERT_EQ(Result, sampleprof_error::success); in TEST_F()
112 ASSERT_EQ(Result, sampleprof_error::success); in TEST_F()
115 ASSERT_EQ(Result, sampleprof_error::success); in TEST_F()
118 ASSERT_EQ(Result, sampleprof_error::counter_overflow); in TEST_F()
122 ASSERT_EQ(Result, sampleprof_error::counter_overflow); in TEST_F()
126 ASSERT_EQ(Result, sampleprof_error::counter_overflow); in TEST_F()
/external/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp183 sampleprof_error Result = ProfileMap[FName].merge(Samples, Input.Weight); in mergeSampleProfile()
184 if (Result != sampleprof_error::success) { in mergeSampleProfile()
/external/llvm/lib/Transforms/IPO/
DSampleProfile.cpp1231 ProfileIsValid = (Reader->read() == sampleprof_error::success); in INITIALIZE_PASS_DEPENDENCY()