[llvm-mca] Removed unused argument from cycleEvent. NFC
llvm-svn: 329895
diff --git a/llvm/tools/llvm-mca/Backend.cpp b/llvm/tools/llvm-mca/Backend.cpp
index d0afa45..dbe2012 100644
--- a/llvm/tools/llvm-mca/Backend.cpp
+++ b/llvm/tools/llvm-mca/Backend.cpp
@@ -52,10 +52,10 @@
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::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 3f09ab7..c08515d 100644
--- a/llvm/tools/llvm-mca/Dispatch.h
+++ b/llvm/tools/llvm-mca/Dispatch.h
@@ -289,7 +289,7 @@
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 220ed84..941dcb2 100644
--- a/llvm/tools/llvm-mca/DispatchStatistics.h
+++ b/llvm/tools/llvm-mca/DispatchStatistics.h
@@ -67,9 +67,9 @@
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 f6f5fc6..4b58115 100644
--- a/llvm/tools/llvm-mca/HWEventListener.h
+++ b/llvm/tools/llvm-mca/HWEventListener.h
@@ -116,8 +116,8 @@
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 f3952ab..0d4d11f 100644
--- a/llvm/tools/llvm-mca/RetireControlUnitStatistics.h
+++ b/llvm/tools/llvm-mca/RetireControlUnitStatistics.h
@@ -50,9 +50,9 @@
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 6d746cb..8f05138 100644
--- a/llvm/tools/llvm-mca/Scheduler.cpp
+++ b/llvm/tools/llvm-mca/Scheduler.cpp
@@ -284,7 +284,7 @@
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 9f9422c..f273220 100644
--- a/llvm/tools/llvm-mca/Scheduler.h
+++ b/llvm/tools/llvm-mca/Scheduler.h
@@ -464,7 +464,7 @@
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 6324115..bbb7535 100644
--- a/llvm/tools/llvm-mca/SchedulerStatistics.h
+++ b/llvm/tools/llvm-mca/SchedulerStatistics.h
@@ -69,9 +69,9 @@
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 083e6b0..9c54351 100644
--- a/llvm/tools/llvm-mca/SummaryView.h
+++ b/llvm/tools/llvm-mca/SummaryView.h
@@ -45,7 +45,7 @@
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 3ee4486..6ec373d 100644
--- a/llvm/tools/llvm-mca/TimelineView.h
+++ b/llvm/tools/llvm-mca/TimelineView.h
@@ -162,7 +162,7 @@
}
// Event handlers.
- void onCycleBegin(unsigned Cycle) override { CurrentCycle = Cycle; }
+ void onCycleEnd() override { ++CurrentCycle; }
void onInstructionEvent(const HWInstructionEvent &Event) override;
// print functionalities.