diff options
Diffstat (limited to 'llvm/tools/llvm-mca/Views/ResourcePressureView.h')
-rw-r--r-- | llvm/tools/llvm-mca/Views/ResourcePressureView.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/llvm/tools/llvm-mca/Views/ResourcePressureView.h b/llvm/tools/llvm-mca/Views/ResourcePressureView.h index ad9c29a55e5..d413bcd80fd 100644 --- a/llvm/tools/llvm-mca/Views/ResourcePressureView.h +++ b/llvm/tools/llvm-mca/Views/ResourcePressureView.h @@ -82,26 +82,17 @@ class ResourcePressureView : public View { std::vector<ResourceCycles> ResourceUsage; unsigned NumResourceUnits; - const llvm::MCInst &GetMCInstFromIndex(unsigned Index) const; - void printResourcePressurePerIteration(llvm::raw_ostream &OS, - unsigned Executions) const; - void printResourcePressurePerInstruction(llvm::raw_ostream &OS, - unsigned Executions) const; - void initialize(); + void printResourcePressurePerIter(llvm::raw_ostream &OS) const; + void printResourcePressurePerInst(llvm::raw_ostream &OS) const; public: ResourcePressureView(const llvm::MCSubtargetInfo &sti, - llvm::MCInstPrinter &Printer, const SourceMgr &SM) - : STI(sti), MCIP(Printer), Source(SM) { - initialize(); - } + llvm::MCInstPrinter &Printer, const SourceMgr &SM); void onEvent(const HWInstructionEvent &Event) override; - void printView(llvm::raw_ostream &OS) const override { - unsigned Executions = Source.getNumIterations(); - printResourcePressurePerIteration(OS, Executions); - printResourcePressurePerInstruction(OS, Executions); + printResourcePressurePerIter(OS); + printResourcePressurePerInst(OS); } }; } // namespace mca |