Skip to content

Commit 2a18489

Browse files
committed
lint
1 parent 9d307cb commit 2a18489

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

vpr/src/pack/sync_netlists_to_routing_flat.cpp

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,22 @@
1111
#include "vtr_assert.h"
1212
#include "vtr_log.h"
1313

14+
#include "annotate_routing.h"
15+
#include "globals.h"
1416
#include "vpr_error.h"
1517
#include "vpr_utils.h"
1618
#include "rr_graph2.h"
1719

18-
#include "annotate_routing.h"
19-
2020
#include "sync_netlists_to_routing_flat.h"
21-
#include <algorithm>
22-
#include <unordered_map>
23-
24-
#include "describe_rr_node.h"
2521

26-
/* Include global variables of VPR */
27-
#include "globals.h"
22+
static void get_intra_cluster_connections(const RouteTree& tree, std::vector<std::pair<RRNodeId, RRNodeId>>& out_connections);
23+
static void route_intra_cluster_conn(const t_pb_graph_pin* source_pin, const t_pb_graph_pin* sink_pin, AtomNetId net_id, t_pb* out_pb);
24+
static void sync_pb_routes_to_routing(void);
25+
static void sync_clustered_netlist_to_routing(void);
26+
static void fixup_atom_pb_graph_pin_mapping(void);
2827

2928
/* Output all intra-cluster connections for a RouteTreeNode */
30-
void get_intra_cluster_connections(const RouteTree& tree, std::vector<std::pair<RRNodeId, RRNodeId>>& out_connections){
29+
static void get_intra_cluster_connections(const RouteTree& tree, std::vector<std::pair<RRNodeId, RRNodeId>>& out_connections){
3130
auto& rr_graph = g_vpr_ctx.device().rr_graph;
3231

3332
for(auto& node: tree.all_nodes()){
@@ -121,7 +120,7 @@ static void route_intra_cluster_conn(const t_pb_graph_pin* source_pin, const t_p
121120
}
122121
}
123122

124-
void sync_pb_routes_to_routing(){
123+
static void sync_pb_routes_to_routing(void){
125124
auto& device_ctx = g_vpr_ctx.device();
126125
auto& atom_ctx = g_vpr_ctx.atom();
127126
auto& cluster_ctx = g_vpr_ctx.mutable_clustering();
@@ -212,7 +211,7 @@ inline void rebuild_atom_nets_lookup(ClusteredNetlist::IdRemapper& remapped){
212211
}
213212

214213
/** Regenerate clustered netlist nets from routing results */
215-
void sync_clustered_netlist_to_routing(void){
214+
static void sync_clustered_netlist_to_routing(void){
216215
auto& cluster_ctx = g_vpr_ctx.mutable_clustering();
217216
auto& place_ctx = g_vpr_ctx.mutable_placement();
218217
auto& route_ctx = g_vpr_ctx.routing();
@@ -320,7 +319,7 @@ void sync_clustered_netlist_to_routing(void){
320319
}
321320

322321
/** Fix up pin rotation maps and the atom pin -> pb graph pin lookup for every block */
323-
void fixup_atom_pb_graph_pin_mapping(void){
322+
static void fixup_atom_pb_graph_pin_mapping(void){
324323
auto& cluster_ctx = g_vpr_ctx.clustering();
325324
auto& atom_ctx = g_vpr_ctx.mutable_atom();
326325

0 commit comments

Comments
 (0)