HomeSort by: relevance | last modified time | path
    Searched refs:Samples (Results 1 - 13 of 13) sorted by relevancy

  /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/
ProfiledCallGraph.h 48 for (const auto &Samples : ProfileMap) {
49 addProfiledCalls(Samples.second);
69 // Note that callsite target samples are completely ignored since they can
104 void addProfiledCalls(const FunctionSamples &Samples) {
105 addProfiledFunction(Samples.getFuncName());
107 for (const auto &Sample : Samples.getBodySamples()) {
110 addProfiledCall(Samples.getFuncName(), Target.first());
114 for (const auto &CallsiteSamples : Samples.getCallsiteSamples()) {
117 addProfiledCall(Samples.getFuncName(), InlinedSamples.first);
SampleProfileProbe.h 93 bool profileIsValid(const Function &F, const FunctionSamples &Samples) const;
145 // indirect call promotion etc. As such, samples corresponding to a source
147 // distribution factor for pseudo probes, samples can be distributed among
  /src/external/apache2/llvm/dist/llvm/tools/llvm-profgen/
CSPreInliner.h 26 ProfiledInlineCandidate(const FunctionSamples *Samples, uint64_t Count)
27 : CalleeSamples(Samples), CallsiteCount(Count),
28 SizeCost(Samples->getBodySamples().size()) {}
CSPreInliner.cpp 64 assert(CallerSamples && "Expect non-null caller samples");
191 const FunctionSamples &Samples = It.second;
192 dbgs() << " [" << Samples.getNameWithContext() << "] "
193 << Samples.getTotalSamples() << ":" << Samples.getHeadSamples()
  /src/external/apache2/llvm/dist/llvm/lib/Target/X86/
X86InsertPrefetch.cpp 51 bool findPrefetchInfo(const FunctionSamples *Samples, const MachineInstr &MI,
73 if (const auto *Samples = TopSamples->findFunctionSamples(Loc))
74 return Samples->findCallTargetMapAt(FunctionSamples::getOffset(Loc),
182 const FunctionSamples *Samples = Reader->getSamplesFor(MF.getFunction());
183 if (!Samples)
204 if (!findPrefetchInfo(Samples, *Current, Prefetches))
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
SampleProfileLoaderBaseUtil.cpp 29 cl::desc("Emit a warning if less than N% of samples in the input profile "
35 "samples but without debug information to use those samples. "));
69 /// Mark as used the sample record for the given function samples at
76 uint64_t Samples) {
81 TotalUsedSamples += Samples;
97 // If there are inlined callsites in this function, count the samples found
99 // total samples, these are callees that were never invoked at runtime.
129 /// Return the number of samples collected in the body of this profile.
131 /// This count does not include samples from cold inlined callsites
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
SampleProfileLoaderBaseUtil.h 42 uint32_t Discriminator, uint64_t Samples);
74 /// Number of samples used from the profile.
76 /// When a sampling record is used for the first time, the samples from
78 /// based on the total number of samples available in this function and
81 /// Note that this accumulator tracks samples used from a single function
SampleProfileLoaderBaseImpl.h 187 /// Samples collected for the body of this function.
188 FunctionSamples *Samples = nullptr;
200 /// Clear all the per-function data used to load samples and propagate weights.
254 /// The "weight" of an instruction \p Inst is the number of samples
258 /// look up the samples collected for \p Inst using BodySamples.
291 Remark << " samples from profile (offset: ";
370 return Samples;
374 it.first->second = Samples->findFunctionSamples(DIL, Reader->getRemapper());
431 BlockWeights[EC] = Samples->getHeadSamples() + 1;
439 /// Since samples may be missing from blocks, we can fill in the gaps by settin
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
SampleContextTracker.cpp 53 FunctionSamples *Samples = ChildNode.getFunctionSamples();
54 if (!Samples)
56 if (Samples->getTotalSamples() > MaxCalleeSamples) {
58 MaxCalleeSamples = Samples->getTotalSamples();
205 // profile for callee with largest total samples will be returned.
252 FunctionSamples *Samples = ContextNode->getFunctionSamples();
253 if (Samples && ContextNode->getParentContext() != &RootContext)
254 Samples->getContext().setState(InlinedContext);
256 return Samples;
325 assert(InlinedSamples && "Expect non-null inlined samples");
    [all...]
SampleProfile.cpp 20 // number of samples found in B.
126 // Command line option to specify the file to read samples from. This is
142 "callsite and function as having 0 samples. Otherwise, treat "
314 // Call site distribution factor to prorate the profile samples for a
329 // Tie breaker using number of samples try to favor smaller functions first
374 void findExternalInlineCandidate(const FunctionSamples *Samples,
434 /// Total number of samples collected in this profile.
436 /// This is the sum of all the samples collected in all the functions executed
560 // should not consume any profile samples.
590 uint64_t Samples = R.get() * Probe->Factor
    [all...]
SampleProfileProbe.cpp 198 const FunctionSamples &Samples) const {
205 if (Desc->getFunctionHash() != Samples.getFunctionHash()) {
293 // context. This will cause samples collected on the probe to be counted
430 // execution count of the probe. The original samples of the probe will
432 // less-than-deal but at least we don't lose any samples.
446 // not consume any profile samples in the subsequent profile annotation.
  /src/external/apache2/llvm/dist/llvm/tools/llvm-profdata/
llvm-profdata.cpp 567 /// Make a copy of the given function samples with all symbol names remapped
570 remapSamples(const sampleprof::FunctionSamples &Samples,
573 Result.setName(Remapper(Samples.getName()));
574 Result.addTotalSamples(Samples.getTotalSamples());
575 Result.addHeadSamples(Samples.getHeadSamples());
576 for (const auto &BodySample : Samples.getBodySamples()) {
586 for (const auto &CallsiteSamples : Samples.getCallsiteSamples()) {
714 FunctionSamples &Samples = Remapper ? Remapped : I->second;
715 StringRef FName = Samples.getNameWithContext();
716 MergeResult(Result, ProfileMap[FName].merge(Samples, Input.Weight))
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/ProfileData/
SampleProf.h 312 /// Increment the number of samples for this record by \p S.
324 /// Add called function \p F with samples \p S.
367 /// Merge the samples in \p Other into this record.
525 /// Representation of the samples collected for a function.
527 /// This data structure contains all the collected samples for the body
576 /// Return the number of samples collected at the given location.
620 /// Return the function samples at the given callsite location.
646 /// Return the total number of samples collected inside the function.
649 /// Return the total number of branch samples that have the function as the
660 // For CS profile, if we already have more accurate head samples
    [all...]

Completed in 30 milliseconds