Skip to content

Commit afe5466

Browse files
Merge pull request #3055 from AlexandreSinger/feature-include-cleanup
[Infra] Cleaned Up Header Files in Place Folder
2 parents 4255346 + 0d4c7c0 commit afe5466

13 files changed

+14
-26
lines changed

vpr/src/place/compressed_grid.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include "physical_types.h"
66

77
#include "vtr_assert.h"
8-
#include "vtr_geometry.h"
98
#include "vtr_flat_map.h"
109

1110
struct t_compressed_block_grid {

vpr/src/place/grid_tile_lookup.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "grid_tile_lookup.h"
2+
#include "globals.h"
23
#include "physical_types_util.h"
34

45
GridTileLookup::GridTileLookup()

vpr/src/place/grid_tile_lookup.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#ifndef VPR_SRC_PLACE_GRID_TILE_LOOKUP_H_
22
#define VPR_SRC_PLACE_GRID_TILE_LOOKUP_H_
33

4-
#include "place_util.h"
5-
#include "globals.h"
4+
#include <vector>
5+
#include "physical_types.h"
6+
#include "vtr_ndmatrix.h"
7+
8+
class Region;
69

710
/**
811
* @class GridTileLookup

vpr/src/place/initial_noc_placement.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@
88
#include "noc_place_checkpoint.h"
99
#include "place_constraints.h"
1010

11-
#include "sat_routing.h"
12-
13-
#include "vtr_math.h"
1411
#include "vtr_time.h"
1512

16-
#include <queue>
17-
1813
/**
1914
* @brief Evaluates whether a NoC router swap should be accepted or not.
2015
* If delta cost is non-positive, the move is always accepted. If the cost

vpr/src/place/move_transactions.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define VPR_MOVE_TRANSACTIONS_H
33

44
#include "vpr_types.h"
5-
#include "clustered_netlist_utils.h"
65

76
class BlkLocRegistry;
87
class GridBlock;

vpr/src/place/move_utils.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
#include "place_macro.h"
88
#include "vtr_random.h"
99

10-
#include "draw_debug.h"
11-
#include "draw.h"
12-
1310
#include "place_constraints.h"
1411
#include "placer_state.h"
1512
#include "PlacerCriticalities.h"

vpr/src/place/noc_place_checkpoint.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#ifndef VTR_ROUTERPLACEMENTCHECKPOINT_H
22
#define VTR_ROUTERPLACEMENTCHECKPOINT_H
33

4-
class NocCostHandler;
5-
64
/**
75
* @brief NoC router placement checkpoint
86
*
@@ -20,6 +18,8 @@ class NocCostHandler;
2018
#include "vpr_types.h"
2119
#include "place_util.h"
2220

21+
class NocCostHandler;
22+
2323
/**
2424
* @brief A NoC router placement checkpoint
2525
*

vpr/src/place/place_checkpoint.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#ifndef PLACE_CHECKPOINT_H
22
#define PLACE_CHECKPOINT_H
33

4-
#include "vtr_util.h"
54
#include "vpr_types.h"
65
#include "vtr_vector_map.h"
76
#include "place_util.h"
8-
#include "globals.h"
97
#include "timing_info.h"
108

119
#include "place_delay_model.h"

vpr/src/place/place_constraints.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* Created on: Mar. 1, 2021
99
* Author: khalid88
1010
*/
11+
#include "globals.h"
1112
#include "move_transactions.h"
1213
#include "region.h"
13-
#include "clustered_netlist_utils.h"
1414
#include "partition_region.h"
1515
#include "place_macro.h"
1616
#include "grid_tile_lookup.h"

vpr/src/place/place_util.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
#ifndef PLACE_UTIL_H
88
#define PLACE_UTIL_H
99

10-
#include <string>
11-
1210
#include "vpr_types.h"
13-
#include "vtr_util.h"
14-
#include "vtr_vector_map.h"
1511
#include "globals.h"
1612

1713
/**

vpr/src/place/placement_log_printer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
#pragma once
1212

13-
#include <cstddef>
1413
#include <vector>
1514

1615
#include "timing_info_fwd.h"

vpr/src/place/placer_breakpoint.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#include "placer_breakpoint.h"
2+
#include "breakpoint_state_globals.h"
3+
#include "draw.h"
4+
#include "draw_debug.h"
5+
#include "draw_global.h"
6+
#include "vtr_expr_eval.h"
27

38
//map of the available move types and their corresponding type number
49
std::map<int, std::string> available_move_types = {

vpr/src/place/placer_breakpoint.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11

22
#pragma once
33

4-
#include "globals.h"
5-
#include "vpr_types.h"
64
#include "move_utils.h"
7-
#include "breakpoint.h"
8-
#include "draw.h"
95

106
//transforms the vector moved_blocks to a vector of ints and adds it in glob_breakpoint_state
117
void transform_blocks_affected(const t_pl_blocks_to_be_moved& blocksAffected);

0 commit comments

Comments
 (0)