Skip to content

Commit ef5dfaa

Browse files
committed
gpl: change group() to getGroup()
Signed-off-by: LucasYuki <[email protected]>
1 parent 036d9e2 commit ef5dfaa

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

src/gpl/src/graphicsImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ void GraphicsImpl::debugForNesterovPlace(
9191
region_names.reserve(nbVec_.size());
9292
for (size_t i = 0; i < nbVec_.size(); ++i) {
9393
std::string name;
94-
if (nbVec_[i] && nbVec_[i]->getPb() && nbVec_[i]->getPb()->group()) {
94+
if (nbVec_[i] && nbVec_[i]->getPb() && nbVec_[i]->getPb()->getGroup()) {
9595
name = fmt::format(
96-
"nb[{}] {}", i, nbVec_[i]->getPb()->group()->getName());
96+
"nb[{}] {}", i, nbVec_[i]->getPb()->getGroup()->getName());
9797
} else {
9898
name = fmt::format("nb[{}]", i);
9999
}

src/gpl/src/nesterovBase.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ NesterovBase::NesterovBase(NesterovBaseVars nbVars,
16841684
log_->info(GPL,
16851685
33,
16861686
"Initializing Nesterov region: {}",
1687-
pb_->group() ? pb_->group()->getName() : "Top-level");
1687+
pb_->getGroup() ? pb_->getGroup()->getName() : "Top-level");
16881688

16891689
// Set a fixed seed
16901690
srand(42);
@@ -2751,11 +2751,11 @@ void NesterovBase::updateNextIter(const int iter)
27512751
prev_reported_overflow_unscaled_ = sum_overflow_unscaled_;
27522752

27532753
std::string group_name;
2754-
if (pb_->group()) {
2755-
group_name = fmt::format(" ({})", pb_->group()->getName());
2754+
if (pb_->getGroup()) {
2755+
group_name = fmt::format(" ({})", pb_->getGroup()->getName());
27562756
}
27572757

2758-
if ((iter == 0 || reprint_iter_header_) && !pb_->group()) {
2758+
if ((iter == 0 || reprint_iter_header_) && !pb_->getGroup()) {
27592759
if (iter == 0) {
27602760
log_->info(GPL, 31, "HPWL: Half-Perimeter Wirelength");
27612761
}
@@ -2914,8 +2914,8 @@ bool NesterovBase::checkConvergence(int gpl_iter_count,
29142914
return true;
29152915
}
29162916
if (sum_overflow_unscaled_ <= npVars_->targetOverflow) {
2917-
const bool has_group = pb_->group();
2918-
const std::string group_name = has_group ? pb_->group()->getName() : "";
2917+
const bool has_group = pb_->getGroup();
2918+
const std::string group_name = has_group ? pb_->getGroup()->getName() : "";
29192919
const int final_iter = gpl_iter_count;
29202920
dbBlock* block = pb_->db()->getChip()->getBlock();
29212921

src/gpl/src/nesterovBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ class NesterovBase
11331133

11341134
std::shared_ptr<PlacerBase> getPb() const { return pb_; }
11351135

1136-
odb::dbGroup* group() const { return pb_->group(); }
1136+
odb::dbGroup* getGroup() const { return pb_->getGroup(); }
11371137

11381138
private:
11391139
NesterovBaseVars nbVars_;

src/gpl/src/placerBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ class PlacerBase
390390
int64_t stdInstsArea() const { return stdInstsArea_; }
391391

392392
odb::dbDatabase* db() const { return db_; }
393-
odb::dbGroup* group() const { return group_; }
393+
odb::dbGroup* getGroup() const { return group_; }
394394

395395
void unlockAll();
396396

src/gpl/src/routeBase.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ void RouteBase::revertToMinCongestion()
277277
// revert
278278
nbc_->revertGCellSizeToMinRc();
279279
for (int j = 0; j < nbVec_.size(); j++) {
280-
if (nbVec_[j]->group()) {
280+
if (nbVec_[j]->getGroup()) {
281281
log_->info(GPL,
282282
57,
283283
"Target density at minimum routing congestion: {:.4f} ({})",
284284
minRcTargetDensity_[j],
285-
nbVec_[j]->group() ? "" : nbVec_[j]->group()->getName());
285+
nbVec_[j]->getGroup() ? "" : nbVec_[j]->getGroup()->getName());
286286
} else {
287287
log_->info(GPL,
288288
58,
@@ -634,7 +634,7 @@ std::pair<bool, bool> RouteBase::routability(
634634
"Gcell {} from group {} is a Std instance, but is not "
635635
"from NesterovBaseCommon. This shouldn't happen.",
636636
gCellHandle->getName(),
637-
nbVec_[i]->group()->getName());
637+
nbVec_[i]->getGroup()->getName());
638638
}
639639
auto gCell = nbc_->getGCellByIndex(gCellHandle.getStorageIndex());
640640

@@ -721,8 +721,8 @@ std::pair<bool, bool> RouteBase::routability(
721721
// max density detection
722722
if (nbVec_[i]->getTargetDensity() > rbVars_.maxDensity) {
723723
string group_text;
724-
if (nbVec_[i]->group()) {
725-
group_text = " in group " + string(nbVec_[i]->group()->getName());
724+
if (nbVec_[i]->getGroup()) {
725+
group_text = " in group " + string(nbVec_[i]->getGroup()->getName());
726726
}
727727
log_->info(GPL,
728728
53,

0 commit comments

Comments
 (0)