misc: Fix coding style for class-opening braces
The systemc dir was not included in this fix.
First it was identified that there were only occurrences
at 0, 1, and 2 levels of indentation, using:
grep -nrE --exclude-dir=systemc \
"^ *class [A-Za-z].* {$" src/
Then the following commands were run to replace:
<indent level>class X ... {
by:
<indent level>class X ...
<indent level>{
Level 0:
grep -nrl --exclude-dir=systemc
"^class [A-Za-z].* {$" src/ | \
xargs sed -Ei \
's/^class ([A-Za-z].*) \{$/class \1\n\{/g'
Level 1:
grep -nrl --exclude-dir=systemc \
"^ class [A-Za-z].* {$" src/ | \
xargs sed -Ei \
's/^ class ([A-Za-z].*) \{$/ class \1\n \{/g'
and so on.
Change-Id: I17615ce16a333d69867b27c7bae0f4fdafd8b2eb
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39015
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
588df4be85
commit
469f0671d1
@@ -89,7 +89,8 @@ class FUPool : public SimObject
|
||||
* by iterating through it, thus leaving free units at the head of the
|
||||
* queue.
|
||||
*/
|
||||
class FUIdxQueue {
|
||||
class FUIdxQueue
|
||||
{
|
||||
public:
|
||||
/** Constructs a circular queue of FU indices. */
|
||||
FUIdxQueue()
|
||||
|
||||
@@ -94,7 +94,8 @@ class InstructionQueue
|
||||
typedef typename std::list<DynInstPtr>::iterator ListIt;
|
||||
|
||||
/** FU completion event class. */
|
||||
class FUCompletion : public Event {
|
||||
class FUCompletion : public Event
|
||||
{
|
||||
private:
|
||||
/** Executing instruction. */
|
||||
DynInstPtr inst;
|
||||
|
||||
@@ -173,7 +173,8 @@ class MemDepUnit
|
||||
* when the instruction is ready to execute and what instructions depend
|
||||
* upon it.
|
||||
*/
|
||||
class MemDepEntry {
|
||||
class MemDepEntry
|
||||
{
|
||||
public:
|
||||
/** Constructs a memory dependence entry. */
|
||||
MemDepEntry(const DynInstPtr &new_inst)
|
||||
|
||||
@@ -49,7 +49,8 @@
|
||||
#include "params/SimpleTrace.hh"
|
||||
#include "sim/probe/probe.hh"
|
||||
|
||||
class SimpleTrace : public ProbeListenerObject {
|
||||
class SimpleTrace : public ProbeListenerObject
|
||||
{
|
||||
|
||||
public:
|
||||
SimpleTrace(const SimpleTraceParams ¶ms):
|
||||
|
||||
@@ -71,7 +71,8 @@ class PCEventScope
|
||||
class PCEventQueue : public PCEventScope
|
||||
{
|
||||
protected:
|
||||
class MapCompare {
|
||||
class MapCompare
|
||||
{
|
||||
public:
|
||||
bool
|
||||
operator()(PCEvent * const &l, PCEvent * const &r) const
|
||||
|
||||
@@ -51,7 +51,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
/**
|
||||
* Branch information data
|
||||
*/
|
||||
class MPPBranchInfo {
|
||||
class MPPBranchInfo
|
||||
{
|
||||
/** pc of the branch */
|
||||
const unsigned int pc;
|
||||
/** pc of the branch, shifted 2 bits to the right */
|
||||
@@ -167,7 +168,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
* Local history entries, each enty contains the history of directions
|
||||
* taken by a given branch.
|
||||
*/
|
||||
class LocalHistories {
|
||||
class LocalHistories
|
||||
{
|
||||
/** The array of histories */
|
||||
std::vector<unsigned int> localHistories;
|
||||
/** Size in bits of each history entry */
|
||||
@@ -480,7 +482,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
|
||||
/** Available features */
|
||||
|
||||
class GHIST : public HistorySpec {
|
||||
class GHIST : public HistorySpec
|
||||
{
|
||||
public:
|
||||
GHIST(int p1, int p2, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -531,7 +534,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
}
|
||||
};
|
||||
|
||||
class ACYCLIC : public HistorySpec {
|
||||
class ACYCLIC : public HistorySpec
|
||||
{
|
||||
public:
|
||||
ACYCLIC(int p1, int p2, int p3, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -579,7 +583,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
}
|
||||
};
|
||||
|
||||
class MODHIST : public HistorySpec {
|
||||
class MODHIST : public HistorySpec
|
||||
{
|
||||
public:
|
||||
MODHIST(int p1, int p2, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -608,7 +613,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
}
|
||||
};
|
||||
|
||||
class BIAS : public HistorySpec {
|
||||
class BIAS : public HistorySpec
|
||||
{
|
||||
public:
|
||||
BIAS(double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -623,7 +629,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
};
|
||||
|
||||
|
||||
class RECENCY : public HistorySpec {
|
||||
class RECENCY : public HistorySpec
|
||||
{
|
||||
public:
|
||||
RECENCY(int p1, int p2, int p3, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -665,7 +672,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
}
|
||||
};
|
||||
|
||||
class IMLI : public HistorySpec {
|
||||
class IMLI : public HistorySpec
|
||||
{
|
||||
public:
|
||||
IMLI(int p1, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -686,7 +694,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
}
|
||||
};
|
||||
|
||||
class PATH : public HistorySpec {
|
||||
class PATH : public HistorySpec
|
||||
{
|
||||
public:
|
||||
PATH(int p1, int p2, int p3, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -732,7 +741,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
}
|
||||
};
|
||||
|
||||
class LOCAL : public HistorySpec {
|
||||
class LOCAL : public HistorySpec
|
||||
{
|
||||
public:
|
||||
LOCAL(int p1, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -754,7 +764,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
}
|
||||
};
|
||||
|
||||
class MODPATH : public HistorySpec {
|
||||
class MODPATH : public HistorySpec
|
||||
{
|
||||
public:
|
||||
MODPATH(int p1, int p2, int p3, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -781,7 +792,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
}
|
||||
};
|
||||
|
||||
class GHISTPATH : public HistorySpec {
|
||||
class GHISTPATH : public HistorySpec
|
||||
{
|
||||
public:
|
||||
GHISTPATH(int p1, int p2, int p3, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -853,7 +865,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
}
|
||||
};
|
||||
|
||||
class GHISTMODPATH : public HistorySpec {
|
||||
class GHISTMODPATH : public HistorySpec
|
||||
{
|
||||
public:
|
||||
GHISTMODPATH(int p1, int p2, int p3, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -885,7 +898,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
}
|
||||
};
|
||||
|
||||
class BLURRYPATH : public HistorySpec {
|
||||
class BLURRYPATH : public HistorySpec
|
||||
{
|
||||
public:
|
||||
BLURRYPATH(int p1, int p2, int p3, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -931,7 +945,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
}
|
||||
};
|
||||
|
||||
class RECENCYPOS : public HistorySpec {
|
||||
class RECENCYPOS : public HistorySpec
|
||||
{
|
||||
public:
|
||||
RECENCYPOS(int p1, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
@@ -972,7 +987,8 @@ class MultiperspectivePerceptron : public BPredUnit
|
||||
}
|
||||
};
|
||||
|
||||
class SGHISTPATH : public HistorySpec {
|
||||
class SGHISTPATH : public HistorySpec
|
||||
{
|
||||
public:
|
||||
SGHISTPATH(int p1, int p2, int p3, double coeff, int size, int width,
|
||||
MultiperspectivePerceptron &mpp)
|
||||
|
||||
@@ -43,7 +43,8 @@
|
||||
#include "cpu/pred/multiperspective_perceptron.hh"
|
||||
#include "params/MultiperspectivePerceptron64KB.hh"
|
||||
|
||||
class MultiperspectivePerceptron64KB : public MultiperspectivePerceptron {
|
||||
class MultiperspectivePerceptron64KB : public MultiperspectivePerceptron
|
||||
{
|
||||
void createSpecs() override;
|
||||
public:
|
||||
MultiperspectivePerceptron64KB(
|
||||
|
||||
@@ -43,7 +43,8 @@
|
||||
#include "cpu/pred/multiperspective_perceptron.hh"
|
||||
#include "params/MultiperspectivePerceptron8KB.hh"
|
||||
|
||||
class MultiperspectivePerceptron8KB : public MultiperspectivePerceptron {
|
||||
class MultiperspectivePerceptron8KB : public MultiperspectivePerceptron
|
||||
{
|
||||
void createSpecs() override;
|
||||
public:
|
||||
MultiperspectivePerceptron8KB(
|
||||
|
||||
@@ -48,7 +48,8 @@
|
||||
#include "params/MPP_TAGE.hh"
|
||||
#include "params/MultiperspectivePerceptronTAGE.hh"
|
||||
|
||||
class MPP_TAGE : public TAGEBase {
|
||||
class MPP_TAGE : public TAGEBase
|
||||
{
|
||||
std::vector<unsigned int> tunedHistoryLengths;
|
||||
public:
|
||||
struct BranchInfo : public TAGEBase::BranchInfo {
|
||||
@@ -82,7 +83,8 @@ class MPP_TAGE : public TAGEBase {
|
||||
bool taken, Addr branch_pc, Addr target);
|
||||
};
|
||||
|
||||
class MPP_LoopPredictor : public LoopPredictor {
|
||||
class MPP_LoopPredictor : public LoopPredictor
|
||||
{
|
||||
public:
|
||||
MPP_LoopPredictor(const MPP_LoopPredictorParams &p) : LoopPredictor(p)
|
||||
{}
|
||||
@@ -91,7 +93,8 @@ class MPP_LoopPredictor : public LoopPredictor {
|
||||
bool optionalAgeInc() const override;
|
||||
};
|
||||
|
||||
class MPP_StatisticalCorrector : public StatisticalCorrector {
|
||||
class MPP_StatisticalCorrector : public StatisticalCorrector
|
||||
{
|
||||
protected:
|
||||
int8_t thirdH;
|
||||
// global branch history variation GEHL
|
||||
|
||||
@@ -43,7 +43,8 @@
|
||||
#include "params/MPP_StatisticalCorrector_64KB.hh"
|
||||
#include "params/MultiperspectivePerceptronTAGE64KB.hh"
|
||||
|
||||
class MPP_StatisticalCorrector_64KB : public MPP_StatisticalCorrector {
|
||||
class MPP_StatisticalCorrector_64KB : public MPP_StatisticalCorrector
|
||||
{
|
||||
const unsigned numEntriesSecondLocalHistories;
|
||||
const unsigned numEntriesThirdLocalHistories;
|
||||
|
||||
|
||||
@@ -49,7 +49,8 @@
|
||||
#include "params/TAGE_SC_L_LoopPredictor.hh"
|
||||
#include "params/TAGE_SC_L_TAGE.hh"
|
||||
|
||||
class TAGE_SC_L_TAGE : public TAGEBase {
|
||||
class TAGE_SC_L_TAGE : public TAGEBase
|
||||
{
|
||||
const unsigned firstLongTagTable;
|
||||
const unsigned longTagsSize;
|
||||
const unsigned shortTagsSize;
|
||||
|
||||
@@ -50,7 +50,8 @@
|
||||
#include "params/TAGE_SC_L_64KB_StatisticalCorrector.hh"
|
||||
#include "params/TAGE_SC_L_TAGE_64KB.hh"
|
||||
|
||||
class TAGE_SC_L_TAGE_64KB : public TAGE_SC_L_TAGE {
|
||||
class TAGE_SC_L_TAGE_64KB : public TAGE_SC_L_TAGE
|
||||
{
|
||||
public:
|
||||
TAGE_SC_L_TAGE_64KB(const TAGE_SC_L_TAGE_64KBParams &p) : TAGE_SC_L_TAGE(p)
|
||||
{}
|
||||
|
||||
@@ -47,7 +47,8 @@ class Episode
|
||||
typedef AddressManager::Location Location;
|
||||
typedef AddressManager::Value Value;
|
||||
|
||||
class Action {
|
||||
class Action
|
||||
{
|
||||
public:
|
||||
enum class Type {
|
||||
ACQUIRE,
|
||||
|
||||
Reference in New Issue
Block a user