//===--------------------- InstructionInfoView.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 InstructionInfoView API. /// //===----------------------------------------------------------------------===// #include "Views/InstructionInfoView.h" #include "llvm/Support/FormattedStream.h" #include "llvm/Support/JSON.h" namespace llvm { namespace mca { void InstructionInfoView::printView(raw_ostream &OS) const { … } void InstructionInfoView::collectData( MutableArrayRef<InstructionInfoViewData> IIVD) const { … } // Construct a JSON object from a single InstructionInfoViewData object. json::Object InstructionInfoView::toJSON(const InstructionInfoViewData &IIVD) const { … } json::Value InstructionInfoView::toJSON() const { … } } // namespace mca. } // namespace llvm