blob: 1e40ad66d933d64d7a38e45821ce122b58f3658f [file] [log] [blame]
//===- bolt/Passes/CacheMetrics.h - Instruction cache metrics ---*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Functions to show metrics of cache lines.
//
//===----------------------------------------------------------------------===//
#ifndef BOLT_PASSES_CACHEMETRICS_H
#define BOLT_PASSES_CACHEMETRICS_H
#include <cstdint>
#include <vector>
namespace llvm {
namespace bolt {
class BinaryFunction;
namespace CacheMetrics {
/// Calculate and print various metrics related to instruction cache performance
void printAll(const std::vector<BinaryFunction *> &BinaryFunctions);
} // namespace CacheMetrics
} // namespace bolt
} // namespace llvm
#endif // BOLT_PASSES_CACHEMETRICS_H