Andrea Di Biagio | 8af3fe8 | 2018-03-08 16:08:43 +0000 | [diff] [blame] | 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 | }; |
Andrea Di Biagio | 94fafdf | 2018-03-24 16:05:36 +0000 | [diff] [blame] | 30 | } // namespace mca |
Andrea Di Biagio | 8af3fe8 | 2018-03-08 16:08:43 +0000 | [diff] [blame] | 31 | |
| 32 | #endif |