Skip to content

Commit 3b5dff2

Browse files
acomodikmurray
authored andcommitted
run make format
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 841c718 commit 3b5dff2

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

libs/libarchfpga/src/arch_util.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ void free_arch(t_arch* arch) {
216216
}
217217

218218
void free_type_descriptors(std::vector<t_physical_tile_type>& type_descriptors) {
219-
for (auto &type : type_descriptors) {
219+
for (auto& type : type_descriptors) {
220220
vtr::free(type.name);
221221
if (type.index == EMPTY_TYPE_INDEX) {
222222
continue;
@@ -258,7 +258,7 @@ void free_type_descriptors(std::vector<t_physical_tile_type>& type_descriptors)
258258
void free_type_descriptors(std::vector<t_logical_block_type>& type_descriptors) {
259259
free_all_pb_graph_nodes(type_descriptors);
260260

261-
for (auto &type : type_descriptors) {
261+
for (auto& type : type_descriptors) {
262262
vtr::free(type.name);
263263
if (type.index == EMPTY_TYPE_INDEX) {
264264
continue;
@@ -271,7 +271,7 @@ void free_type_descriptors(std::vector<t_logical_block_type>& type_descriptors)
271271
}
272272

273273
static void free_all_pb_graph_nodes(std::vector<t_logical_block_type>& type_descriptors) {
274-
for (auto &type : type_descriptors) {
274+
for (auto& type : type_descriptors) {
275275
if (type.pb_type) {
276276
if (type.pb_graph_head) {
277277
free_pb_graph(type.pb_graph_head);
@@ -1097,7 +1097,7 @@ void CreateModelLibrary(t_arch* arch) {
10971097

10981098
void SyncModelsPbTypes(t_arch* arch,
10991099
const std::vector<t_logical_block_type>& Types) {
1100-
for (auto &Type : Types) {
1100+
for (auto& Type : Types) {
11011101
if (Type.pb_type != nullptr) {
11021102
SyncModelsPbTypes_rec(arch, Type.pb_type);
11031103
}

libs/libarchfpga/src/echo_arch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void EchoArch(const char* EchoFile,
7575
}
7676
fprintf(Echo, "*************************************************\n\n");
7777
fprintf(Echo, "*************************************************\n");
78-
for (auto &Type : PhysicalTileTypes) {
78+
for (auto& Type : PhysicalTileTypes) {
7979
fprintf(Echo, "Type: \"%s\"\n", Type.name);
8080
fprintf(Echo, "\tcapacity: %d\n", Type.capacity);
8181
fprintf(Echo, "\twidth: %d\n", Type.width);

vpr/src/base/SetupGrid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ static DeviceGrid build_device_grid(const t_grid_def& grid_def, size_t grid_widt
442442
}
443443

444444
//Warn if any types were not specified in the grid layout
445-
for (auto const &type : device_ctx.physical_tile_types) {
445+
for (auto const& type : device_ctx.physical_tile_types) {
446446
if (&type == empty_type) continue; //Don't worry if empty hasn't been specified
447447

448448
if (!seen_types.count(&type)) {

vpr/src/pack/pack_report.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void report_packing_pin_usage(std::ostream& os, const VprContext& ctx) {
1717

1818
std::map<t_physical_tile_type_ptr, size_t> total_input_pins;
1919
std::map<t_physical_tile_type_ptr, size_t> total_output_pins;
20-
for (auto const &type : device_ctx.physical_tile_types) {
20+
for (auto const& type : device_ctx.physical_tile_types) {
2121
if (is_empty_type(&type)) continue;
2222

2323
t_pb_type* pb_type = logical_block_type(&type)->pb_type;
@@ -40,7 +40,7 @@ void report_packing_pin_usage(std::ostream& os, const VprContext& ctx) {
4040

4141
os << std::fixed << std::setprecision(2);
4242

43-
for (auto const &physical_type : device_ctx.physical_tile_types) {
43+
for (auto const& physical_type : device_ctx.physical_tile_types) {
4444
auto type = &physical_type;
4545
if (is_empty_type(type)) continue;
4646
if (!inputs_used.count(type)) continue;

vpr/src/pack/pb_type_graph.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void alloc_and_load_all_pb_graphs(bool load_power_structures) {
126126
num_edges_head = nullptr;
127127
auto& device_ctx = g_vpr_ctx.mutable_device();
128128

129-
for (auto &type : device_ctx.logical_block_types) {
129+
for (auto& type : device_ctx.logical_block_types) {
130130
auto physical_type = &device_ctx.physical_tile_types[type.index];
131131
if (type.pb_type) {
132132
type.pb_graph_head = (t_pb_graph_node*)vtr::calloc(1, sizeof(t_pb_graph_node));
@@ -147,7 +147,7 @@ void alloc_and_load_all_pb_graphs(bool load_power_structures) {
147147
VTR_LOG_ERROR("in pb graph");
148148
exit(1);
149149
}
150-
for (auto &type : device_ctx.logical_block_types) {
150+
for (auto& type : device_ctx.logical_block_types) {
151151
if (type.pb_type) {
152152
load_pb_graph_pin_to_pin_annotations(type.pb_graph_head);
153153
}
@@ -166,7 +166,7 @@ void echo_pb_graph(char* filename) {
166166
fprintf(fp, "--------------------------------------------\n\n");
167167

168168
auto& device_ctx = g_vpr_ctx.device();
169-
for (auto &type : device_ctx.logical_block_types) {
169+
for (auto& type : device_ctx.logical_block_types) {
170170
fprintf(fp, "type %s\n", type.name);
171171
if (type.pb_graph_head)
172172
echo_pb_rec(type.pb_graph_head, 1, fp);
@@ -188,7 +188,7 @@ static int check_pb_graph() {
188188
*/
189189
num_errors = 0;
190190
auto& device_ctx = g_vpr_ctx.device();
191-
for (auto &type : device_ctx.logical_block_types) {
191+
for (auto& type : device_ctx.logical_block_types) {
192192
if (type.pb_type) {
193193
check_pb_node_rec(type.pb_graph_head);
194194
}

vpr/src/pack/prepack.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ t_pack_patterns* alloc_and_load_pack_patterns(int* num_packing_patterns) {
126126

127127
/* alloc and initialize array of packing patterns based on architecture complex blocks */
128128
std::unordered_map<std::string, int> pattern_names;
129-
for (auto &type : device_ctx.logical_block_types) {
129+
for (auto& type : device_ctx.logical_block_types) {
130130
discover_pattern_names_in_pb_graph_node(type.pb_graph_head, pattern_names);
131131
}
132132

133133
list_of_packing_patterns = alloc_and_init_pattern_list_from_hash(pattern_names);
134134

135135
/* load packing patterns by traversing the edges to find edges belonging to pattern */
136136
for (size_t i = 0; i < pattern_names.size(); i++) {
137-
for (auto &type : device_ctx.logical_block_types) {
137+
for (auto& type : device_ctx.logical_block_types) {
138138
// find an edge that belongs to this pattern
139139
expansion_edge = find_expansion_edge_of_pattern(i, type.pb_graph_head);
140140
if (!expansion_edge) {
@@ -1173,7 +1173,7 @@ static t_pb_graph_node* get_expected_lowest_cost_primitive_for_atom_block(const
11731173
best_cost = UNDEFINED;
11741174
best = nullptr;
11751175
current = nullptr;
1176-
for (const auto &type : device_ctx.logical_block_types) {
1176+
for (const auto& type : device_ctx.logical_block_types) {
11771177
cost = UNDEFINED;
11781178
current = get_expected_lowest_cost_primitive_for_atom_block_in_pb_graph_node(blk_id, type.pb_graph_head, &cost);
11791179
if (cost != UNDEFINED) {

vpr/src/route/rr_graph.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ static void build_rr_graph(const t_graph_type graph_type,
680680
auto perturb_opins = alloc_and_load_perturb_opins(&types[itype], Fc_out[itype],
681681
max_chan_width, segment_inf);
682682
opin_to_track_map[itype] = alloc_and_load_pin_to_track_map(DRIVER,
683-
Fc_out[itype], &types[itype], perturb_opins, directionality,
684-
segment_inf.size(), sets_per_seg_type);
683+
Fc_out[itype], &types[itype], perturb_opins, directionality,
684+
segment_inf.size(), sets_per_seg_type);
685685
}
686686
}
687687
/* END OPIN MAP */

vpr/src/util/vpr_utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ void get_pin_range_for_block(const ClusterBlockId blk_id,
718718
}
719719

720720
t_physical_tile_type_ptr find_block_type_by_name(std::string name, const std::vector<t_physical_tile_type>& types) {
721-
for (auto const &type : types) {
721+
for (auto const& type : types) {
722722
if (type.name == name) {
723723
return &type;
724724
}
@@ -2228,7 +2228,7 @@ void place_sync_external_block_connections(ClusterBlockId iblk) {
22282228
int max_pins_per_grid_tile() {
22292229
auto& device_ctx = g_vpr_ctx.device();
22302230
int max_pins = 0;
2231-
for (auto &type : device_ctx.physical_tile_types) {
2231+
for (auto& type : device_ctx.physical_tile_types) {
22322232
int pins_per_grid_tile = type.num_pins / (type.width * type.height);
22332233
//Use the maximum number of pins normalized by block area
22342234
max_pins = max(max_pins, pins_per_grid_tile);

0 commit comments

Comments
 (0)