[llvm-mca] Views are now independent from resource masks. NFCI
This change removes method Backend::getProcResourceMasks() and simplifies some
logic in the Views. This effectively removes yet another dependency between the
views and the Backend.
No functional change intended.
llvm-svn: 327214
diff --git a/llvm/tools/llvm-mca/ResourcePressureView.h b/llvm/tools/llvm-mca/ResourcePressureView.h
index 77c07be..105aa40 100644
--- a/llvm/tools/llvm-mca/ResourcePressureView.h
+++ b/llvm/tools/llvm-mca/ResourcePressureView.h
@@ -87,14 +87,13 @@
unsigned Executions) const;
void printResourcePressurePerInstruction(llvm::raw_ostream &OS,
unsigned Executions) const;
- void initialize(const llvm::ArrayRef<uint64_t> ProcResoureMasks);
+ void initialize();
public:
ResourcePressureView(const llvm::MCSubtargetInfo &ST,
- llvm::MCInstPrinter &Printer, const SourceMgr &SM,
- const llvm::ArrayRef<uint64_t> ProcResourceMasks)
+ llvm::MCInstPrinter &Printer, const SourceMgr &SM)
: STI(ST), MCIP(Printer), Source(SM) {
- initialize(ProcResourceMasks);
+ initialize();
}
void onInstructionIssued(