Skip to content

Commit d0c1aa5

Browse files
committed
Don't use using utl::RCX; in header files to not pollute namespace.
While at it: same for `utl::GPL`. Signed-off-by: Henner Zeller <[email protected]>
1 parent 771bf8e commit d0c1aa5

File tree

6 files changed

+24
-20
lines changed

6 files changed

+24
-20
lines changed

src/gpl/src/initialPlace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void InitialPlace::doBicgstabPlace(int threads)
8787
}
8888

8989
if (std::isnan(error.x) || std::isnan(error.y)) {
90-
log_->warn(GPL,
90+
log_->warn(utl::GPL,
9191
154,
9292
"Conjugate gradient initial placement solver failed at "
9393
"iteration {}. ",
@@ -162,7 +162,7 @@ void InitialPlace::placeInstsCenter()
162162
}
163163

164164
debugPrint(log_,
165-
GPL,
165+
utl::GPL,
166166
"init",
167167
1,
168168
"[InitialPlace] origin position counters: region center = {}, db "

src/gpl/src/solver.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ struct ResidualError
2626

2727
using Eigen::BiCGSTAB;
2828
using Eigen::IdentityPreconditioner;
29-
using utl::GPL;
3029

3130
using SMatrix = Eigen::SparseMatrix<float, Eigen::RowMajor>;
3231

src/rcx/include/rcx/extSolverGen.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
namespace rcx {
1212
using utl::Logger;
13-
using utl::RCX;
1413

1514
class extProcess;
1615

src/rcx/src/extFlow_v2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ int extMain::initSearch(LayerDimensionData& tables,
140140

141141
tables.maxWidth = maxWidth;
142142

143-
logger_->info(RCX, 43, "{} wires to be extracted", totWireCnt);
143+
logger_->info(utl::RCX, 43, "{} wires to be extracted", totWireCnt);
144144

145145
return layerCnt;
146146
}
@@ -808,7 +808,7 @@ bool extRCModel::readRules(char* name,
808808
if (cornerCnt > 0) {
809809
if ((rulesFileModelCnt > 0) && (rulesFileModelCnt < cornerCnt)) {
810810
logger_->warn(
811-
RCX,
811+
utl::RCX,
812812
226,
813813
"There were {} extraction models defined but only {} exists "
814814
"in the extraction rules file {}",
@@ -832,7 +832,7 @@ bool extRCModel::readRules(char* name,
832832
break;
833833
}
834834
if (kk == rulesFileModelCnt) {
835-
logger_->warn(RCX,
835+
logger_->warn(utl::RCX,
836836
228,
837837
"Cannot find model index {} in extRules file {}",
838838
modelIndex,

src/rcx/src/extSolverGen.cpp

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include "parse.h"
1212
#include "rcx/extModelGen.h"
13+
#include "utl/Logger.h"
1314

1415
namespace rcx {
1516

@@ -23,7 +24,7 @@ uint extSolverGen::genSolverPatterns(const char* process_name,
2324
const char* s_list)
2425
{
2526
if (!setWidthSpaceMultipliers(w_list, s_list)) {
26-
logger_->warn(RCX,
27+
logger_->warn(utl::RCX,
2728
235,
2829
"Width {} and Space {} multiplier lists are NOT correct\n",
2930
w_list,
@@ -49,7 +50,7 @@ uint extSolverGen::genSolverPatterns(const char* process_name,
4950
setDiagModel(2);
5051
cnt1 += linesDiagUnder();
5152

52-
logger_->info(RCX, 246, "Finished {} patterns", cnt1);
53+
logger_->info(utl::RCX, 246, "Finished {} patterns", cnt1);
5354

5455
closeFiles();
5556
return 0;
@@ -195,7 +196,7 @@ uint extSolverGen::linesOver(uint metLevel)
195196
uint cnt1 = widthsSpacingsLoop();
196197
cnt += cnt1;
197198

198-
logger_->info(RCX,
199+
logger_->info(utl::RCX,
199200
251,
200201
"Finished {} measurements for pattern M{}_over_M{}",
201202
cnt1,
@@ -204,7 +205,7 @@ uint extSolverGen::linesOver(uint metLevel)
204205
}
205206
}
206207
logger_->info(
207-
RCX, 250, "Finished {} measurements for pattern MET_OVER_MET", cnt);
208+
utl::RCX, 250, "Finished {} measurements for pattern MET_OVER_MET", cnt);
208209
return cnt;
209210
}
210211
uint extSolverGen::linesUnder(uint metLevel)
@@ -226,7 +227,7 @@ uint extSolverGen::linesUnder(uint metLevel)
226227
uint cnt1 = widthsSpacingsLoop();
227228
cnt += cnt1;
228229

229-
logger_->info(RCX,
230+
logger_->info(utl::RCX,
230231
238,
231232
"Finished {} measurements for pattern M{}_under_M{}",
232233
cnt1,
@@ -235,7 +236,7 @@ uint extSolverGen::linesUnder(uint metLevel)
235236
}
236237
}
237238
logger_->info(
238-
RCX, 241, "Finished {} measurements for pattern MET_UNDER_MET", cnt);
239+
utl::RCX, 241, "Finished {} measurements for pattern MET_UNDER_MET", cnt);
239240
return cnt;
240241
}
241242
uint extSolverGen::linesDiagUnder(uint metLevel)
@@ -258,16 +259,18 @@ uint extSolverGen::linesDiagUnder(uint metLevel)
258259
uint cnt1 = widthsSpacingsLoop(overMet);
259260
cnt += cnt1;
260261

261-
logger_->info(RCX,
262+
logger_->info(utl::RCX,
262263
244,
263264
"Finished {} measurements for pattern M{}_diagUnder_M{}",
264265
cnt1,
265266
met,
266267
overMet);
267268
}
268269
}
269-
logger_->info(
270-
RCX, 245, "Finished {} measurements for pattern MET_DIAGUNDER_MET", cnt);
270+
logger_->info(utl::RCX,
271+
245,
272+
"Finished {} measurements for pattern MET_DIAGUNDER_MET",
273+
cnt);
271274
return cnt;
272275
}
273276
uint extSolverGen::linesOverUnder(uint metLevel)
@@ -295,7 +298,7 @@ uint extSolverGen::linesOverUnder(uint metLevel)
295298
cnt += cnt1;
296299

297300
logger_->info(
298-
RCX,
301+
utl::RCX,
299302
242,
300303
"Finished {} measurements for pattern M{}_over_M{}_under_M{}",
301304
cnt1,
@@ -305,8 +308,10 @@ uint extSolverGen::linesOverUnder(uint metLevel)
305308
}
306309
}
307310
}
308-
logger_->info(
309-
RCX, 243, "Finished {} measurements for pattern MET_OVERUNDER_MET", cnt);
311+
logger_->info(utl::RCX,
312+
243,
313+
"Finished {} measurements for pattern MET_OVERUNDER_MET",
314+
cnt);
310315
return cnt;
311316
}
312317

@@ -713,7 +718,7 @@ FILE* extSolverGen::openFile(const char* topDir,
713718

714719
FILE* fp = fopen(filename, permissions);
715720
if (fp == nullptr) {
716-
logger_->info(RCX,
721+
logger_->info(utl::RCX,
717722
485,
718723
"Cannot open file {} with permissions {}",
719724
filename,

src/rcx/src/find_some_net.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include "odb/db.h"
1111
#include "parse.h"
12+
#include "utl/Logger.h"
1213

1314
namespace rcx {
1415

0 commit comments

Comments
 (0)