Home
last modified time | relevance | path

Searched refs:InstructionBenchmark (Results 1 – 22 of 22) sorted by relevance

/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/
H A DTarget.cpp56 InstructionBenchmark::ModeE Mode, const LLVMState &State, in createSnippetGenerator()
59 case InstructionBenchmark::Unknown: in createSnippetGenerator()
61 case InstructionBenchmark::Latency: in createSnippetGenerator()
63 case InstructionBenchmark::Uops: in createSnippetGenerator()
64 case InstructionBenchmark::InverseThroughput: in createSnippetGenerator()
72 InstructionBenchmark::ModeE Mode, const LLVMState &State, in createBenchmarkRunner()
76 case InstructionBenchmark::Unknown: in createBenchmarkRunner()
78 case InstructionBenchmark::Latency: in createBenchmarkRunner()
79 case InstructionBenchmark::InverseThroughput: in createBenchmarkRunner()
90 case InstructionBenchmark::Uops: in createBenchmarkRunner()
[all …]
H A DLatencyBenchmarkRunner.cpp22 const LLVMState &State, InstructionBenchmark::ModeE Mode, in LatencyBenchmarkRunner()
23 InstructionBenchmark::ResultAggregationModeE ResultAgg) in LatencyBenchmarkRunner()
25 assert((Mode == InstructionBenchmark::Latency || in LatencyBenchmarkRunner()
26 Mode == InstructionBenchmark::InverseThroughput) && in LatencyBenchmarkRunner()
96 case InstructionBenchmark::Latency: in runMeasurements()
99 case InstructionBenchmark::InverseThroughput: in runMeasurements()
107 case InstructionBenchmark::MinVariance: { in runMeasurements()
117 case InstructionBenchmark::Min: { in runMeasurements()
123 case InstructionBenchmark::Max: { in runMeasurements()
129 case InstructionBenchmark::Mean: { in runMeasurements()
H A DBenchmarkResult.cpp237 Io.enumCase(Value, "", exegesis::InstructionBenchmark::Unknown); in enumeration()
239 Io.enumCase(Value, "uops", exegesis::InstructionBenchmark::Uops); in enumeration()
241 exegesis::InstructionBenchmark::InverseThroughput); in enumeration()
313 static void mapping(IO &Io, exegesis::InstructionBenchmark &Obj, in mapping()
334 Expected<InstructionBenchmark>
340 InstructionBenchmark Benchmark; in readYaml()
351 Expected<std::vector<InstructionBenchmark>>
357 std::vector<InstructionBenchmark> Benchmarks; in readYamls()
373 Error InstructionBenchmark::writeYamlTo(const LLVMState &State, in writeYamlTo()
386 Error InstructionBenchmark::readYamlFrom(const LLVMState &State, in readYamlFrom()
[all …]
H A DTarget.h152 createSnippetGenerator(InstructionBenchmark::ModeE Mode,
157 InstructionBenchmark::ModeE Mode, const LLVMState &State,
158 InstructionBenchmark::ResultAggregationModeE ResultAggMode =
159 InstructionBenchmark::Min) const;
195 const LLVMState &State, InstructionBenchmark::ModeE Mode,
196 InstructionBenchmark::ResultAggregationModeE ResultAggMode) const;
199 InstructionBenchmark::ResultAggregationModeE ResultAggMode) const;
H A DLatencyBenchmarkRunner.h25 const LLVMState &State, InstructionBenchmark::ModeE Mode,
26 InstructionBenchmark::ResultAggregationModeE ResultAggMode);
33 InstructionBenchmark::ResultAggregationModeE ResultAggMode;
H A DClustering.h33 create(const std::vector<InstructionBenchmark> &Points, ModeE Mode,
95 const std::vector<InstructionBenchmark> &getPoints() const { return Points_; } in getPoints()
124 const std::vector<InstructionBenchmark> &Points,
140 const std::vector<InstructionBenchmark> &Points_;
161 bool validate(InstructionBenchmark::ModeE Mode) const;
H A DSnippetRepetitor.cpp119 SnippetRepetitor::Create(InstructionBenchmark::RepetitionModeE Mode, in Create()
122 case InstructionBenchmark::Duplicate: in Create()
124 case InstructionBenchmark::Loop: in Create()
126 case InstructionBenchmark::AggregateMin: in Create()
H A DBenchmarkRunner.h38 InstructionBenchmark::ModeE Mode);
42 Expected<InstructionBenchmark>
79 const InstructionBenchmark::ModeE Mode;
H A DClustering.cpp92 const std::vector<InstructionBenchmark> &Points, in InstructionBenchmarkClustering()
198 const InstructionBenchmark &Point = Points_[P]; in clusterizeNaive()
257 explicit OpcodeAndConfig(const InstructionBenchmark &IB) in stabilize()
332 const std::vector<InstructionBenchmark> &Points, const ModeE Mode, in create()
377 InstructionBenchmark::ModeE Mode) const { in validate()
380 case InstructionBenchmark::Latency: in validate()
388 case InstructionBenchmark::Uops: in validate()
391 case InstructionBenchmark::InverseThroughput: in validate()
H A DBenchmarkResult.h60 struct InstructionBenchmark { struct
80 static Expected<InstructionBenchmark> readYaml(const LLVMState &State, argument
83 static Expected<std::vector<InstructionBenchmark>>
H A DAnalysis.cpp128 const InstructionBenchmark &Point = Clustering_.getPoints()[PointId]; in printInstructionRowCsv()
169 const InstructionBenchmark &FirstPoint = Clustering.getPoints().front(); in Analysis()
225 const InstructionBenchmark &Point = Points[PointId]; in makePointsPerSchedClass()
280 void Analysis::printPointHtml(const InstructionBenchmark &Point, in printPointHtml()
286 case InstructionBenchmark::Latency: in printPointHtml()
289 case InstructionBenchmark::Uops: in printPointHtml()
290 case InstructionBenchmark::InverseThroughput: in printPointHtml()
358 const InstructionBenchmark::ModeE Mode = Clustering.getPoints()[0].Mode; in measurementsMatch()
H A DBenchmarkRunner.cpp33 InstructionBenchmark::ModeE Mode) in BenchmarkRunner()
135 Expected<InstructionBenchmark> BenchmarkRunner::runConfiguration( in runConfiguration()
139 InstructionBenchmark InstrBenchmark; in runConfiguration()
154 ClearBenchmarkOnReturn(InstructionBenchmark *IB) : IB(IB) {} in runConfiguration()
162 InstructionBenchmark *const IB; in runConfiguration()
H A DSchedClassResolution.cpp261 InstructionBenchmark::ModeE Mode, const MCSubtargetInfo &STI, in getAsPoint()
267 if (Mode == InstructionBenchmark::Latency) { in getAsPoint()
280 } else if (Mode == InstructionBenchmark::Uops) { in getAsPoint()
307 } else if (Mode == InstructionBenchmark::InverseThroughput) { in getAsPoint()
H A DUopsBenchmarkRunner.h25 : BenchmarkRunner(State, InstructionBenchmark::Uops) {} in UopsBenchmarkRunner()
H A DSnippetRepetitor.h32 Create(InstructionBenchmark::RepetitionModeE Mode, const LLVMState &State);
H A DSchedClassResolution.h48 getAsPoint(InstructionBenchmark::ModeE Mode, const MCSubtargetInfo &STI,
H A DAnalysis.h89 void printPointHtml(const InstructionBenchmark &Point,
/llvm-project-15.0.7/llvm/tools/llvm-exegesis/
H A Dllvm-exegesis.cpp73 static cl::opt<exegesis::InstructionBenchmark::ModeE> BenchmarkMode(
80 clEnumValN(exegesis::InstructionBenchmark::Uops, "uops",
87 static cl::opt<exegesis::InstructionBenchmark::ResultAggregationModeE>
100 cl::init(exegesis::InstructionBenchmark::Min));
108 clEnumValN(exegesis::InstructionBenchmark::Loop, "loop",
110 clEnumValN(exegesis::InstructionBenchmark::AggregateMin, "min",
112 cl::init(exegesis::InstructionBenchmark::Duplicate));
325 for (InstructionBenchmark::RepetitionModeE RepMode : in benchmarkMain()
326 {InstructionBenchmark::RepetitionModeE::Duplicate, in benchmarkMain()
327 InstructionBenchmark::RepetitionModeE::Loop}) in benchmarkMain()
[all …]
/llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/
H A DClusteringTest.cpp31 std::vector<InstructionBenchmark> Points(6); in TEST()
72 std::vector<InstructionBenchmark> Points(6); in TEST()
85 std::vector<InstructionBenchmark> Points(6); in TEST()
111 std::vector<InstructionBenchmark> Points(3); in TEST()
128 std::vector<InstructionBenchmark> Points(3); in TEST()
/llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/Mips/
H A DBenchmarkResultTest.cpp58 InstructionBenchmark ToDisk; in TEST_F()
68 ToDisk.Mode = InstructionBenchmark::Latency; in TEST_F()
86 ExitOnErr(InstructionBenchmark::readYaml(State, Filename)); in TEST_F()
102 ExitOnErr(InstructionBenchmark::readYamls(State, Filename)); in TEST_F()
/llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/X86/
H A DBenchmarkResultTest.cpp60 InstructionBenchmark ToDisk; in TEST()
71 ToDisk.Mode = InstructionBenchmark::Latency; in TEST()
91 ExitOnErr(InstructionBenchmark::readYaml(State, Filename)); in TEST()
107 ExitOnErr(InstructionBenchmark::readYamls(State, Filename)); in TEST()
H A DSnippetRepetitorTest.cpp41 void TestCommon(InstructionBenchmark::RepetitionModeE RepetitionMode) { in TestCommon()
69 TestCommon(InstructionBenchmark::Duplicate); in TEST_F()
78 TestCommon(InstructionBenchmark::Loop); in TEST_F()