Skip to content

Commit 735b9e5

Browse files
author
Muhammad Haris Zafar
committed
Replacing alloc_and_load_edges from respective .cpp/.h files
1 parent bfc28c7 commit 735b9e5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

vpr/src/route/rr_graph.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static void build_rr_chan(RRGraphBuilder& rr_graph_builder,
237237

238238
void uniquify_edges(t_rr_edge_info_set& rr_edges_to_create);
239239

240-
void alloc_and_load_edges(t_rr_graph_storage& L_rr_node,
240+
void alloc_and_load_edges(RRGraphBuilder& rr_graph_builder,
241241
const t_rr_edge_info_set& rr_edges_to_create);
242242

243243
static void alloc_and_load_rr_switch_inf(const int num_arch_switches,
@@ -1179,7 +1179,7 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
11791179

11801180
//Create the actual SOURCE->OPIN, IPIN->SINK edges
11811181
uniquify_edges(rr_edges_to_create);
1182-
alloc_and_load_edges(L_rr_node, rr_edges_to_create);
1182+
alloc_and_load_edges(rr_graph_builder, rr_edges_to_create);
11831183
rr_edges_to_create.clear();
11841184
}
11851185
}
@@ -1207,7 +1207,7 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
12071207

12081208
//Create the actual OPIN->CHANX/CHANY edges
12091209
uniquify_edges(rr_edges_to_create);
1210-
alloc_and_load_edges(L_rr_node, rr_edges_to_create);
1210+
alloc_and_load_edges(rr_graph_builder, rr_edges_to_create);
12111211
rr_edges_to_create.clear();
12121212
}
12131213
}
@@ -1229,7 +1229,7 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
12291229

12301230
//Create the actual CHAN->CHAN edges
12311231
uniquify_edges(rr_edges_to_create);
1232-
alloc_and_load_edges(L_rr_node, rr_edges_to_create);
1232+
alloc_and_load_edges(rr_graph_builder, rr_edges_to_create);
12331233
rr_edges_to_create.clear();
12341234
}
12351235
if (j > 0) {
@@ -1244,7 +1244,7 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
12441244

12451245
//Create the actual CHAN->CHAN edges
12461246
uniquify_edges(rr_edges_to_create);
1247-
alloc_and_load_edges(L_rr_node, rr_edges_to_create);
1247+
alloc_and_load_edges(rr_graph_builder, rr_edges_to_create);
12481248
rr_edges_to_create.clear();
12491249
}
12501250
}
@@ -1256,7 +1256,7 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
12561256
ClockRRGraphBuilder builder(chan_width, grid, &L_rr_node, &rr_graph_builder);
12571257
builder.create_and_append_clock_rr_graph(num_seg_types, &rr_edges_to_create);
12581258
uniquify_edges(rr_edges_to_create);
1259-
alloc_and_load_edges(L_rr_node, rr_edges_to_create);
1259+
alloc_and_load_edges(rr_graph_builder, rr_edges_to_create);
12601260
rr_edges_to_create.clear();
12611261
update_chan_width = [builder](t_chan_width* c) {
12621262
builder.update_chan_width(c);
@@ -1687,8 +1687,8 @@ void uniquify_edges(t_rr_edge_info_set& rr_edges_to_create) {
16871687
rr_edges_to_create.erase(std::unique(rr_edges_to_create.begin(), rr_edges_to_create.end()), rr_edges_to_create.end());
16881688
}
16891689

1690-
void alloc_and_load_edges(RRGraphBuilder& rr_graph_builder, t_rr_graph_storage& L_rr_node, const t_rr_edge_info_set& rr_edges_to_create) {
1691-
rr_graph_builder.alloc_and_load_edges(&rr_edges_to_create);
1690+
void alloc_and_load_edges(RRGraphBuilder& rr_graph_builder, const t_rr_edge_info_set& rr_edges_to_create) {
1691+
rr_graph_builder.alloc_and_load_edges(&rr_edges_to_create);
16921692
}
16931693

16941694
/* allocate pin to track map for each segment type individually and then combine into a single

0 commit comments

Comments
 (0)