@@ -179,13 +179,13 @@ static std::vector<t_heap> timing_driven_find_all_shortest_paths_from_heap(const
179
179
RouterStats& router_stats);
180
180
181
181
void disable_expansion_and_remove_sink_from_route_tree_nodes (t_rt_node* node);
182
- static void timing_driven_expand_cheapest (t_heap* cheapest,
183
- int target_node,
184
- const t_conn_cost_params cost_params,
185
- t_bb bounding_box,
186
- const RouterLookahead& router_lookahead,
187
- std::vector<int >& modified_rr_node_inf,
188
- RouterStats& router_stats);
182
+ static inline void timing_driven_expand_cheapest (t_heap* cheapest,
183
+ int target_node,
184
+ const t_conn_cost_params cost_params,
185
+ t_bb bounding_box,
186
+ const RouterLookahead& router_lookahead,
187
+ std::vector<int >& modified_rr_node_inf,
188
+ RouterStats& router_stats);
189
189
190
190
static t_rt_node* setup_routing_resources (int itry, ClusterNetId net_id, unsigned num_sinks, float pres_fac, int min_incremental_reroute_fanout, CBRR& incremental_rerouting_res, t_rt_node** rt_node_of_sink);
191
191
@@ -205,54 +205,54 @@ static t_bb add_high_fanout_route_tree_to_heap(t_rt_node* rt_root,
205
205
206
206
static t_bb adjust_highfanout_bounding_box (t_bb highfanout_bb);
207
207
208
- static void add_route_tree_node_to_heap (t_rt_node* rt_node,
209
- int target_node,
210
- const t_conn_cost_params cost_params,
211
- const RouterLookahead& router_lookahead,
212
- RouterStats& router_stats);
213
-
214
- static void timing_driven_expand_neighbours (t_heap* current,
215
- const t_conn_cost_params cost_params,
216
- t_bb bounding_box,
217
- const RouterLookahead& router_lookahead,
218
- int target_node,
219
- RouterStats& router_stats);
220
-
221
- static void timing_driven_expand_neighbour (t_heap* current,
222
- const int from_node,
223
- const t_edge_size from_edge,
224
- const int to_node,
225
- const t_conn_cost_params cost_params,
226
- const t_bb bounding_box,
227
- const RouterLookahead& router_lookahead,
228
- int target_node,
229
- const t_bb target_bb,
230
- RouterStats& router_stats);
231
-
232
- static void timing_driven_add_to_heap (const t_conn_cost_params cost_params,
233
- const RouterLookahead& router_lookahead,
234
- const t_heap* current,
235
- const int from_node,
236
- const int to_node,
237
- const int iconn,
238
- const int target_node,
239
- RouterStats& router_stats);
240
-
241
- static void timing_driven_expand_node (const t_conn_cost_params cost_params,
242
- const RouterLookahead& router_lookahead,
243
- t_heap* current,
244
- const int from_node,
245
- const int to_node,
246
- const int iconn,
247
- const int target_node);
208
+ static inline void add_route_tree_node_to_heap (t_rt_node* rt_node,
209
+ int target_node,
210
+ const t_conn_cost_params cost_params,
211
+ const RouterLookahead& router_lookahead,
212
+ RouterStats& router_stats);
248
213
249
- static void evaluate_timing_driven_node_costs (t_heap* from,
250
- const t_conn_cost_params cost_params,
251
- const RouterLookahead& router_lookahead,
252
- const int from_node,
253
- const int to_node,
254
- const int iconn,
255
- const int target_node);
214
+ static inline void timing_driven_expand_neighbours (t_heap* current,
215
+ const t_conn_cost_params cost_params,
216
+ const t_bb& bounding_box,
217
+ const RouterLookahead& router_lookahead,
218
+ int target_node,
219
+ RouterStats& router_stats);
220
+
221
+ static inline void timing_driven_expand_neighbour (t_heap* current,
222
+ const int from_node,
223
+ const t_edge_size from_edge,
224
+ const int to_node,
225
+ const t_conn_cost_params& cost_params,
226
+ const t_bb& bounding_box,
227
+ const RouterLookahead& router_lookahead,
228
+ int target_node,
229
+ const t_bb& target_bb,
230
+ RouterStats& router_stats);
231
+
232
+ static inline void timing_driven_add_to_heap (const t_conn_cost_params& cost_params,
233
+ const RouterLookahead& router_lookahead,
234
+ const t_heap* current,
235
+ const int from_node,
236
+ const int to_node,
237
+ const int iconn,
238
+ const int target_node,
239
+ RouterStats& router_stats);
240
+
241
+ static inline void timing_driven_expand_node (const t_conn_cost_params& cost_params,
242
+ const RouterLookahead& router_lookahead,
243
+ t_heap* current,
244
+ const int from_node,
245
+ const int to_node,
246
+ const int iconn,
247
+ const int target_node);
248
+
249
+ static inline void evaluate_timing_driven_node_costs (t_heap* from,
250
+ const t_conn_cost_params& cost_params,
251
+ const RouterLookahead& router_lookahead,
252
+ const int from_node,
253
+ const int to_node,
254
+ const int iconn,
255
+ const int target_node);
256
256
257
257
static bool timing_driven_check_net_delays (vtr::vector<ClusterNetId, float *>& net_delay);
258
258
@@ -1961,12 +1961,12 @@ static void add_route_tree_node_to_heap(t_rt_node* rt_node,
1961
1961
++router_stats.heap_pushes ;
1962
1962
}
1963
1963
1964
- static void timing_driven_expand_neighbours (t_heap* current,
1965
- const t_conn_cost_params cost_params,
1966
- t_bb bounding_box,
1967
- const RouterLookahead& router_lookahead,
1968
- int target_node,
1969
- RouterStats& router_stats) {
1964
+ static inline void timing_driven_expand_neighbours (t_heap* current,
1965
+ const t_conn_cost_params cost_params,
1966
+ const t_bb& bounding_box,
1967
+ const RouterLookahead& router_lookahead,
1968
+ int target_node,
1969
+ RouterStats& router_stats) {
1970
1970
/* Puts all the rr_nodes adjacent to current on the heap.
1971
1971
*/
1972
1972
@@ -1998,16 +1998,16 @@ static void timing_driven_expand_neighbours(t_heap* current,
1998
1998
// Conditionally adds to_node to the router heap (via path from from_node via from_edge).
1999
1999
// RR nodes outside the expanded bounding box specified in bounding_box are not added
2000
2000
// to the heap.
2001
- static void timing_driven_expand_neighbour (t_heap* current,
2002
- const int from_node,
2003
- const t_edge_size from_edge,
2004
- const int to_node,
2005
- const t_conn_cost_params cost_params,
2006
- const t_bb bounding_box,
2007
- const RouterLookahead& router_lookahead,
2008
- int target_node,
2009
- const t_bb target_bb,
2010
- RouterStats& router_stats) {
2001
+ static inline void timing_driven_expand_neighbour (t_heap* current,
2002
+ const int from_node,
2003
+ const t_edge_size from_edge,
2004
+ const int to_node,
2005
+ const t_conn_cost_params& cost_params,
2006
+ const t_bb& bounding_box,
2007
+ const RouterLookahead& router_lookahead,
2008
+ int target_node,
2009
+ const t_bb& target_bb,
2010
+ RouterStats& router_stats) {
2011
2011
auto & device_ctx = g_vpr_ctx.device ();
2012
2012
2013
2013
int to_xlow = device_ctx.rr_nodes [to_node].xlow ();
@@ -2063,14 +2063,14 @@ static void timing_driven_expand_neighbour(t_heap* current,
2063
2063
}
2064
2064
2065
2065
// Add to_node to the heap, and also add any nodes which are connected by non-configurable edges
2066
- static void timing_driven_add_to_heap (const t_conn_cost_params cost_params,
2067
- const RouterLookahead& router_lookahead,
2068
- const t_heap* current,
2069
- const int from_node,
2070
- const int to_node,
2071
- const int iconn,
2072
- const int target_node,
2073
- RouterStats& router_stats) {
2066
+ static inline void timing_driven_add_to_heap (const t_conn_cost_params& cost_params,
2067
+ const RouterLookahead& router_lookahead,
2068
+ const t_heap* current,
2069
+ const int from_node,
2070
+ const int to_node,
2071
+ const int iconn,
2072
+ const int target_node,
2073
+ RouterStats& router_stats) {
2074
2074
t_heap* next = alloc_heap_data ();
2075
2075
next->index = to_node;
2076
2076
@@ -2107,7 +2107,7 @@ static void timing_driven_add_to_heap(const t_conn_cost_params cost_params,
2107
2107
}
2108
2108
2109
2109
// Updates current (path step and costs) to account for the step taken to reach to_node
2110
- static void timing_driven_expand_node (const t_conn_cost_params cost_params,
2110
+ static void timing_driven_expand_node (const t_conn_cost_params& cost_params,
2111
2111
const RouterLookahead& router_lookahead,
2112
2112
t_heap* current,
2113
2113
const int from_node,
@@ -2129,7 +2129,7 @@ static void timing_driven_expand_node(const t_conn_cost_params cost_params,
2129
2129
2130
2130
// Calculates the cost of reaching to_node
2131
2131
static void evaluate_timing_driven_node_costs (t_heap* to,
2132
- const t_conn_cost_params cost_params,
2132
+ const t_conn_cost_params& cost_params,
2133
2133
const RouterLookahead& router_lookahead,
2134
2134
const int from_node,
2135
2135
const int to_node,
0 commit comments