diff options
Diffstat (limited to 'llvm/tools/llvm-mca')
-rw-r--r-- | llvm/tools/llvm-mca/Backend.cpp | 8 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/Dispatch.h | 2 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/DispatchStatistics.h | 4 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/HWEventListener.h | 4 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/RetireControlUnitStatistics.h | 4 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/Scheduler.cpp | 2 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/Scheduler.h | 2 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/SchedulerStatistics.h | 4 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/SummaryView.h | 2 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/TimelineView.h | 2 |
10 files changed, 17 insertions, 17 deletions
diff --git a/llvm/tools/llvm-mca/Backend.cpp b/llvm/tools/llvm-mca/Backend.cpp index d0afa45461c..dbe20125102 100644 --- a/llvm/tools/llvm-mca/Backend.cpp +++ b/llvm/tools/llvm-mca/Backend.cpp @@ -52,10 +52,10 @@ void Backend::runCycle(unsigned Cycle) { void Backend::notifyCycleBegin(unsigned Cycle) { DEBUG(dbgs() << "[E] Cycle begin: " << Cycle << '\n'); for (HWEventListener *Listener : Listeners) - Listener->onCycleBegin(Cycle); + Listener->onCycleBegin(); - DU->cycleEvent(Cycle); - HWS->cycleEvent(Cycle); + DU->cycleEvent(); + HWS->cycleEvent(); } void Backend::notifyInstructionEvent(const HWInstructionEvent &Event) { @@ -88,6 +88,6 @@ void Backend::notifyReleasedBuffers(ArrayRef<unsigned> Buffers) { void Backend::notifyCycleEnd(unsigned Cycle) { DEBUG(dbgs() << "[E] Cycle end: " << Cycle << "\n\n"); for (HWEventListener *Listener : Listeners) - Listener->onCycleEnd(Cycle); + Listener->onCycleEnd(); } } // namespace mca. diff --git a/llvm/tools/llvm-mca/Dispatch.h b/llvm/tools/llvm-mca/Dispatch.h index 3f09ab78611..c08515d40a3 100644 --- a/llvm/tools/llvm-mca/Dispatch.h +++ b/llvm/tools/llvm-mca/Dispatch.h @@ -289,7 +289,7 @@ public: return RAT->collectWrites(Vec, RegID); } - void cycleEvent(unsigned Cycle) { + void cycleEvent() { RCU->cycleEvent(); AvailableEntries = CarryOver >= DispatchWidth ? 0 : DispatchWidth - CarryOver; diff --git a/llvm/tools/llvm-mca/DispatchStatistics.h b/llvm/tools/llvm-mca/DispatchStatistics.h index 220ed84e4a2..941dcb255e0 100644 --- a/llvm/tools/llvm-mca/DispatchStatistics.h +++ b/llvm/tools/llvm-mca/DispatchStatistics.h @@ -67,9 +67,9 @@ public: void onInstructionEvent(const HWInstructionEvent &Event) override; - void onCycleBegin(unsigned Cycle) override { NumCycles++; } + void onCycleBegin() override { NumCycles++; } - void onCycleEnd(unsigned Cycle) override { updateHistograms(); } + void onCycleEnd() override { updateHistograms(); } void onStallEvent(const HWStallEvent &Event) override; diff --git a/llvm/tools/llvm-mca/HWEventListener.h b/llvm/tools/llvm-mca/HWEventListener.h index f6f5fc6763d..4b58115af5d 100644 --- a/llvm/tools/llvm-mca/HWEventListener.h +++ b/llvm/tools/llvm-mca/HWEventListener.h @@ -116,8 +116,8 @@ public: class HWEventListener { public: // Generic events generated by the backend pipeline. - virtual void onCycleBegin(unsigned Cycle) {} - virtual void onCycleEnd(unsigned Cycle) {} + virtual void onCycleBegin() {} + virtual void onCycleEnd() {} virtual void onInstructionEvent(const HWInstructionEvent &Event) {} virtual void onStallEvent(const HWStallEvent &Event) {} diff --git a/llvm/tools/llvm-mca/RetireControlUnitStatistics.h b/llvm/tools/llvm-mca/RetireControlUnitStatistics.h index f3952abe11d..0d4d11f7ddc 100644 --- a/llvm/tools/llvm-mca/RetireControlUnitStatistics.h +++ b/llvm/tools/llvm-mca/RetireControlUnitStatistics.h @@ -50,9 +50,9 @@ public: void onInstructionEvent(const HWInstructionEvent &Event) override; - void onCycleBegin(unsigned Cycle) override { NumCycles++; } + void onCycleBegin() override { NumCycles++; } - void onCycleEnd(unsigned Cycle) override { updateHistograms(); } + void onCycleEnd() override { updateHistograms(); } void printView(llvm::raw_ostream &OS) const override; }; diff --git a/llvm/tools/llvm-mca/Scheduler.cpp b/llvm/tools/llvm-mca/Scheduler.cpp index 6d746cb5609..8f051380ba3 100644 --- a/llvm/tools/llvm-mca/Scheduler.cpp +++ b/llvm/tools/llvm-mca/Scheduler.cpp @@ -284,7 +284,7 @@ void Scheduler::scheduleInstruction(unsigned Idx, Instruction &MCIS) { ReadyQueue[Idx] = &MCIS; } -void Scheduler::cycleEvent(unsigned /* unused */) { +void Scheduler::cycleEvent() { SmallVector<ResourceRef, 8> ResourcesFreed; Resources->cycleEvent(ResourcesFreed); diff --git a/llvm/tools/llvm-mca/Scheduler.h b/llvm/tools/llvm-mca/Scheduler.h index 9f9422c3f1a..f2732203c46 100644 --- a/llvm/tools/llvm-mca/Scheduler.h +++ b/llvm/tools/llvm-mca/Scheduler.h @@ -464,7 +464,7 @@ public: bool canBeDispatched(unsigned Idx, const InstrDesc &Desc) const; void scheduleInstruction(unsigned Idx, Instruction &MCIS); - void cycleEvent(unsigned Cycle); + void cycleEvent(); #ifndef NDEBUG void dump() const; diff --git a/llvm/tools/llvm-mca/SchedulerStatistics.h b/llvm/tools/llvm-mca/SchedulerStatistics.h index 63241159350..bbb7535bdaf 100644 --- a/llvm/tools/llvm-mca/SchedulerStatistics.h +++ b/llvm/tools/llvm-mca/SchedulerStatistics.h @@ -69,9 +69,9 @@ public: void onInstructionEvent(const HWInstructionEvent &Event) override; - void onCycleBegin(unsigned Cycle) override { NumCycles++; } + void onCycleBegin() override { NumCycles++; } - void onCycleEnd(unsigned Cycle) override { updateHistograms(); } + void onCycleEnd() override { updateHistograms(); } // Increases the number of used scheduler queue slots of every buffered // resource in the Buffers set. diff --git a/llvm/tools/llvm-mca/SummaryView.h b/llvm/tools/llvm-mca/SummaryView.h index 083e6b065aa..9c543519469 100644 --- a/llvm/tools/llvm-mca/SummaryView.h +++ b/llvm/tools/llvm-mca/SummaryView.h @@ -45,7 +45,7 @@ public: SummaryView(const SourceMgr &S, unsigned Width) : Source(S), DispatchWidth(Width), TotalCycles(0) {} - void onCycleEnd(unsigned /* unused */) override { ++TotalCycles; } + void onCycleEnd() override { ++TotalCycles; } void printView(llvm::raw_ostream &OS) const override; }; diff --git a/llvm/tools/llvm-mca/TimelineView.h b/llvm/tools/llvm-mca/TimelineView.h index 3ee448699e6..6ec373dd38b 100644 --- a/llvm/tools/llvm-mca/TimelineView.h +++ b/llvm/tools/llvm-mca/TimelineView.h @@ -162,7 +162,7 @@ public: } // Event handlers. - void onCycleBegin(unsigned Cycle) override { CurrentCycle = Cycle; } + void onCycleEnd() override { ++CurrentCycle; } void onInstructionEvent(const HWInstructionEvent &Event) override; // print functionalities. |