Home
last modified time | relevance | path

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

/external/llvm/include/llvm/ProfileData/
DSampleProfWriter.h38 virtual std::error_code write(const FunctionSamples &S) = 0;
43 std::error_code write(const StringMap<FunctionSamples> &ProfileMap) { in write()
47 const FunctionSamples &Profile = I.second; in write()
73 writeHeader(const StringMap<FunctionSamples> &ProfileMap) = 0;
82 void computeSummary(const StringMap<FunctionSamples> &ProfileMap);
88 std::error_code write(const FunctionSamples &S) override;
95 writeHeader(const StringMap<FunctionSamples> &ProfileMap) override { in writeHeader()
113 std::error_code write(const FunctionSamples &S) override;
120 writeHeader(const StringMap<FunctionSamples> &ProfileMap) override;
123 std::error_code writeBody(const FunctionSamples &S);
[all …]
DSampleProf.h173 class FunctionSamples;
174 typedef std::map<LineLocation, FunctionSamples> CallsiteSampleMap;
181 class FunctionSamples {
183 FunctionSamples() : Name(), TotalSamples(0), TotalHeadSamples(0) {}
226 FunctionSamples &functionSamplesAt(const LineLocation &Loc) {
231 const FunctionSamples *findFunctionSamplesAt(const LineLocation &Loc) const {
259 sampleprof_error merge(const FunctionSamples &Other, uint64_t Weight = 1) {
271 const FunctionSamples &Rec = I.second;
324 raw_ostream &operator<<(raw_ostream &OS, const FunctionSamples &FS);
DSampleProfReader.h277 FunctionSamples *getSamplesFor(const Function &F) { in getSamplesFor()
282 StringMap<FunctionSamples> &getProfiles() { return Profiles; } in getProfiles()
307 StringMap<FunctionSamples> Profiles;
375 std::error_code readProfile(FunctionSamples &FProfile);
393 typedef SmallVector<FunctionSamples *, 10> InlineCallStack;
DProfileCommon.h34 class FunctionSamples; variable
85 void addRecord(const sampleprof::FunctionSamples &FS);
/external/llvm/lib/ProfileData/
DSampleProfWriter.cpp40 std::error_code SampleProfileWriterText::write(const FunctionSamples &S) { in write()
64 SampleSorter<LineLocation, FunctionSamples> SortedCallsiteSamples( in write()
69 const FunctionSamples &CalleeSamples = I->second; in write()
96 void SampleProfileWriterBinary::addNames(const FunctionSamples &S) { in addNames()
106 const FunctionSamples &CalleeSamples = J.second; in addNames()
113 const StringMap<FunctionSamples> &ProfileMap) { in writeHeader()
155 std::error_code SampleProfileWriterBinary::writeBody(const FunctionSamples &S) { in writeBody()
185 const FunctionSamples &CalleeSamples = J.second; in writeBody()
198 std::error_code SampleProfileWriterBinary::write(const FunctionSamples &S) { in write()
257 const StringMap<FunctionSamples> &ProfileMap) { in computeSummary()
[all …]
DSampleProf.cpp99 void FunctionSamples::print(raw_ostream &OS, unsigned Indent) const { in print()
120 SampleSorter<LineLocation, FunctionSamples> SortedCallsiteSamples( in print()
134 const FunctionSamples &FS) { in operator <<()
139 void FunctionSamples::dump(void) const { print(dbgs(), 0); } in dump()
DSampleProfReader.cpp178 Profiles[FName] = FunctionSamples(); in read()
179 FunctionSamples &FProfile = Profiles[FName]; in read()
202 FunctionSamples &FSamples = InlineStack.back()->functionSamplesAt( in read()
211 FunctionSamples &FProfile = *InlineStack.back(); in read()
289 SampleProfileReaderBinary::readProfile(FunctionSamples &FProfile) { in readProfile()
355 FunctionSamples &CalleeProfile = in readProfile()
375 Profiles[*FName] = FunctionSamples(); in read()
376 FunctionSamples &FProfile = Profiles[*FName]; in read()
608 FunctionSamples *FProfile = nullptr; in readOneFunctionProfile()
624 FunctionSamples *CallerProfile = InlineStack.front(); in readOneFunctionProfile()
[all …]
DProfileSummaryBuilder.cpp49 const sampleprof::FunctionSamples &FS) { in addRecord()
/external/llvm/lib/Transforms/IPO/
DSampleProfile.cpp115 const FunctionSamples *findCalleeFunctionSamples(const CallInst &I) const;
116 const FunctionSamples *findFunctionSamples(const Instruction &I) const;
176 FunctionSamples *Samples;
221 bool markSamplesUsed(const FunctionSamples *FS, uint32_t LineOffset,
224 unsigned countUsedRecords(const FunctionSamples *FS) const;
225 unsigned countBodyRecords(const FunctionSamples *FS) const;
227 uint64_t countBodySamples(const FunctionSamples *FS) const;
235 typedef DenseMap<const FunctionSamples *, BodySampleCoverageMap>
279 bool callsiteIsHot(const FunctionSamples *CallerFS, in callsiteIsHot()
280 const FunctionSamples *CallsiteFS) { in callsiteIsHot()
[all …]
/external/llvm/unittests/ProfileData/
DSampleProfTest.cpp70 FunctionSamples FooSamples; in testRoundTrip()
81 FunctionSamples BarSamples; in testRoundTrip()
87 StringMap<FunctionSamples> Profiles; in testRoundTrip()
103 StringMap<FunctionSamples> &ReadProfiles = Reader->getProfiles(); in testRoundTrip()
106 FunctionSamples &ReadFooSamples = ReadProfiles[FooName]; in testRoundTrip()
110 FunctionSamples &ReadBarSamples = ReadProfiles[BarName]; in testRoundTrip()
178 FunctionSamples FooSamples; in TEST_F()
/external/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp178 StringMap<FunctionSamples> ProfileMap; in mergeSampleProfile()
195 StringMap<FunctionSamples> &Profiles = Reader->getProfiles(); in mergeSampleProfile()
196 for (StringMap<FunctionSamples>::iterator I = Profiles.begin(), in mergeSampleProfile()
200 FunctionSamples &Samples = I->second; in mergeSampleProfile()