1 //===-- LatencyBenchmarkRunner.h --------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 /// A BenchmarkRunner implementation to measure instruction latencies.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_TOOLS_LLVM_EXEGESIS_LATENCY_H
15 #define LLVM_TOOLS_LLVM_EXEGESIS_LATENCY_H
17 #include "BenchmarkRunner.h"
22 class LatencyBenchmarkRunner
: public BenchmarkRunner
{
24 LatencyBenchmarkRunner(
25 const LLVMState
&State
, InstructionBenchmark::ModeE Mode
,
26 InstructionBenchmark::ResultAggregationModeE ResultAggMode
);
27 ~LatencyBenchmarkRunner() override
;
30 Expected
<std::vector
<BenchmarkMeasure
>>
31 runMeasurements(const FunctionExecutor
&Executor
) const override
;
33 InstructionBenchmark::ResultAggregationModeE ResultAggMode
;
35 } // namespace exegesis
38 #endif // LLVM_TOOLS_LLVM_EXEGESIS_LATENCY_H