Skip to content

Commit a5fcbc8

Browse files
committed
[lib][rr_graph] pass crr_id to create_edge_in_cache
1 parent 94b1a3b commit a5fcbc8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libs/librrgraph/src/base/rr_edge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct t_rr_edge_info {
1212
, to_node(to)
1313
, switch_type(type)
1414
, remapped(is_remapped)
15-
, crr_id_(crr_id_) {}
15+
, crr_id_(std::move(crr_id_)) {}
1616

1717
RRNodeId from_node = RRNodeId::INVALID();
1818
RRNodeId to_node = RRNodeId::INVALID();

libs/librrgraph/src/base/rr_graph_builder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ void RRGraphBuilder::reorder_nodes(e_rr_node_reorder_algorithm reorder_rr_graph_
176176
});
177177
}
178178

179-
void RRGraphBuilder::create_edge_in_cache(RRNodeId src, RRNodeId dest, RRSwitchId edge_switch, bool remapped) {
180-
edges_to_build_.emplace_back(src, dest, size_t(edge_switch), remapped);
179+
void RRGraphBuilder::create_edge_in_cache(RRNodeId src, RRNodeId dest, RRSwitchId edge_switch, bool remapped, std::string crr_id_) {
180+
edges_to_build_.emplace_back(src, dest, size_t(edge_switch), remapped, std::move(crr_id_));
181181
is_edge_dirty_ = true; // Adding a new edge revokes the flag
182182
is_incoming_edge_dirty_ = true;
183183
}

libs/librrgraph/src/base/rr_graph_builder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class RRGraphBuilder {
289289

290290
/** @brief Add a new edge to the cache of edges to be built
291291
* @note This will not add an edge to storage. You need to call build_edges() after all the edges are cached. */
292-
void create_edge_in_cache(RRNodeId src, RRNodeId dest, RRSwitchId edge_switch, bool remapped);
292+
void create_edge_in_cache(RRNodeId src, RRNodeId dest, RRSwitchId edge_switch, bool remapped, std::string crr_id_="");
293293

294294
/** @brief Add a new edge to the cache of edges to be built
295295
* @note This will not add an edge to storage! You need to call build_edges() after all the edges are cached! */

0 commit comments

Comments
 (0)