1 //===----------------------- View.h -----------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
10 /// This file defines the main interface for Views. Each view contributes a
11 /// portion of the final report generated by the tool.
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"
24 class View
: public HWEventListener
{
26 virtual void printView(llvm::raw_ostream
&OS
) const = 0;
27 virtual ~View() = default;
28 void anchor() override
;