namespace mca {
-void RegisterFileStatistics::initializeRegisterFileInfo() {
+RegisterFileStatistics::RegisterFileStatistics(const llvm::MCSubtargetInfo &sti)
+ : STI(sti) {
const MCSchedModel &SM = STI.getSchedModel();
RegisterFileUsage Empty = {0, 0, 0};
if (!SM.hasExtraProcessorInfo()) {
// There is one entry for each register file implemented by the processor.
llvm::SmallVector<RegisterFileUsage, 4> RegisterFiles;
- void initializeRegisterFileInfo();
-
public:
- RegisterFileStatistics(const llvm::MCSubtargetInfo &sti) : STI(sti) {
- initializeRegisterFileInfo();
- }
+ RegisterFileStatistics(const llvm::MCSubtargetInfo &sti);
void onEvent(const HWInstructionEvent &Event) override;
-
void printView(llvm::raw_ostream &OS) const override;
};
} // namespace mca