Home
last modified time | relevance | path

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

/external/llvm/include/llvm/ProfileData/
DSampleProfWriter.h37 virtual std::error_code write(StringRef FName, const FunctionSamples &S) = 0;
42 std::error_code write(const StringMap<FunctionSamples> &ProfileMap) { in write()
48 const FunctionSamples &Profile = I.second; in write()
74 writeHeader(const StringMap<FunctionSamples> &ProfileMap) = 0;
83 std::error_code write(StringRef FName, const FunctionSamples &S) override;
90 writeHeader(const StringMap<FunctionSamples> &ProfileMap) override { in writeHeader()
108 std::error_code write(StringRef F, const FunctionSamples &S) override;
115 writeHeader(const StringMap<FunctionSamples> &ProfileMap) override;
117 std::error_code writeBody(StringRef FName, const FunctionSamples &S);
121 void addNames(const FunctionSamples &S);
DSampleProf.h203 class FunctionSamples;
204 typedef std::map<CallsiteLocation, FunctionSamples> CallsiteSampleMap;
211 class FunctionSamples {
213 FunctionSamples() : TotalSamples(0), TotalHeadSamples(0) {}
268 FunctionSamples &functionSamplesAt(const CallsiteLocation &Loc) {
273 const FunctionSamples *
302 sampleprof_error merge(const FunctionSamples &Other, uint64_t Weight = 1) {
313 const FunctionSamples &Rec = I.second;
357 raw_ostream &operator<<(raw_ostream &OS, const FunctionSamples &FS);
DSampleProfReader.h252 FunctionSamples *getSamplesFor(const Function &F) { in getSamplesFor()
257 StringMap<FunctionSamples> &getProfiles() { return Profiles; } in getProfiles()
279 StringMap<FunctionSamples> Profiles;
341 std::error_code readProfile(FunctionSamples &FProfile);
353 typedef SmallVector<FunctionSamples *, 10> InlineCallStack;
/external/llvm/unittests/ProfileData/
DSampleProfTest.cpp54 FunctionSamples FooSamples; in testRoundTrip()
60 FunctionSamples BarSamples; in testRoundTrip()
65 StringMap<FunctionSamples> Profiles; in testRoundTrip()
81 StringMap<FunctionSamples> &ReadProfiles = Reader->getProfiles(); in testRoundTrip()
84 FunctionSamples &ReadFooSamples = ReadProfiles[FooName]; in testRoundTrip()
88 FunctionSamples &ReadBarSamples = ReadProfiles[BarName]; in testRoundTrip()
107 FunctionSamples FooSamples; in TEST_F()
/external/llvm/lib/ProfileData/
DSampleProfWriter.cpp41 const FunctionSamples &S) { in write()
66 SampleSorter<CallsiteLocation, FunctionSamples> SortedCallsiteSamples( in write()
71 const FunctionSamples &CalleeSamples = I->second; in write()
98 void SampleProfileWriterBinary::addNames(const FunctionSamples &S) { in addNames()
109 const FunctionSamples &CalleeSamples = J.second; in addNames()
116 const StringMap<FunctionSamples> &ProfileMap) { in writeHeader()
140 const FunctionSamples &S) { in writeBody()
170 const FunctionSamples &CalleeSamples = J.second; in writeBody()
184 const FunctionSamples &S) { in write()
DSampleProf.cpp109 void FunctionSamples::print(raw_ostream &OS, unsigned Indent) const { in print()
130 SampleSorter<CallsiteLocation, FunctionSamples> SortedCallsiteSamples( in print()
144 const FunctionSamples &FS) { in operator <<()
149 void FunctionSamples::dump(void) const { print(dbgs(), 0); } in dump()
DSampleProfReader.cpp181 Profiles[FName] = FunctionSamples(); in read()
182 FunctionSamples &FProfile = Profiles[FName]; in read()
204 FunctionSamples &FSamples = InlineStack.back()->functionSamplesAt( in read()
212 FunctionSamples &FProfile = *InlineStack.back(); in read()
288 SampleProfileReaderBinary::readProfile(FunctionSamples &FProfile) { in readProfile()
354 FunctionSamples &CalleeProfile = FProfile.functionSamplesAt( in readProfile()
373 Profiles[*FName] = FunctionSamples(); in read()
374 FunctionSamples &FProfile = Profiles[*FName]; in read()
545 FunctionSamples *FProfile = nullptr; in readOneFunctionProfile()
561 FunctionSamples *CallerProfile = InlineStack.front(); in readOneFunctionProfile()
[all …]
/external/llvm/lib/Transforms/IPO/
DSampleProfile.cpp133 const FunctionSamples *findCalleeFunctionSamples(const CallInst &I) const;
134 const FunctionSamples *findFunctionSamples(const Instruction &I) const;
194 FunctionSamples *Samples;
213 bool markSamplesUsed(const FunctionSamples *FS, uint32_t LineOffset,
216 unsigned countUsedRecords(const FunctionSamples *FS) const;
217 unsigned countBodyRecords(const FunctionSamples *FS) const;
219 uint64_t countBodySamples(const FunctionSamples *FS) const;
227 typedef DenseMap<const FunctionSamples *, BodySampleCoverageMap>
271 bool callsiteIsHot(const FunctionSamples *CallerFS, in callsiteIsHot()
272 const FunctionSamples *CallsiteFS) { in callsiteIsHot()
[all …]
/external/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp160 StringMap<FunctionSamples> ProfileMap; in mergeSampleProfile()
177 StringMap<FunctionSamples> &Profiles = Reader->getProfiles(); in mergeSampleProfile()
178 for (StringMap<FunctionSamples>::iterator I = Profiles.begin(), in mergeSampleProfile()
182 FunctionSamples &Samples = I->second; in mergeSampleProfile()