xref: /llvm-project/bolt/include/bolt/Passes/CacheMetrics.h (revision fd38366e4525c5507bbb2a2fc1f7d113a964224e)
1 //===- bolt/Passes/CacheMetrics.h - Instruction cache metrics ---*- 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 // Functions to show metrics of cache lines.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef BOLT_PASSES_CACHEMETRICS_H
14 #define BOLT_PASSES_CACHEMETRICS_H
15 
16 #include <vector>
17 
18 namespace llvm {
19 
20 class raw_ostream;
21 
22 namespace bolt {
23 class BinaryFunction;
24 namespace CacheMetrics {
25 
26 /// Calculate and print various metrics related to instruction cache performance
27 void printAll(raw_ostream &OS,
28               const std::vector<BinaryFunction *> &BinaryFunctions);
29 
30 } // namespace CacheMetrics
31 } // namespace bolt
32 } // namespace llvm
33 
34 #endif // BOLT_PASSES_CACHEMETRICS_H
35