@@ -187,6 +187,7 @@ class t_rr_graph_storage {
187187 short node_bend_start (RRNodeId id) const {
188188 return node_bend_start_[id];
189189 }
190+
190191 short node_bend_end (RRNodeId id) const {
191192 return node_bend_end_[id];
192193 }
@@ -228,7 +229,7 @@ class t_rr_graph_storage {
228229 int node_pin_num (RRNodeId id) const ; // Same as ptc_num() but checks that type() is consistent
229230 int node_track_num (RRNodeId id) const ; // Same as ptc_num() but checks that type() is consistent
230231 int node_class_num (RRNodeId id) const ; // Same as ptc_num() but checks that type() is consistent
231- int node_mux_num (RRNodeId id) const ; // Same as ptc_num() but checks that type() is consistent
232+ int node_mux_num (RRNodeId id) const ; // Same as ptc_num() but checks that type() is consistent
232233
233234 /* * @brief Retrieve fan_in for RRNodeId, init_fan_in must have been called first. */
234235 t_edge_size fan_in (RRNodeId id) const {
@@ -337,18 +338,18 @@ class t_rr_graph_storage {
337338 *
338339 * Only call these methods after partition_edges has been invoked.
339340 */
340- edge_idx_range edges (const RRNodeId& id) const {
341+ edge_idx_range edges (const RRNodeId id) const {
341342 return vtr::make_range (edge_idx_iterator (0 ), edge_idx_iterator (num_edges (id)));
342343 }
343344
344- edge_idx_range configurable_edges (const RRNodeId& id, const vtr::vector<RRSwitchId, t_rr_switch_inf>& rr_switches) const {
345+ edge_idx_range configurable_edges (const RRNodeId id, const vtr::vector<RRSwitchId, t_rr_switch_inf>& rr_switches) const {
345346 return vtr::make_range (edge_idx_iterator (0 ), edge_idx_iterator (num_edges (id) - num_non_configurable_edges (id, rr_switches)));
346347 }
347- edge_idx_range non_configurable_edges (const RRNodeId& id, const vtr::vector<RRSwitchId, t_rr_switch_inf>& rr_switches) const {
348+ edge_idx_range non_configurable_edges (const RRNodeId id, const vtr::vector<RRSwitchId, t_rr_switch_inf>& rr_switches) const {
348349 return vtr::make_range (edge_idx_iterator (num_edges (id) - num_non_configurable_edges (id, rr_switches)), edge_idx_iterator (num_edges (id)));
349350 }
350351
351- t_edge_size num_edges (const RRNodeId& id) const {
352+ t_edge_size num_edges (const RRNodeId id) const {
352353 return size_t (last_edge (id)) - size_t (first_edge (id));
353354 }
354355 bool edge_is_configurable (RREdgeId edge, const vtr::vector<RRSwitchId, t_rr_switch_inf>& rr_switches) const ;
@@ -363,7 +364,7 @@ class t_rr_graph_storage {
363364 *
364365 * If first_edge == last_edge, then a RRNodeId has no edges.
365366 */
366- RREdgeId first_edge (const RRNodeId& id) const {
367+ RREdgeId first_edge (const RRNodeId id) const {
367368 return node_first_edge_[id];
368369 }
369370
@@ -372,7 +373,7 @@ class t_rr_graph_storage {
372373 * we always allocate that dummy node. We also assume that the edges have
373374 * been sorted by rr_node, which is true after partition_edges().
374375 */
375- RREdgeId last_edge (const RRNodeId& id) const {
376+ RREdgeId last_edge (const RRNodeId id) const {
376377 return (&node_first_edge_[id])[1 ];
377378 }
378379
@@ -411,19 +412,19 @@ class t_rr_graph_storage {
411412 }
412413
413414 /* * @brief Get the source node for the specified edge. */
414- RRNodeId edge_src_node (const RREdgeId& edge) const {
415+ RRNodeId edge_src_node (const RREdgeId edge) const {
415416 VTR_ASSERT_DEBUG (edge.is_valid ());
416417 return edge_src_node_[edge];
417418 }
418419
419420 /* * @brief Get the destination node for the specified edge. */
420- RRNodeId edge_sink_node (const RREdgeId& edge) const {
421+ RRNodeId edge_sink_node (const RREdgeId edge) const {
421422 VTR_ASSERT_DEBUG (edge.is_valid ());
422423 return edge_dest_node_[edge];
423424 }
424425
425426 // Get the source node for the specified edge.
426- RRNodeId edge_source_node (const RREdgeId& edge) const {
427+ RRNodeId edge_source_node (const RREdgeId edge) const {
427428 return edge_src_node_[edge];
428429 }
429430
@@ -440,17 +441,17 @@ class t_rr_graph_storage {
440441 * This method should generally not be used, and instead first_edge and
441442 * last_edge should be used.
442443 */
443- RRNodeId edge_sink_node (const RRNodeId& id, t_edge_size iedge) const {
444+ RRNodeId edge_sink_node (const RRNodeId id, t_edge_size iedge) const {
444445 return edge_sink_node (edge_id (id, iedge));
445446 }
446447
447448 // Get the source node for the iedge'th edge from specified RRNodeId.
448- RRNodeId edge_source_node (const RRNodeId& id, t_edge_size iedge) const {
449+ RRNodeId edge_source_node (const RRNodeId id, t_edge_size iedge) const {
449450 return edge_source_node (edge_id (id, iedge));
450451 }
451452
452453 /* * @brief Get the switch used for the specified edge. */
453- short edge_switch (const RREdgeId& edge) const {
454+ short edge_switch (const RREdgeId edge) const {
454455 return edge_switch_[edge];
455456 }
456457
@@ -459,7 +460,7 @@ class t_rr_graph_storage {
459460 * This method should generally not be used, and instead first_edge and
460461 * last_edge should be used.
461462 */
462- short edge_switch (const RRNodeId& id, t_edge_size iedge) const {
463+ short edge_switch (const RRNodeId id, t_edge_size iedge) const {
463464 return edge_switch (edge_id (id, iedge));
464465 }
465466
@@ -791,8 +792,8 @@ class t_rr_graph_storage {
791792 */
792793 static inline bool is_node_on_specific_side (
793794 vtr::array_view_id<RRNodeId, const t_rr_node_data> node_storage,
794- const RRNodeId& id,
795- const e_side& side) {
795+ const RRNodeId id,
796+ const e_side side) {
796797 auto & node_data = node_storage[id];
797798 if (node_data.type_ != e_rr_type::IPIN && node_data.type_ != e_rr_type::OPIN) {
798799 VTR_LOG_ERROR (" Attempted to access RR node 'side' for non-IPIN/OPIN type '%s'" ,
@@ -1035,7 +1036,7 @@ class t_rr_graph_view {
10351036 int node_pin_num (RRNodeId id) const ; // Same as ptc_num() but checks that type() is consistent
10361037 int node_track_num (RRNodeId id) const ; // Same as ptc_num() but checks that type() is consistent
10371038 int node_class_num (RRNodeId id) const ; // Same as ptc_num() but checks that type() is consistent
1038- int node_mux_num (RRNodeId id) const ; // Same as ptc_num() but checks that type() is consistent
1039+ int node_mux_num (RRNodeId id) const ; // Same as ptc_num() but checks that type() is consistent
10391040
10401041 /* *
10411042 * @brief Retrieve the fan-in for a given RRNodeId.
0 commit comments