Home
last modified time | relevance | path

Searched refs:BenchmarkMeasure (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/
H A DLatencyBenchmarkRunner.cpp66 Expected<std::vector<BenchmarkMeasure>> LatencyBenchmarkRunner::runMeasurements( in runMeasurements()
111 std::vector<BenchmarkMeasure> Result; in runMeasurements()
114 Result.push_back(BenchmarkMeasure::Create(ModeName, Value)); in runMeasurements()
118 std::vector<BenchmarkMeasure> Result; in runMeasurements()
120 BenchmarkMeasure::Create(ModeName, findMin(AccumulatedValues))); in runMeasurements()
124 std::vector<BenchmarkMeasure> Result; in runMeasurements()
126 BenchmarkMeasure::Create(ModeName, findMax(AccumulatedValues))); in runMeasurements()
130 std::vector<BenchmarkMeasure> Result; in runMeasurements()
132 BenchmarkMeasure::Create(ModeName, findMean(AccumulatedValues))); in runMeasurements()
H A DBenchmarkResult.h45 struct BenchmarkMeasure { struct
47 static BenchmarkMeasure Create(std::string Key, double Value) { in Create() argument
73 std::vector<BenchmarkMeasure> Measurements; argument
94 bool operator==(const BenchmarkMeasure &A, const BenchmarkMeasure &B);
102 void push(const BenchmarkMeasure &BM);
H A DUopsBenchmarkRunner.cpp18 Expected<std::vector<BenchmarkMeasure>>
20 std::vector<BenchmarkMeasure> Result; in runMeasurements()
31 Result.push_back(BenchmarkMeasure::Create(IssueCounter->ProcResName, in runMeasurements()
40 BenchmarkMeasure::Create("NumMicroOps", *ExpectedCounterValue)); in runMeasurements()
H A DClustering.h111 bool isNeighbour(const std::vector<BenchmarkMeasure> &P, in isNeighbour()
112 const std::vector<BenchmarkMeasure> &Q, in isNeighbour()
157 std::vector<BenchmarkMeasure> getAsPoint() const;
159 void addPoint(ArrayRef<BenchmarkMeasure> Point);
H A DSchedClassResolution.cpp260 std::vector<BenchmarkMeasure> ResolvedSchedClass::getAsPoint( in getAsPoint()
265 std::vector<BenchmarkMeasure> SchedClassPoint(NumMeasurements); in getAsPoint()
269 BenchmarkMeasure &LatencyMeasure = SchedClassPoint[0]; in getAsPoint()
282 BenchmarkMeasure &Measure = std::get<0>(I); in getAsPoint()
309 BenchmarkMeasure &RThroughputMeasure = SchedClassPoint[0]; in getAsPoint()
H A DClustering.cpp68 ArrayRef<BenchmarkMeasure> Measurements = Points_[P].Measurements; in areAllNeighbours()
73 const std::vector<BenchmarkMeasure> Centroid = G.getAsPoint(); in areAllNeighbours()
102 const std::vector<BenchmarkMeasure> *LastMeasurement = nullptr; in validateAndSetup()
359 void SchedClassClusterCentroid::addPoint(ArrayRef<BenchmarkMeasure> Point) { in addPoint()
369 std::vector<BenchmarkMeasure> SchedClassClusterCentroid::getAsPoint() const { in getAsPoint()
370 std::vector<BenchmarkMeasure> ClusterCenterPoint(Representative.size()); in getAsPoint()
H A DBenchmarkResult.cpp214 template <> struct SequenceElementTraits<exegesis::BenchmarkMeasure> {
220 template <> struct MappingTraits<exegesis::BenchmarkMeasure> {
221 static void mapping(IO &Io, exegesis::BenchmarkMeasure &Obj) { in mapping()
416 void PerInstructionStats::push(const BenchmarkMeasure &BM) { in push()
426 bool operator==(const BenchmarkMeasure &A, const BenchmarkMeasure &B) { in operator ==()
H A DBenchmarkRunner.cpp226 for (BenchmarkMeasure &BM : *NewMeasurements) { in runConfiguration()
244 BenchmarkMeasure &Measurement = std::get<0>(I); in runConfiguration()
245 BenchmarkMeasure &NewMeasurement = std::get<1>(I); in runConfiguration()
H A DUopsBenchmarkRunner.h31 Expected<std::vector<BenchmarkMeasure>>
H A DLatencyBenchmarkRunner.h30 Expected<std::vector<BenchmarkMeasure>>
H A DSchedClassResolution.h47 std::vector<BenchmarkMeasure>
H A DBenchmarkRunner.h82 virtual Expected<std::vector<BenchmarkMeasure>>
H A DAnalysis.cpp363 const std::vector<BenchmarkMeasure> ClusterCenterPoint = in measurementsMatch()
366 const std::vector<BenchmarkMeasure> SchedClassPoint = in measurementsMatch()
/llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/Mips/
H A DBenchmarkResultTest.cpp72 ToDisk.Measurements.push_back(BenchmarkMeasure{"a", 1, 1}); in TEST_F()
73 ToDisk.Measurements.push_back(BenchmarkMeasure{"b", 2, 2}); in TEST_F()
120 Stats.push(BenchmarkMeasure{"a", 0.5, 0.0}); in TEST_F()
121 Stats.push(BenchmarkMeasure{"a", 1.5, 0.0}); in TEST_F()
122 Stats.push(BenchmarkMeasure{"a", -1.0, 0.0}); in TEST_F()
123 Stats.push(BenchmarkMeasure{"a", 0.0, 0.0}); in TEST_F()
/llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/X86/
H A DBenchmarkResultTest.cpp75 ToDisk.Measurements.push_back(BenchmarkMeasure{"a", 1, 1}); in TEST()
76 ToDisk.Measurements.push_back(BenchmarkMeasure{"b", 2, 2}); in TEST()
125 Stats.push(BenchmarkMeasure{"a", 0.5, 0.0}); in TEST()
126 Stats.push(BenchmarkMeasure{"a", 1.5, 0.0}); in TEST()
127 Stats.push(BenchmarkMeasure{"a", -1.0, 0.0}); in TEST()
128 Stats.push(BenchmarkMeasure{"a", 0.0, 0.0}); in TEST()