mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[llvm-mca] Removed unused argument from cycleEvent. NFC
llvm-svn: 329895
This commit is contained in:
parent
f051bbf874
commit
b8c627c79e
@ -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.
|
||||
|
@ -289,7 +289,7 @@ public:
|
||||
return RAT->collectWrites(Vec, RegID);
|
||||
}
|
||||
|
||||
void cycleEvent(unsigned Cycle) {
|
||||
void cycleEvent() {
|
||||
RCU->cycleEvent();
|
||||
AvailableEntries =
|
||||
CarryOver >= DispatchWidth ? 0 : DispatchWidth - CarryOver;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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) {}
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user