Skip to content

Commit daf5356

Browse files
authored
Merge pull request #10191 from The-OpenROAD-Project-staging/par-tidy-naming
par: adjust naming to Google-style (excluding method names)
2 parents bca4783 + abd33b1 commit daf5356

3 files changed

Lines changed: 244 additions & 238 deletions

File tree

src/par/include/par/PartitionMgr.h

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace par {
4141
struct MasterInfo
4242
{
4343
int count = 0;
44-
bool isMacro = false;
44+
bool is_macro = false;
4545
};
4646

4747
class Cluster;
@@ -240,7 +240,7 @@ class PartitionMgr
240240
const char* port_prefix = "partition_",
241241
const char* module_suffix = "_partition");
242242

243-
void writeArtNetSpec(const char* fileName);
243+
void writeArtNetSpec(const char* file_name);
244244

245245
private:
246246
odb::dbBlock* getDbBlock() const;
@@ -258,21 +258,21 @@ class PartitionMgr
258258
sta::NetworkReader* network);
259259
// ArtNet SpecGen
260260
void printMemoryUsage();
261-
void getFromODB(std::map<std::string, MasterInfo>& onlyUseMasters,
261+
void getFromODB(std::map<std::string, MasterInfo>& only_use_masters,
262262
std::string& top_name,
263-
int& numInsts,
264-
int& numMacros,
265-
int& numPIs,
266-
int& numPOs,
267-
int& numSeq);
268-
void getFromSTA(int& Dmax, int& MDmax);
269-
void BuildTimingPath(int& Dmax, int& MDmax);
270-
void getFromPAR(float& Rratio, float& p, float& q, float& avgK);
271-
void getRents(float& Rratio, float& p, float& q, float& avgK);
263+
int& num_insts,
264+
int& num_macros,
265+
int& num_pi,
266+
int& num_po,
267+
int& num_seq);
268+
void getFromSTA(int& max_flop_depth, int& max_macro_depth);
269+
void BuildTimingPath(int& max_flop_depth, int& max_macro_depth);
270+
void getFromPAR(float& r_ratio, float& p, float& q, float& avg_k);
271+
void getRents(float& r_ratio, float& p, float& q, float& avg_k);
272272
std::tuple<double, double, double> fitRent(const double* x,
273273
const double* y,
274274
int n);
275-
void linCurvFit(ModuleMgr& modMgr, float& Rratio, float& p, float& q);
275+
void linCurvFit(ModuleMgr& mod_mgr, float& r_ratio, float& p, float& q);
276276
void fit_mul(const double* x,
277277
size_t xstride,
278278
const double* y,
@@ -282,27 +282,27 @@ class PartitionMgr
282282
double* cov_11,
283283
double* sumsq);
284284
bool partitionCluster(const std::shared_ptr<TritonPart>& triton_part,
285-
ModuleMgr& modMgr,
285+
ModuleMgr& mod_mgr,
286286
SharedClusterVector& cv);
287287
int getClusterIONum(std::vector<bool>& inside,
288288
const std::shared_ptr<Cluster>& cluster);
289289
void Partitioning(const std::shared_ptr<TritonPart>& triton_part,
290290
const std::shared_ptr<Cluster>& cluster,
291-
SharedClusterVector& resultCV);
292-
void writeFile(const std::map<std::string, MasterInfo>& onlyUseMasters,
291+
SharedClusterVector& result_cv);
292+
void writeFile(const std::map<std::string, MasterInfo>& only_use_masters,
293293
const std::string& top_name,
294-
int numInsts,
295-
int numMacros,
296-
int numPIs,
297-
int numPOs,
298-
int numSeq,
299-
int Dmax,
300-
int MDmax,
301-
float Rratio,
294+
int num_insts,
295+
int num_macros,
296+
int num_pi,
297+
int num_po,
298+
int num_seq,
299+
int max_flop_depth,
300+
int max_macro_depth,
301+
float r_ratio,
302302
float p,
303303
float q,
304-
float avgK,
305-
const char* fileName);
304+
float avg_k,
305+
const char* file_name);
306306

307307
odb::dbDatabase* db_ = nullptr;
308308
sta::dbNetwork* db_network_ = nullptr;

0 commit comments

Comments
 (0)