OSDN Git Service

[llvm-mca] Remove unused InstRef formal from pre and post execute callbacks. NFC.
authorMatt Davis <Matthew.Davis@sony.com>
Sat, 14 Jul 2018 00:10:42 +0000 (00:10 +0000)
committerMatt Davis <Matthew.Davis@sony.com>
Sat, 14 Jul 2018 00:10:42 +0000 (00:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337077 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-mca/FetchStage.cpp
tools/llvm-mca/FetchStage.h
tools/llvm-mca/Pipeline.cpp
tools/llvm-mca/Pipeline.h
tools/llvm-mca/Stage.h

index 654f177..3da117c 100644 (file)
@@ -29,7 +29,7 @@ bool FetchStage::execute(InstRef &IR) {
   return true;
 }
 
-void FetchStage::postExecute(const InstRef &IR) { SM.updateNext(); }
+void FetchStage::postExecute() { SM.updateNext(); }
 
 void FetchStage::cycleEnd() {
   // Find the first instruction which hasn't been retired.
index c824b32..620075d 100644 (file)
@@ -36,7 +36,7 @@ public:
 
   bool hasWorkToComplete() const override final;
   bool execute(InstRef &IR) override final;
-  void postExecute(const InstRef &IR) override final;
+  void postExecute() override final;
   void cycleEnd() override final;
 };
 
index eb95b0c..7c937e7 100644 (file)
@@ -47,14 +47,14 @@ bool Pipeline::executeStages(InstRef &IR) {
   return true;
 }
 
-void Pipeline::preExecuteStages(const InstRef &IR) {
+void Pipeline::preExecuteStages() {
   for (const std::unique_ptr<Stage> &S : Stages)
-    S->preExecute(IR);
+    S->preExecute();
 }
 
-void Pipeline::postExecuteStages(const InstRef &IR) {
+void Pipeline::postExecuteStages() {
   for (const std::unique_ptr<Stage> &S : Stages)
-    S->postExecute(IR);
+    S->postExecute();
 }
 
 void Pipeline::run() {
@@ -75,10 +75,10 @@ void Pipeline::runCycle() {
   // Continue executing this cycle until any stage claims it cannot make
   // progress.
   while (true) {
-    preExecuteStages(IR);
+    preExecuteStages();
     if (!executeStages(IR))
       break;
-    postExecuteStages(IR);
+    postExecuteStages();
   }
 
   for (auto &S : Stages)
index 6bafc24..6916e42 100644 (file)
@@ -59,9 +59,9 @@ class Pipeline {
   std::set<HWEventListener *> Listeners;
   unsigned Cycles;
 
-  void preExecuteStages(const InstRef &IR);
+  void preExecuteStages();
   bool executeStages(InstRef &IR);
-  void postExecuteStages(const InstRef &IR);
+  void postExecuteStages();
   void runCycle();
 
   bool hasWorkToProcess();
index 2821662..9dbdcd8 100644 (file)
@@ -50,12 +50,12 @@ public:
 
   /// Called prior to executing the list of stages.
   /// This can be called multiple times per cycle.
-  virtual void preExecute(const InstRef &IR) {}
+  virtual void preExecute() {}
 
   /// Called as a cleanup and finalization phase after each execution.
   /// This will only be called if all stages return a success from their
   /// execute callback.  This can be called multiple times per cycle.
-  virtual void postExecute(const InstRef &IR) {}
+  virtual void postExecute() {}
 
   /// The primary action that this stage performs.
   /// Returning false prevents successor stages from having their 'execute'