Clang] Fix expansion of response files in -Wp after integrated-cc1 change
[llvm-project.git] / llvm / tools / llvm-exegesis / lib / LatencyBenchmarkRunner.h
blobd4bb93416c204817de58519143a6bb67eb25e70d
1 //===-- LatencyBenchmarkRunner.h --------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 ///
9 /// \file
10 /// A BenchmarkRunner implementation to measure instruction latencies.
11 ///
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_TOOLS_LLVM_EXEGESIS_LATENCY_H
15 #define LLVM_TOOLS_LLVM_EXEGESIS_LATENCY_H
17 #include "BenchmarkRunner.h"
19 namespace llvm {
20 namespace exegesis {
22 class LatencyBenchmarkRunner : public BenchmarkRunner {
23 public:
24 LatencyBenchmarkRunner(const LLVMState &State,
25 InstructionBenchmark::ModeE Mode);
26 ~LatencyBenchmarkRunner() override;
28 private:
29 Expected<std::vector<BenchmarkMeasure>>
30 runMeasurements(const FunctionExecutor &Executor) const override;
32 } // namespace exegesis
33 } // namespace llvm
35 #endif // LLVM_TOOLS_LLVM_EXEGESIS_LATENCY_H