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 "llvm/MCA/HWEventListener.h" 20 #include "llvm/Support/raw_ostream.h" 21 22 namespace llvm { 23 namespace mca { 24 25 class View : public HWEventListener { 26 public: 27 virtual void printView(llvm::raw_ostream &OS) const = 0; 28 virtual ~View() = default; 29 void anchor() override; 30 }; 31 } // namespace mca 32 } // namespace llvm 33 34 #endif 35