Skip to content

Commit 0942bb0

Browse files
committed
C++ format
1 parent 439e646 commit 0942bb0

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

vpr/src/base/vpr_types.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -426,13 +426,13 @@ struct t_chain_info {
426426
* Contains linked lists to placement locations based on status of primitive
427427
*/
428428
struct t_cluster_placement_stats {
429-
int num_pb_types; ///<num primitive pb_types inside complex block
430-
bool has_long_chain; ///<specifies if this cluster has a molecule placed in it that belongs to a long chain (a chain that spans more than one cluster)
431-
const t_pack_molecule* curr_molecule; ///<current molecule being considered for packing
432-
std::vector<t_cluster_placement_primitive*> valid_primitives; ///<[0..num_pb_types-1] ptrs to linked list of valid primitives, for convenience, each linked list head is empty
433-
t_cluster_placement_primitive* in_flight; ///<ptrs to primitives currently being considered
434-
t_cluster_placement_primitive* tried; ///<ptrs to primitives that are open but current logic block unable to pack to
435-
t_cluster_placement_primitive* invalid; ///<ptrs to primitives that are invalid
429+
int num_pb_types; ///<num primitive pb_types inside complex block
430+
bool has_long_chain; ///<specifies if this cluster has a molecule placed in it that belongs to a long chain (a chain that spans more than one cluster)
431+
const t_pack_molecule* curr_molecule; ///<current molecule being considered for packing
432+
std::vector<t_cluster_placement_primitive*> valid_primitives; ///<[0..num_pb_types-1] ptrs to linked list of valid primitives, for convenience, each linked list head is empty
433+
t_cluster_placement_primitive* in_flight; ///<ptrs to primitives currently being considered
434+
t_cluster_placement_primitive* tried; ///<ptrs to primitives that are open but current logic block unable to pack to
435+
t_cluster_placement_primitive* invalid; ///<ptrs to primitives that are invalid
436436
};
437437

438438
/******************************************************************

vpr/src/pack/cluster.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ std::map<t_logical_block_type_ptr, size_t> do_clustering(const t_packer_opts& pa
139139

140140
bool is_cluster_legal;
141141
enum e_block_pack_status block_pack_status;
142-
142+
143143
t_lb_router_data* router_data = nullptr;
144144
t_pack_molecule *istart, *next_molecule, *prev_molecule;
145145

vpr/src/pack/cluster_placement.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,13 @@ static void flush_intermediate_queues(t_cluster_placement_stats& cluster_placeme
5656
* [0..num_pb_types-1] array of cluster placement stats, one for each device_ctx.block_types
5757
*/
5858
void alloc_and_load_cluster_placement_stats(std::vector<t_cluster_placement_stats>& cluster_placement_stats_list) {
59-
60-
6159
auto& device_ctx = g_vpr_ctx.device();
6260

6361
cluster_placement_stats_list.resize(device_ctx.logical_block_types.size());
6462

6563
for (const auto& type : device_ctx.logical_block_types) {
66-
6764
if (!is_empty_type(&type)) {
6865
cluster_placement_stats_list[type.index].valid_primitives.resize(get_max_primitives_in_pb_type(type.pb_type) + 1, nullptr);
69-
7066
/* too much memory allocated but shouldn't be a problem */
7167
cluster_placement_stats_list[type.index].curr_molecule = nullptr;
7268
load_cluster_placement_stats_for_pb_graph_node(cluster_placement_stats_list[type.index],

0 commit comments

Comments
 (0)