Skip to content

Commit 439e646

Browse files
committed
C++ format
1 parent 83aced0 commit 439e646

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

vpr/src/base/vpr_types.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,5 @@ void free_cluster_placement_stats(std::vector<t_cluster_placement_stats>& cluste
260260
}
261261
delete cluster_placement_stats_list[index].valid_primitives[j];
262262
}
263-
264263
}
265-
266264
}

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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ 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-
143142

144143
t_lb_router_data* router_data = nullptr;
145144
t_pack_molecule *istart, *next_molecule, *prev_molecule;
@@ -300,7 +299,7 @@ std::map<t_logical_block_type_ptr, size_t> do_clustering(const t_packer_opts& pa
300299
/*it doesn't make sense to do a timing analysis here since there*
301300
*is only one atom block clustered it would not change anything */
302301
}
303-
302+
304303
cluster_stats.num_unrelated_clustering_attempts = 0;
305304
next_molecule = get_molecule_for_cluster(cluster_ctx.clb_nlist.block_pb(clb_index),
306305
attraction_groups,

vpr/src/pack/re_cluster_util.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,6 @@ static void rebuild_cluster_placemet_stats(const ClusterBlockId& clb_index,
614614
auto& cluster_ctx = g_vpr_ctx.clustering();
615615
auto& atom_ctx = g_vpr_ctx.atom();
616616

617-
618617
reset_cluster_placement_stats(helper_ctx.cluster_placement_stats[type_idx]);
619618
set_mode_cluster_placement_stats(cluster_ctx.clb_nlist.block_pb(clb_index)->pb_graph_node, mode);
620619

0 commit comments

Comments
 (0)