Home
last modified time | relevance | path

Searched refs:IterationCount (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/third-party/benchmark/src/
H A Dbenchmark_runner.cc64 static constexpr IterationCount kMaxIterations = 1000000000;
69 IterationCount memory_iterations, in CreateRunReport()
118 void RunInThread(const BenchmarkInstance* b, IterationCount iters, in RunInThread()
231 IterationCount BenchmarkRunner::PredictNumItersNeeded( in PredictNumItersNeeded()
245 const IterationCount max_next_iters = static_cast<IterationCount>( in PredictNumItersNeeded()
249 const IterationCount next_iters = std::min(max_next_iters, kMaxIterations); in PredictNumItersNeeded()
308 IterationCount memory_iterations = 0; in DoOneRepetition()
317 memory_iterations = std::min<IterationCount>(16, iters); in DoOneRepetition()
H A Dcomplexity.cc33 return [](IterationCount n) -> double { return static_cast<double>(n); }; in FittingCurve()
35 return [](IterationCount n) -> double { return std::pow(n, 2); }; in FittingCurve()
37 return [](IterationCount n) -> double { return std::pow(n, 3); }; in FittingCurve()
41 [](IterationCount n) { return kLog2E * log(static_cast<double>(n)); }; in FittingCurve()
44 return [](IterationCount n) { in FittingCurve()
49 return [](IterationCount) { return 1.0; }; in FittingCurve() argument
H A Dbenchmark_runner.h81 IterationCount iters; // preserved between repetitions!
90 IterationCount iters;
95 IterationCount PredictNumItersNeeded(const IterationResults& i) const;
H A Dbenchmark_api_internal.h39 IterationCount iterations() const { return iterations_; } in iterations()
44 State Run(IterationCount iters, int thread_id, internal::ThreadTimer* timer,
65 IterationCount iterations_;
H A Dcounter.cc20 double Finish(Counter const& c, IterationCount iterations, double cpu_time, in Finish()
42 void Finish(UserCounters* l, IterationCount iterations, double cpu_time, in Finish()
H A Dcounter.h24 void Finish(UserCounters* l, IterationCount iterations, double time,
H A Dthread_manager.h40 IterationCount iterations = 0;
H A Dbenchmark_api_internal.cc87 IterationCount iters, int thread_id, internal::ThreadTimer* timer, in Run()
H A Dstatistics.cc110 const IterationCount run_iterations = reports.front().iterations; in ComputeStats()
H A Djson_reporter.cc92 std::string FormatKV(std::string const& key, IterationCount value) { in FormatKV()
H A Dbenchmark_register.cc351 Benchmark* Benchmark::Iterations(IterationCount n) { in Iterations()
H A Dbenchmark.cc136 State::State(IterationCount max_iters, const std::vector<int64_t>& ranges, in State()
/llvm-project-15.0.7/third-party/benchmark/test/
H A Dbasic_test.cc100 benchmark::IterationCount iter_count = 0; in BM_KeepRunning()
114 const benchmark::IterationCount batch_size = 1009; in BM_KeepRunningBatch()
116 static benchmark::IterationCount prior_iter_count = 0; in BM_KeepRunningBatch()
117 benchmark::IterationCount iter_count = 0; in BM_KeepRunningBatch()
136 benchmark::IterationCount iter_count = 0; in BM_RangedFor()
H A Dcomplexity_test.cc82 ->Complexity([](benchmark::IterationCount) { return 1.0; }); in __anon456a40700202() argument
135 ->Complexity([](benchmark::IterationCount n) -> double { in __anon456a40700302()
176 ->Complexity([](benchmark::IterationCount n) { in __anon456a40700402()
H A Dcxx03_test.cc17 volatile benchmark::IterationCount x = state.iterations(); in BM_empty()
/llvm-project-15.0.7/third-party/benchmark/include/benchmark/
H A Dbenchmark.h519 typedef uint64_t IterationCount; typedef
525 typedef double(BigOFunc)(IterationCount);
601 bool KeepRunningBatch(IterationCount n);
751 IterationCount iterations() const { in iterations()
762 IterationCount total_iterations_;
767 IterationCount batch_leftover_;
770 const IterationCount max_iterations;
880 IterationCount cached_;
1009 Benchmark* Iterations(IterationCount n);
1111 IterationCount iterations_;
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp2301 const SCEV *IterationCount = SE.getAddExpr(One, BackedgeTakenCount); in OptimizeMax() local
2302 if (IterationCount != SE.getSCEV(Sel)) return Cond; in OptimizeMax()
2312 } else if (const SCEVSMaxExpr *S = dyn_cast<SCEVSMaxExpr>(IterationCount)) { in OptimizeMax()
2315 } else if (const SCEVUMaxExpr *U = dyn_cast<SCEVUMaxExpr>(IterationCount)) { in OptimizeMax()
6108 const SCEVDbgValueBuilder &IterationCount, in createIterCountExpr()
6130 clone(IterationCount); in createIterCountExpr()
/llvm-project-15.0.7/third-party/benchmark/docs/
H A Duser_guide.md483 ->Range(1<<10, 1<<18)->Complexity([](benchmark::IterationCount n)->double{return n; });