| /llvm-project-15.0.7/libc/benchmarks/automemcpy/lib/ |
| H A D | ResultAnalyzer.cpp | 81 assert(!Samples.empty()); in computeUnbiasedSampleVariance() 82 if (Samples.size() == 1) in computeUnbiasedSampleVariance() 85 for (const double S : Samples) { in computeUnbiasedSampleVariance() 89 return DiffSquaresSum / (Samples.size() - 1); in computeUnbiasedSampleVariance() 93 auto &Samples = Data.BytesPerSecondSamples; in processPerDistributionData() local 94 assert(!Samples.empty()); in processPerDistributionData() 96 const double Sum = std::accumulate(Samples.begin(), Samples.end(), 0.0); in processPerDistributionData() 102 const size_t HalfSize = Samples.size() / 2; in processPerDistributionData() 103 std::nth_element(Samples.begin(), Samples.begin() + HalfSize, Samples.end()); in processPerDistributionData() 104 Data.BytesPerSecondMedian = Samples[HalfSize]; in processPerDistributionData() [all …]
|
| H A D | ResultAnalyzerMain.cpp | 84 std::vector<Sample> Samples; member 90 return O && O.map("benchmarks", JF.Samples); in fromJSON() 128 std::vector<Sample> Samples; in Main() local 131 llvm::append_range(Samples, Result.Samples); in Main() 138 llvm::erase_if(Samples, [&ValidDistributions](const Sample &S) { in Main() 144 std::vector<FunctionData> Functions = getThroughputs(Samples); in Main()
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-profdata/Inputs/ |
| H A D | profile-symbol-list.expected | 2 Samples collected in the function's body { 11 Samples collected in inlined callsites { 13 Samples collected in the function's body { 18 Samples collected in the function's body { 24 Samples collected in the function's body { 29 Samples collected in the function's body {
|
| /llvm-project-15.0.7/bolt/lib/Passes/ |
| H A D | HFSort.cpp | 54 : Samples(Func.samples()), Size(Func.size()), in Cluster() 55 Density((double)Samples / Size) { in Cluster() 60 Samples = 0; in Cluster() 64 Samples += Cg.samples(TargetId); in Cluster() 67 Density = (double)Samples / Size; in Cluster() 110 Samples += Other.Samples; in merge() 111 Density = (double)Samples / Size; in merge() 118 Samples += Other.Samples; in merge() 119 Density = (double)Samples / Size; in merge() 125 Samples = 0; in clear()
|
| H A D | CacheMetrics.cpp | 172 double Samples = 0; in expectedCacheHitRatio() local 174 Samples += Pair.second; in expectedCacheHitRatio() 175 Samples = std::max(Samples, (double)BF->getKnownExecutionCount()); in expectedCacheHitRatio() 176 FunctionSamples[BF] = Samples; in expectedCacheHitRatio() 177 TotalSamples += Samples; in expectedCacheHitRatio() 195 double Samples = FunctionSamples.at(BF); in expectedCacheHitRatio() local 210 Samples -= Pair.second; in expectedCacheHitRatio() 212 assert(Samples >= 0.0 && "Function samples computed incorrectly"); in expectedCacheHitRatio() 214 Misses += Samples * MissProb; in expectedCacheHitRatio()
|
| H A D | HFSortPlus.cpp | 87 : Id(Id_), Samples(Samples_), Size(Size_), Nodes(1, Node) {} in Chain() 89 double density() const { return static_cast<double>(Samples) / Size; } in density() 113 Samples += Other->Samples; in merge() 126 uint64_t Samples; member in llvm::bolt::__anonbf028ece0111::Chain 389 double LongCalls = Chain->Samples - Chain->ShortCalls; in score() 408 double LongCalls = ChainPred->Samples + ChainSucc->Samples - in mergeGain() 410 const double MergedSamples = ChainPred->Samples + ChainSucc->Samples; in mergeGain()
|
| H A D | CallGraph.cpp | 76 CallGraph::NodeId CallGraph::addNode(uint32_t Size, uint64_t Samples) { in addNode() argument 78 Nodes.emplace_back(Size, Samples); in addNode()
|
| H A D | BinaryFunctionCallGraph.cpp | 32 uint64_t Samples) { in addNode() argument 33 NodeId Id = CallGraph::addNode(Size, Samples); in addNode()
|
| /llvm-project-15.0.7/bolt/include/bolt/Passes/ |
| H A D | CallGraph.h | 82 explicit Node(uint32_t Size, uint64_t Samples = 0) 83 : Size(Size), Samples(Samples) {} in Size() 86 uint64_t samples() const { return Samples; } in samples() 94 uint64_t Samples; variable 114 return Nodes[Id].Samples; in samples() 124 NodeId addNode(uint32_t Size, uint64_t Samples = 0); 154 void setSamples(const NodeId Id, uint64_t Samples) { in setSamples() argument 156 Nodes[Id].Samples = Samples; in setSamples()
|
| H A D | HFSort.h | 38 uint64_t samples() const { return Samples; } in samples() 63 uint64_t Samples{0};
|
| H A D | BinaryFunctionCallGraph.h | 42 NodeId addNode(BinaryFunction *BF, uint32_t Size, uint64_t Samples = 0);
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/ |
| H A D | ProfiledCallGraph.h | 70 for (const auto &Samples : ProfileMap) { in ProfiledCallGraph() local 71 addProfiledCalls(Samples.second); in ProfiledCallGraph() 158 void addProfiledCalls(const FunctionSamples &Samples) { in addProfiledCalls() argument 159 addProfiledFunction(Samples.getFuncName()); in addProfiledCalls() 161 for (const auto &Sample : Samples.getBodySamples()) { in addProfiledCalls() 164 addProfiledCall(Samples.getFuncName(), Target.first(), Target.second); in addProfiledCalls() 168 for (const auto &CallsiteSamples : Samples.getCallsiteSamples()) { in addProfiledCalls() 171 addProfiledCall(Samples.getFuncName(), InlinedSamples.first, in addProfiledCalls()
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-profdata/ |
| H A D | overflow-sample.test | 8 SHOW_OVERFLOW-DAG: Samples collected in the function's body { 14 SHOW_OVERFLOW-DAG: Samples collected in the function's body { 19 SHOW_OVERFLOW-DAG: Samples collected in the function's body { 29 SHOW_NO_OVERFLOW-DAG: Samples collected in the function's body { 35 SHOW_NO_OVERFLOW-DAG: Samples collected in the function's body { 40 SHOW_NO_OVERFLOW-DAG: Samples collected in the function's body {
|
| H A D | compact-sample.proftext | 6 # CHECK-NEXT: Samples collected in the function's body { 7 # CHECK: Samples collected in inlined callsites {
|
| H A D | sample-fs.test | 7 SHOW1: Samples collected in the function's body { 19 SHOW2: Samples collected in the function's body { 29 SHOW3: Samples collected in the function's body {
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86InsertPrefetch.cpp | 52 bool findPrefetchInfo(const FunctionSamples *Samples, const MachineInstr &MI, 74 if (const auto *Samples = TopSamples->findFunctionSamples(Loc)) in getPrefetchHints() local 75 return Samples->findCallTargetMapAt(FunctionSamples::getOffset(Loc), in getPrefetchHints() 183 const FunctionSamples *Samples = Reader->getSamplesFor(MF.getFunction()); in runOnMachineFunction() local 184 if (!Samples) in runOnMachineFunction() 205 if (!findPrefetchInfo(Samples, *Current, Prefetches)) in runOnMachineFunction()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | SampleContextTracker.cpp | 54 FunctionSamples *Samples = ChildNode.getFunctionSamples(); in getHottestChildContext() local 55 if (!Samples) in getHottestChildContext() 57 if (Samples->getTotalSamples() > MaxCalleeSamples) { in getHottestChildContext() 59 MaxCalleeSamples = Samples->getTotalSamples(); in getHottestChildContext() 287 FunctionSamples *Samples = ContextNode->getFunctionSamples(); in getContextSamplesFor() local 288 if (Samples && ContextNode->getParentContext() != &RootContext) in getContextSamplesFor() 289 Samples->getContext().setState(InlinedContext); in getContextSamplesFor() 291 return Samples; in getContextSamplesFor()
|
| H A D | SampleProfile.cpp | 617 uint64_t Samples = R.get() * Probe->Factor; in getProbeWeight() local 622 Remark << "Applied " << ore::NV("NumSamples", Samples); in getProbeWeight() 636 return Samples; in getProbeWeight() 745 return Samples; in findFunctionSamples() 1002 CallBase *CB, const FunctionSamples *Samples, in findExternalInlineCandidate() argument 1011 if (!Samples) { in findExternalInlineCandidate() 1020 assert(Samples && "expect non-null caller profile"); in findExternalInlineCandidate() 1751 if (!ProbeManager->profileIsValid(F, *Samples)) { in emitAnnotations() 2139 Samples = ContextTracker->getBaseSamplesFor(F); in runOnFunction() 2141 Samples = Reader->getSamplesFor(F); in runOnFunction() [all …]
|
| /llvm-project-15.0.7/libc/benchmarks/ |
| H A D | LibcBenchmark.h | 202 size_t Samples = 0; variable 221 ++Samples; 228 Samples >= Options.MinSamples && ChangeRatio < Options.Epsilon) 230 else if (Samples >= Options.MaxSamples)
|
| /llvm-project-15.0.7/llvm/tools/llvm-profgen/ |
| H A D | CSPreInliner.h | 27 ProfiledInlineCandidate(const FunctionSamples *Samples, uint64_t Count, in ProfiledInlineCandidate() 29 : CalleeSamples(Samples), CallsiteCount(Count), SizeCost(Size) {} in ProfiledInlineCandidate()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseImpl.h | 211 FunctionSamples *Samples = nullptr; 401 return Samples; 405 it.first->second = Samples->findFunctionSamples(DIL, Reader->getRemapper()); 462 BlockWeights[EC] = Samples->getHeadSamples() + 1; 894 ProfileCount(Samples->getHeadSamples() + 1, Function::PCT_Real), 939 unsigned Used = CoverageTracker.countUsedRecords(Samples, PSI); 940 unsigned Total = CoverageTracker.countBodyRecords(Samples, PSI); 953 uint64_t Total = CoverageTracker.countBodySamples(Samples, PSI);
|
| H A D | SampleProfileLoaderBaseUtil.h | 38 uint32_t Discriminator, uint64_t Samples);
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseUtil.cpp | 88 uint64_t Samples) { in markSamplesUsed() argument 93 TotalUsedSamples += Samples; in markSamplesUsed()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MIRSampleProfile.cpp | 276 Samples = Reader->getSamplesFor(Func); in runOnFunction() 277 if (!Samples || Samples->empty()) in runOnFunction()
|
| /llvm-project-15.0.7/libc/benchmarks/automemcpy/include/automemcpy/ |
| H A D | ResultAnalyzer.h | 97 std::vector<FunctionData> getThroughputs(ArrayRef<Sample> Samples);
|