Skip to content

Commit 7865234

Browse files
Merge pull request #3081 from AlexandreSinger/feature-include-cleanup
[Infra] Cleaned Up Includes in Non-External Libs
2 parents 2dc22c5 + 7ae0027 commit 7865234

File tree

116 files changed

+182
-471
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+182
-471
lines changed

libs/libarchfpga/src/arch_check.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <set>
2+
#include <sstream>
23

4+
#include "arch_util.h"
35
#include "logic_types.h"
46
#include "vtr_log.h"
57
#include "arch_error.h"

libs/libarchfpga/src/arch_check.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef ARCH_CHECK_H
2-
#define ARCH_CHECK_H
1+
#pragma once
32

43
/**
54
* This file includes all the definitions of functions which purpose is to
@@ -8,12 +7,9 @@
87
* All new functions corresponding to the architecture checking should end up here.
98
*/
109

11-
#include "arch_types.h"
12-
#include "arch_util.h"
13-
14-
#include "physical_types_util.h"
15-
16-
#include "vtr_util.h"
10+
#include <stdint.h>
11+
#include "logic_types.h"
12+
#include "physical_types.h"
1713

1814
#ifdef __cplusplus
1915
extern "C" {
@@ -76,5 +72,3 @@ void check_models(t_arch* arch);
7672
#ifdef __cplusplus
7773
}
7874
#endif
79-
80-
#endif

libs/libarchfpga/src/arch_error.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef ARCH_ERROR_H
2-
#define ARCH_ERROR_H
1+
#pragma once
32

43
#include "vtr_error.h"
54
#include <cstdarg>
@@ -14,5 +13,3 @@ class ArchFpgaError : public vtr::VtrError {
1413
ArchFpgaError(std::string msg = "", std::string new_filename = "", size_t new_linenumber = -1)
1514
: vtr::VtrError(msg, new_filename, new_linenumber) {}
1615
};
17-
18-
#endif

libs/libarchfpga/src/arch_types.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1+
#pragma once
12
/*
23
* Data types describing the FPGA architecture.
34
*
45
* Date: February 19, 2009
56
* Authors: Jason Luu and Kenneth Kent
67
*/
78

8-
#ifndef ARCH_TYPES_H
9-
#define ARCH_TYPES_H
10-
11-
#include "logic_types.h"
12-
#include "physical_types.h"
13-
#include "cad_types.h"
14-
159
/* Input file parsing. */
1610
#define TOKENS " \t\n"
1711

@@ -25,5 +19,3 @@ enum class e_arch_format {
2519
VTR, ///<VTR-specific device XML format
2620
FPGAInterchange ///<FPGA Interchange device format
2721
};
28-
29-
#endif

libs/libarchfpga/src/arch_util.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#ifndef ARCH_UTIL_H
2-
#define ARCH_UTIL_H
1+
#pragma once
32

4-
#include <regex>
53
#include <unordered_set>
64
#include "physical_types.h"
75

@@ -114,4 +112,3 @@ void link_physical_logical_types(std::vector<t_physical_tile_type>& PhysicalTile
114112
std::vector<t_logical_block_type>& LogicalBlockTypes);
115113

116114
void setup_pin_classes(t_physical_tile_type* type);
117-
#endif

libs/libarchfpga/src/cad_types.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
#pragma once
12
/*
23
* Data types used to give architectural hints for the CAD algorithm
34
*/
4-
#ifndef CAD_TYPES_H
5-
#define CAD_TYPES_H
65

7-
#include "logic_types.h"
86
#include "physical_types.h"
97

108
struct t_pack_pattern_connections;
@@ -128,5 +126,3 @@ struct t_cluster_placement_primitive {
128126
float base_cost; /* cost independent of current status of packing */
129127
float incremental_cost; /* cost dependent on current status of packing */
130128
};
131-
132-
#endif

libs/libarchfpga/src/clock_types.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
#ifndef CLOCK_TYPES_H
2-
#define CLOCK_TYPES_H
1+
#pragma once
32

43
#include <string>
5-
#include <vector>
64

75
enum class e_clock_type {
86
SPINE,
@@ -59,5 +57,3 @@ struct t_clock_connection_arch {
5957
std::string locationy;
6058
float fc;
6159
};
62-
63-
#endif

libs/libarchfpga/src/device_grid.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef DEVICE_GRID
2-
#define DEVICE_GRID
1+
#pragma once
32

43
#include <string>
54
#include <vector>
@@ -149,5 +148,3 @@ class DeviceGrid {
149148

150149
std::vector<t_logical_block_type_ptr> limiting_resources_;
151150
};
152-
153-
#endif

libs/libarchfpga/src/echo_arch.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
#ifndef ECHO_ARCH_H
2-
#define ECHO_ARCH_H
1+
#pragma once
32

4-
#include "arch_types.h"
3+
#include <vector>
4+
#include "physical_types.h"
55

66
void EchoArch(const char* EchoFile,
77
const std::vector<t_physical_tile_type>& PhysicalTileTypes,
88
const std::vector<t_logical_block_type>& LogicalBlockTypes,
99
const t_arch* arch);
10-
11-
#endif

libs/libarchfpga/src/histogram.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include <algorithm>
22
#include <string>
3-
#include <sstream>
43
#include <cmath>
54

65
#include "vtr_log.h"

0 commit comments

Comments
 (0)