Skip to content

Commit 8f770d0

Browse files
[Infra] Cleaned Up Header Files in Pack Folder
Went through the header files in the pack folder and resolved any unused header files.
1 parent 8386eac commit 8f770d0

15 files changed

+14
-26
lines changed

vpr/src/pack/atom_pb_bimap.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99

1010
#include "atom_pb_bimap.h"
11-
#include "atom_netlist.h"
1211

1312
AtomPBBimap::AtomPBBimap(const vtr::bimap<AtomBlockId, const t_pb*, vtr::linear_map, std::unordered_map>& atom_to_pb) {
1413
atom_to_pb_ = atom_to_pb;

vpr/src/pack/cluster_feasibility_filter.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,12 @@
2828
*/
2929

3030
#include <vector>
31+
#include "physical_types.h"
3132
#include "vtr_assert.h"
3233
#include "vtr_log.h"
33-
#include "vtr_memory.h"
3434

35-
#include "read_xml_arch_file.h"
36-
#include "vpr_types.h"
37-
#include "globals.h"
3835
#include "hash.h"
3936
#include "cluster_feasibility_filter.h"
40-
#include "vpr_utils.h"
4137

4238
/* header functions that identify pin classes */
4339
static void alloc_pin_classes_in_pb_graph_node(t_pb_graph_node* pb_graph_node);

vpr/src/pack/cluster_feasibility_filter.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121

2222
#ifndef CLUSTER_FEASIBILITY_CHECK_H
2323
#define CLUSTER_FEASIBILITY_CHECK_H
24-
#include "arch_types.h"
24+
25+
class t_pb_graph_node;
2526

2627
void load_pin_classes_in_pb_graph_head(t_pb_graph_node* pb_graph_node);
2728

vpr/src/pack/cluster_placement.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "hash.h"
2222
#include "physical_types.h"
2323
#include "prepack.h"
24-
#include "vpr_types.h"
2524
#include "vpr_utils.h"
2625
#include "vtr_assert.h"
2726

vpr/src/pack/cluster_router.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
#include "vpr_error.h"
2626
#include "vpr_types.h"
27-
#include "echo_files.h"
2827

2928
#include "physical_types.h"
3029
#include "globals.h"

vpr/src/pack/cluster_router.h

+4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66
*/
77
#ifndef CLUSTER_ROUTER_H
88
#define CLUSTER_ROUTER_H
9+
910
#include <vector>
1011
#include "atom_netlist_fwd.h"
12+
#include "atom_pb_bimap.h"
1113
#include "pack_types.h"
14+
#include "vpr_types.h"
15+
#include "vpr_utils.h"
1216

1317
/* Constructors/Destructors */
1418
t_lb_router_data* alloc_and_load_router_data(std::vector<t_lb_type_rr_node>* lb_type_graph, t_logical_block_type_ptr type);

vpr/src/pack/cluster_util.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "prepack.h"
1313
#include "vpr_context.h"
1414
#include "vtr_vector.h"
15-
#include "vtr_vector_map.h"
1615

1716
/*Print the contents of each cluster to an echo file*/
1817
static void echo_clusters(char* filename, const ClusterLegalizer& cluster_legalizer) {

vpr/src/pack/pack_report.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include "vtr_ostream_guard.h"
44

5-
#include "vpr_types.h"
65
#include "vpr_utils.h"
76
#include "histogram.h"
87

vpr/src/pack/pack_types.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
#include <unordered_map>
1111
#include <vector>
1212

13-
#include "arch_types.h"
1413
#include "atom_netlist_fwd.h"
15-
#include "attraction_groups.h"
14+
#include "physical_types.h"
1615

1716
struct t_pack_molecule;
1817

vpr/src/pack/pb_type_graph.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
#include <cstdio>
1515
#include <cstring>
16-
#include <cinttypes>
1716
#include <queue>
1817

1918
#include "vtr_util.h"
@@ -23,16 +22,13 @@
2322
#include "vtr_token.h"
2423

2524
#include "vpr_error.h"
26-
#include "vpr_types.h"
2725

2826
#include "physical_types.h"
2927
#include "globals.h"
3028
#include "vpr_utils.h"
3129
#include "pb_type_graph.h"
3230
#include "pb_type_graph_annotations.h"
3331
#include "cluster_feasibility_filter.h"
34-
#include "power.h"
35-
#include "read_xml_arch_file.h"
3632

3733
/* variable global to this section that indexes each pb graph pin within a cluster */
3834
static vtr::t_linked_vptr* edges_head;

vpr/src/pack/pb_type_graph.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef PB_TYPE_GRAPH_H
22
#define PB_TYPE_GRAPH_H
33

4+
#include "physical_types.h"
5+
46
struct t_pb_graph_edge_comparator {
57
int input_pin_id_in_cluster;
68
int output_pin_id_in_cluster;

vpr/src/pack/pb_type_graph_annotations.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,20 @@
22
* April 15, 2011
33
* Loads statistical information (min/max delays, power) onto the pb_graph. */
44

5+
#include <cmath>
56
#include <cstdio>
67
#include <cstdlib>
78
#include <cstring>
89

10+
#include "arch_util.h"
911
#include "vtr_assert.h"
1012
#include "vtr_util.h"
11-
#include "vtr_memory.h"
1213
#include "vtr_token.h"
1314

14-
#include "vpr_types.h"
1515
#include "vpr_error.h"
1616

17-
#include "arch_types.h"
18-
#include "globals.h"
19-
#include "vpr_utils.h"
2017
#include "pb_type_graph.h"
2118
#include "pb_type_graph_annotations.h"
22-
#include "read_xml_arch_file.h"
2319

2420
static void load_pack_pattern_annotations(const int line_num, t_pb_graph_node* pb_graph_node, const int mode, const char* annot_in_pins, const char* annot_out_pins, const char* value);
2521

vpr/src/pack/pb_type_graph_annotations.h

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef PB_TYPE_GRAPH_ANNOTATIONS_H
88
#define PB_TYPE_GRAPH_ANNOTATIONS_H
99

10+
class t_pb_graph_node;
11+
1012
void load_pb_graph_pin_to_pin_annotations(t_pb_graph_node* pb_graph_node);
1113

1214
#endif

vpr/src/pack/sync_netlists_to_routing_flat.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#include "netlist.h"
2-
31
/********************************************************************
42
* Top-level function to synchronize packing results to routing results.
53
* Flat routing invalidates the ClusteredNetlist since nets may be routed

vpr/src/pack/verify_flat_placement.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "atom_netlist.h"
55
#include "atom_netlist_fwd.h"
66
#include "prepack.h"
7-
#include "vpr_types.h"
87
#include "vtr_log.h"
98

109
unsigned verify_flat_placement_for_packing(const FlatPlacementInfo& flat_placement_info,

0 commit comments

Comments
 (0)