diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-07-13 09:27:34 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-07-13 09:27:34 +0000 |
commit | ef6b8a331f950fa3ed199569b013e20dadee01cf (patch) | |
tree | 817618e8ba88e834f0136a856eb184e3a20926d5 | |
parent | 7c3c0f24a3cebaa7744b38ed1ca018427edd2074 (diff) | |
download | bcm5719-llvm-ef6b8a331f950fa3ed199569b013e20dadee01cf.tar.gz bcm5719-llvm-ef6b8a331f950fa3ed199569b013e20dadee01cf.zip |
[llvm-mca] Removed unused arguments from methods in class Pipeline. NFC
llvm-svn: 336983
-rw-r--r-- | llvm/tools/llvm-mca/Pipeline.cpp | 22 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/Pipeline.h | 7 |
2 files changed, 15 insertions, 14 deletions
diff --git a/llvm/tools/llvm-mca/Pipeline.cpp b/llvm/tools/llvm-mca/Pipeline.cpp index ebaacb27a9f..eb95b0c496f 100644 --- a/llvm/tools/llvm-mca/Pipeline.cpp +++ b/llvm/tools/llvm-mca/Pipeline.cpp @@ -58,13 +58,15 @@ void Pipeline::postExecuteStages(const InstRef &IR) { } void Pipeline::run() { - while (hasWorkToProcess()) - runCycle(Cycles++); + while (hasWorkToProcess()) { + notifyCycleBegin(); + runCycle(); + notifyCycleEnd(); + ++Cycles; + } } -void Pipeline::runCycle(unsigned Cycle) { - notifyCycleBegin(Cycle); - +void Pipeline::runCycle() { // Update the stages before we do any processing for this cycle. InstRef IR; for (auto &S : Stages) @@ -81,18 +83,16 @@ void Pipeline::runCycle(unsigned Cycle) { for (auto &S : Stages) S->cycleEnd(); - - notifyCycleEnd(Cycle); } -void Pipeline::notifyCycleBegin(unsigned Cycle) { - LLVM_DEBUG(dbgs() << "[E] Cycle begin: " << Cycle << '\n'); +void Pipeline::notifyCycleBegin() { + LLVM_DEBUG(dbgs() << "[E] Cycle begin: " << Cycles << '\n'); for (HWEventListener *Listener : Listeners) Listener->onCycleBegin(); } -void Pipeline::notifyCycleEnd(unsigned Cycle) { - LLVM_DEBUG(dbgs() << "[E] Cycle end: " << Cycle << "\n\n"); +void Pipeline::notifyCycleEnd() { + LLVM_DEBUG(dbgs() << "[E] Cycle end: " << Cycles << "\n\n"); for (HWEventListener *Listener : Listeners) Listener->onCycleEnd(); } diff --git a/llvm/tools/llvm-mca/Pipeline.h b/llvm/tools/llvm-mca/Pipeline.h index 888d9c9d368..ca355784b1e 100644 --- a/llvm/tools/llvm-mca/Pipeline.h +++ b/llvm/tools/llvm-mca/Pipeline.h @@ -62,8 +62,11 @@ class Pipeline { void preExecuteStages(const InstRef &IR); bool executeStages(InstRef &IR); void postExecuteStages(const InstRef &IR); + void runCycle(); + bool hasWorkToProcess(); - void runCycle(unsigned Cycle); + void notifyCycleBegin(); + void notifyCycleEnd(); public: Pipeline(unsigned DispatchWidth = 0, unsigned RegisterFileSize = 0, @@ -73,8 +76,6 @@ public: void appendStage(std::unique_ptr<Stage> S) { Stages.push_back(std::move(S)); } void run(); void addEventListener(HWEventListener *Listener); - void notifyCycleBegin(unsigned Cycle); - void notifyCycleEnd(unsigned Cycle); }; } // namespace mca |