• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===----------------------- View.h -----------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 /// \file
10 ///
11 /// This file defines the main interface for Views. Each view contributes a
12 /// portion of the final report generated by the tool.
13 ///
14 //===----------------------------------------------------------------------===//
15 
16 #ifndef LLVM_TOOLS_LLVM_MCA_VIEW_H
17 #define LLVM_TOOLS_LLVM_MCA_VIEW_H
18 
19 #include "HWEventListener.h"
20 #include "llvm/Support/raw_ostream.h"
21 
22 namespace mca {
23 
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;
29 };
30 } // namespace mca
31 
32 #endif
33