//===--------------------- DispatchStatistics.cpp ---------------*- 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 // //===----------------------------------------------------------------------===// /// \file /// /// This file implements the DispatchStatistics interface. /// //===----------------------------------------------------------------------===// #include "Views/DispatchStatistics.h" #include "llvm/Support/Format.h" namespace llvm { namespace mca { void DispatchStatistics::onEvent(const HWStallEvent &Event) { … } void DispatchStatistics::onEvent(const HWInstructionEvent &Event) { … } void DispatchStatistics::printDispatchHistogram(raw_ostream &OS) const { … } static void printStalls(raw_ostream &OS, unsigned NumStalls, unsigned NumCycles) { … } void DispatchStatistics::printDispatchStalls(raw_ostream &OS) const { … } json::Value DispatchStatistics::toJSON() const { … } } // namespace mca } // namespace llvm