1 //===----------------------- View.h -----------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// This file defines the main interface for Views. Each view contributes a
12 /// portion of the final report generated by the tool.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_TOOLS_LLVM_MCA_VIEW_H
17 #define LLVM_TOOLS_LLVM_MCA_VIEW_H
19 #include "HWEventListener.h"
20 #include "llvm/Support/raw_ostream.h"
24 class View : public HWEventListener {
26 virtual void printView(llvm::raw_ostream &OS) const = 0;
27 virtual ~View() = default;
28 void anchor() override;