This repository was archived by the owner on Mar 28, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ bool FetchStage::execute(InstRef &IR) {
29
29
return true ;
30
30
}
31
31
32
- void FetchStage::postExecute (const InstRef &IR ) { SM.updateNext (); }
32
+ void FetchStage::postExecute () { SM.updateNext (); }
33
33
34
34
void FetchStage::cycleEnd () {
35
35
// Find the first instruction which hasn't been retired.
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class FetchStage : public Stage {
36
36
37
37
bool hasWorkToComplete () const override final ;
38
38
bool execute (InstRef &IR) override final ;
39
- void postExecute (const InstRef &IR ) override final ;
39
+ void postExecute () override final ;
40
40
void cycleEnd () override final ;
41
41
};
42
42
Original file line number Diff line number Diff line change @@ -47,14 +47,14 @@ bool Pipeline::executeStages(InstRef &IR) {
47
47
return true ;
48
48
}
49
49
50
- void Pipeline::preExecuteStages (const InstRef &IR ) {
50
+ void Pipeline::preExecuteStages () {
51
51
for (const std::unique_ptr<Stage> &S : Stages)
52
- S->preExecute (IR );
52
+ S->preExecute ();
53
53
}
54
54
55
- void Pipeline::postExecuteStages (const InstRef &IR ) {
55
+ void Pipeline::postExecuteStages () {
56
56
for (const std::unique_ptr<Stage> &S : Stages)
57
- S->postExecute (IR );
57
+ S->postExecute ();
58
58
}
59
59
60
60
void Pipeline::run () {
@@ -75,10 +75,10 @@ void Pipeline::runCycle() {
75
75
// Continue executing this cycle until any stage claims it cannot make
76
76
// progress.
77
77
while (true ) {
78
- preExecuteStages (IR );
78
+ preExecuteStages ();
79
79
if (!executeStages (IR))
80
80
break ;
81
- postExecuteStages (IR );
81
+ postExecuteStages ();
82
82
}
83
83
84
84
for (auto &S : Stages)
Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ class Pipeline {
59
59
std::set<HWEventListener *> Listeners;
60
60
unsigned Cycles;
61
61
62
- void preExecuteStages (const InstRef &IR );
62
+ void preExecuteStages ();
63
63
bool executeStages (InstRef &IR);
64
- void postExecuteStages (const InstRef &IR );
64
+ void postExecuteStages ();
65
65
void runCycle ();
66
66
67
67
bool hasWorkToProcess ();
Original file line number Diff line number Diff line change @@ -50,12 +50,12 @@ class Stage {
50
50
51
51
// / Called prior to executing the list of stages.
52
52
// / This can be called multiple times per cycle.
53
- virtual void preExecute (const InstRef &IR ) {}
53
+ virtual void preExecute () {}
54
54
55
55
// / Called as a cleanup and finalization phase after each execution.
56
56
// / This will only be called if all stages return a success from their
57
57
// / execute callback. This can be called multiple times per cycle.
58
- virtual void postExecute (const InstRef &IR ) {}
58
+ virtual void postExecute () {}
59
59
60
60
// / The primary action that this stage performs.
61
61
// / Returning false prevents successor stages from having their 'execute'
You can’t perform that action at this time.
0 commit comments