[llvm-mca] Removed unused argument from cycleEvent. NFC

llvm-svn: 329895
This commit is contained in:
Andrea Di Biagio 2018-04-12 10:49:40 +00:00
parent f051bbf874
commit b8c627c79e
10 changed files with 17 additions and 17 deletions

View File

@ -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.

View File

@ -289,7 +289,7 @@ public:
return RAT->collectWrites(Vec, RegID);
}
void cycleEvent(unsigned Cycle) {
void cycleEvent() {
RCU->cycleEvent();
AvailableEntries =
CarryOver >= DispatchWidth ? 0 : DispatchWidth - CarryOver;

View File

@ -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;

View File

@ -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) {}

View File

@ -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;
};

View File

@ -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);

View File

@ -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;

View File

@ -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.

View File

@ -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;
};

View File

@ -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.