[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / tools / llvm-mca / Views / View.h
blob3b52511b4d2922264a896cb9024a66a419b06da2
1 //===----------------------- View.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 /// \file
9 ///
10 /// This file defines the main interface for Views. Each view contributes a
11 /// portion of the final report generated by the tool.
12 ///
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_TOOLS_LLVM_MCA_VIEW_H
16 #define LLVM_TOOLS_LLVM_MCA_VIEW_H
18 #include "llvm/MCA/HWEventListener.h"
19 #include "llvm/Support/raw_ostream.h"
21 namespace llvm {
22 namespace mca {
24 class View : public HWEventListener {
25 public:
26 virtual void printView(llvm::raw_ostream &OS) const = 0;
27 virtual ~View() = default;
28 void anchor() override;
30 } // namespace mca
31 } // namespace llvm
33 #endif