@@ -26,15 +26,15 @@ static bool relevant_node_to_target(const RRGraphView* rr_graph,
2626 RRNodeId target_node);
2727
2828#ifdef VTR_ENABLE_DEBUG_LOGGING
29- static void update_router_stats (const RRGraphView* rr_graph ,
30- RouterStats* router_stats ,
31- RRNodeId rr_node_id,
32- bool is_push );
29+ static void update_router_stats (RouterStats* router_stats ,
30+ bool is_push ,
31+ RRNodeId rr_node_id,
32+ const RRGraphView* rr_graph );
3333#else
34- static void update_router_stats (const RRGraphView* /* rr_graph */ ,
35- RouterStats* router_stats ,
36- RRNodeId /* rr_node_id*/ ,
37- bool is_push );
34+ static void update_router_stats (RouterStats* router_stats ,
35+ bool is_push ,
36+ RRNodeId /* rr_node_id*/ ,
37+ const RRGraphView* /* rr_graph */ );
3838#endif
3939
4040/* * return tuple <found_path, retry_with_full_bb, cheapest> */
@@ -220,10 +220,10 @@ t_heap* ConnectionRouter<Heap>::timing_driven_route_connection_from_heap(RRNodeI
220220 while (!heap_.is_empty_heap ()) {
221221 // cheapest t_heap in current route tree to be expanded on
222222 cheapest = heap_.get_heap_head ();
223- update_router_stats (rr_graph_ ,
224- router_stats_ ,
223+ update_router_stats (router_stats_ ,
224+ false ,
225225 cheapest->index ,
226- false );
226+ rr_graph_ );
227227
228228 RRNodeId inode = cheapest->index ;
229229 VTR_LOGV_DEBUG (router_debug_, " Popping node %d (cost: %g)\n " ,
@@ -309,10 +309,10 @@ vtr::vector<RRNodeId, t_heap> ConnectionRouter<Heap>::timing_driven_find_all_sho
309309 while (!heap_.is_empty_heap ()) {
310310 // cheapest t_heap in current route tree to be expanded on
311311 t_heap* cheapest = heap_.get_heap_head ();
312- update_router_stats (rr_graph_ ,
313- router_stats_ ,
312+ update_router_stats (router_stats_ ,
313+ false ,
314314 cheapest->index ,
315- false );
315+ rr_graph_ );
316316
317317 RRNodeId inode = cheapest->index ;
318318 VTR_LOGV_DEBUG (router_debug_, " Popping node %d (cost: %g)\n " ,
@@ -617,10 +617,10 @@ void ConnectionRouter<Heap>::timing_driven_add_to_heap(const t_conn_cost_params
617617 }
618618
619619 heap_.add_to_heap (next_ptr);
620- update_router_stats (rr_graph_ ,
621- router_stats_ ,
620+ update_router_stats (router_stats_ ,
621+ true ,
622622 to_node,
623- true );
623+ rr_graph_ );
624624
625625 } else {
626626 VTR_LOGV_DEBUG (router_debug_, " Didn't expand to %d (%s)\n " , to_node, describe_rr_node (device_ctx.rr_graph , device_ctx.grid , device_ctx.rr_indexed_data , to_node, is_flat_).c_str ());
@@ -930,10 +930,10 @@ void ConnectionRouter<Heap>::add_route_tree_node_to_heap(
930930 backward_path_cost, R_upstream, rt_node.Tdel , &rcv_path_manager);
931931 }
932932
933- update_router_stats (rr_graph_ ,
934- router_stats_ ,
933+ update_router_stats (router_stats_ ,
934+ true ,
935935 inode,
936- true );
936+ rr_graph_ );
937937
938938#ifdef VTR_ENABLE_DEBUG_LOGGING
939939 router_stats_->rt_node_pushes [rr_graph_->node_type (inode)]++;
@@ -1101,15 +1101,15 @@ static inline bool relevant_node_to_target(const RRGraphView* rr_graph,
11011101}
11021102
11031103#ifdef VTR_ENABLE_DEBUG_LOGGING
1104- static inline void update_router_stats (const RRGraphView* rr_graph ,
1105- RouterStats* router_stats ,
1104+ static inline void update_router_stats (RouterStats* router_stats ,
1105+ bool is_push ,
11061106 RRNodeId rr_node_id,
1107- bool is_push ) {
1107+ const RRGraphView* rr_graph, ) {
11081108#else
1109- static inline void update_router_stats (const RRGraphView* /* rr_graph */ ,
1110- RouterStats* router_stats ,
1109+ static inline void update_router_stats (RouterStats* router_stats ,
1110+ bool is_push ,
11111111 RRNodeId /* rr_node_id*/ ,
1112- bool is_push ) {
1112+ const RRGraphView* /* rr_graph */ ) {
11131113#endif
11141114 if (is_push) {
11151115 router_stats->heap_pushes ++;
0 commit comments