Skip to content

Commit 8994565

Browse files
committed
[#82535] rename PathsContainer to PathsStitch
1 parent 94d2d5d commit 8994565

File tree

8 files changed

+43
-43
lines changed

8 files changed

+43
-43
lines changed

include/sta/Search.hh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,10 @@ public:
420420
PathGroupNameSet *groups,
421421
unsigned int path_count);
422422

423-
PathsContainer mergePaths(const PathEndSeq *path_ends,
424-
const InternalPathSeq *timing_paths,
425-
bool sort_by_slack,
426-
unsigned int path_count);
423+
PathsStitch mergePaths(const PathEndSeq *path_ends,
424+
const InternalPathSeq *timing_paths,
425+
bool sort_by_slack,
426+
unsigned int path_count);
427427

428428
protected:
429429
void init(StaState *sta);

include/sta/SearchClass.hh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ enum class ReportDeduplicationMode { none,
139139
keep_different
140140
};
141141

142-
class PathsContainer
142+
class PathsStitch
143143
{
144144
public:
145-
PathsContainer() = default;
145+
PathsStitch() = default;
146146

147-
PathsContainer(
147+
PathsStitch(
148148
PathEndSeq path_ends,
149149
InternalPathSeq internal_timing_paths,
150150
bool sorted_by_slack)
@@ -153,14 +153,14 @@ public:
153153
sorted_by_slack_{sorted_by_slack},
154154
num_of_paths_{static_cast<unsigned int>(path_ends_.size() + internal_timing_paths_.size())} {}
155155

156-
PathsContainer(
156+
PathsStitch(
157157
PathEndSeq path_ends,
158158
bool sorted_by_slack)
159159
: path_ends_{std::move(path_ends)},
160160
sorted_by_slack_{sorted_by_slack},
161161
num_of_paths_{static_cast<unsigned int>(path_ends_.size())} {}
162162

163-
PathsContainer(
163+
PathsStitch(
164164
InternalPathSeq internal_timing_paths,
165165
bool sorted_by_slack)
166166
: internal_timing_paths_{std::move(internal_timing_paths)},

include/sta/Sta.hh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -843,10 +843,10 @@ public:
843843
bool sort_by_slack,
844844
PathGroupNameSet *groups,
845845
int path_count);
846-
PathsContainer mergePaths(const PathEndSeq *path_ends,
847-
const InternalPathSeq *timing_paths,
848-
bool sort_by_slack,
849-
unsigned int path_count);
846+
PathsStitch mergePaths(const PathEndSeq *path_ends,
847+
const InternalPathSeq *timing_paths,
848+
bool sort_by_slack,
849+
unsigned int path_count);
850850
void setReportPathFormat(ReportPathFormat format);
851851
void setReportPathFieldOrder(StringSeq *field_names);
852852
void setReportPathFields(bool report_input_pin,
@@ -873,7 +873,7 @@ public:
873873
PathEnd *prev_end);
874874
void reportPathEnd(PathEnd *end);
875875
void reportPathEnds(PathEndSeq *ends);
876-
void reportPaths(const PathsContainer *paths_container);
876+
void reportPaths(const PathsStitch *paths_stitch);
877877
ReportPath *reportPath() { return report_path_; }
878878
void reportPath(const Path *path);
879879
void reportPath(const InputRegisterTimingPath *internal_path);

search/ReportPath.cc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,44 +2807,44 @@ ReportPath::reportPathFull(const Path *path) const
28072807
}
28082808

28092809
void
2810-
ReportPath::reportPaths(const PathsContainer *paths_container) const
2810+
ReportPath::reportPaths(const PathsStitch *paths_stitch) const
28112811
{
2812-
if (!paths_container->hasInternalPaths()) {
2813-
reportPathEnds(&paths_container->pathEnds());
2812+
if (!paths_stitch->hasInternalPaths()) {
2813+
reportPathEnds(&paths_stitch->pathEnds());
28142814
return;
28152815
}
28162816

2817-
if (!paths_container->hasPathEnds()) {
2818-
reportPaths(&paths_container->internalPaths());
2817+
if (!paths_stitch->hasPathEnds()) {
2818+
reportPaths(&paths_stitch->internalPaths());
28192819
return;
28202820
}
28212821

2822-
if (!paths_container->sortedBySlack()) {
2822+
if (!paths_stitch->sortedBySlack()) {
28232823
reportPathEndHeader();
28242824
static constexpr bool NO_PATHS_MESSAGE = false;
2825-
reportPathEnds(&paths_container->pathEnds(), NO_PATHS_MESSAGE);
2825+
reportPathEnds(&paths_stitch->pathEnds(), NO_PATHS_MESSAGE);
28262826

2827-
const bool prev_path = paths_container->hasPathEnds();
2828-
reportPaths(&paths_container->internalPaths(), prev_path);
2827+
const bool prev_path = paths_stitch->hasPathEnds();
2828+
reportPaths(&paths_stitch->internalPaths(), prev_path);
28292829
reportPathEndFooter();
28302830
return;
28312831
}
28322832

28332833
reportPathEndHeader();
28342834

2835-
const PathEndSeq &path_ends = paths_container->pathEnds();
2835+
const PathEndSeq &path_ends = paths_stitch->pathEnds();
28362836
Set<PathEnd *> qualified_ends;
28372837
if (dedup_by_word_) {
28382838
qualified_ends = dedupByWord(&path_ends);
28392839
}
2840-
const InternalPathSeq &internal_paths = paths_container->internalPaths();
2840+
const InternalPathSeq &internal_paths = paths_stitch->internalPaths();
28412841

28422842
unsigned int first_index = 0;
28432843
unsigned int second_index = 0;
28442844

28452845
const PathEnd *prev_path_end = nullptr;
28462846
unsigned int current_index = 0;
2847-
while (current_index < paths_container->size()) {
2847+
while (current_index < paths_stitch->size()) {
28482848
current_index += 1;
28492849

28502850
if (first_index >= path_ends.size()) {

search/ReportPath.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public:
7777
void reportPath(const Path *path) const;
7878
void reportPaths(const InternalPathSeq *timing_paths) const;
7979
void reportPath(const InputRegisterTimingPath *timing_path, bool prev_path) const;
80-
void reportPaths(const PathsContainer *paths_container) const;
81-
void reportPathsSorted(const PathsContainer *paths_container) const;
80+
void reportPaths(const PathsStitch *paths_stitch) const;
81+
void reportPathsSorted(const PathsStitch *paths_stitch) const;
8282

8383
void reportShort(const PathEndUnconstrained *end) const;
8484
void reportShort(const PathEndCheck *end) const;

search/Search.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -770,23 +770,23 @@ Search::isMatchingSearchedPathGroups(const char *path_group, PathGroupNameSet *g
770770

771771
////////////////////////////////////////////////////////////////
772772

773-
PathsContainer Search::mergePaths(const PathEndSeq *path_ends,
774-
const InternalPathSeq *timing_paths,
775-
bool sort_by_slack,
776-
unsigned int path_count)
773+
PathsStitch Search::mergePaths(const PathEndSeq *path_ends,
774+
const InternalPathSeq *timing_paths,
775+
bool sort_by_slack,
776+
unsigned int path_count)
777777
{
778778
bool has_timing_paths = timing_paths && !timing_paths->empty();
779779
bool has_path_ends = path_ends && !path_ends->empty();
780780
if (!has_timing_paths && !has_path_ends) {
781-
return PathsContainer{};
781+
return PathsStitch{};
782782
}
783783

784784
if (!has_timing_paths) {
785-
return PathsContainer{*path_ends, sort_by_slack};
785+
return PathsStitch{*path_ends, sort_by_slack};
786786
}
787787

788788
if (!has_path_ends) {
789-
return PathsContainer{*timing_paths, sort_by_slack};
789+
return PathsStitch{*timing_paths, sort_by_slack};
790790
}
791791

792792
std::unordered_map<PathGroup*, PathEndSeq> grouped_path_ends;
@@ -824,7 +824,7 @@ PathsContainer Search::mergePaths(const PathEndSeq *path_ends,
824824
sort(filtered_internal_paths, std::less<const InputRegisterTimingPath*>{});
825825
}
826826

827-
return PathsContainer{std::move(filtered_path_ends), std::move(filtered_internal_paths), sort_by_slack};
827+
return PathsStitch{std::move(filtered_path_ends), std::move(filtered_internal_paths), sort_by_slack};
828828
}
829829

830830
PathGroup *

search/Search.i

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ find_internal_timing_paths(const MinMaxAll *delay_min_max,
398398

399399
////////////////////////////////////////////////////////////////
400400

401-
PathsContainer
401+
PathsStitch
402402
merge_paths(PathEndSeq *path_ends,
403403
InternalPathSeq *timing_paths,
404404
bool sort_by_slack,
@@ -533,10 +533,10 @@ report_path_ends(PathEndSeq *ends)
533533
}
534534

535535
void
536-
report_paths_combined(PathsContainer *paths_container)
536+
report_paths_combined(PathsStitch *paths_stitch)
537537
{
538-
Sta::sta()->reportPaths(paths_container);
539-
delete paths_container;
538+
Sta::sta()->reportPaths(paths_stitch);
539+
delete paths_stitch;
540540
}
541541

542542
void

search/Sta.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2542,7 +2542,7 @@ Sta::findInternalTimingPaths(
25422542

25432543
////////////////////////////////////////////////////////////////
25442544

2545-
PathsContainer
2545+
PathsStitch
25462546
Sta::mergePaths(const PathEndSeq *path_ends,
25472547
const InternalPathSeq *timing_paths,
25482548
bool sort_by_slack,
@@ -2663,9 +2663,9 @@ Sta::reportPathEnds(PathEndSeq *ends)
26632663
}
26642664

26652665
void
2666-
Sta::reportPaths(const PathsContainer *paths_container)
2666+
Sta::reportPaths(const PathsStitch *paths_stitch)
26672667
{
2668-
report_path_->reportPaths(paths_container);
2668+
report_path_->reportPaths(paths_stitch);
26692669
}
26702670

26712671
void

0 commit comments

Comments
 (0)