Skip to content

Commit a203d02

Browse files
committed
vpr: Rename find_to() -> find_to_loc_uniform()
1 parent ab5acb9 commit a203d02

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

vpr/src/place/move_utils.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -482,11 +482,11 @@ ClusterBlockId pick_from_block() {
482482
return ClusterBlockId::INVALID();
483483
}
484484

485-
bool find_to(t_physical_tile_type_ptr type,
486-
float rlim,
487-
const t_pl_loc from,
488-
t_pl_loc& to) {
489-
//Finds a legal swap to location for the given type, starting from 'x_from' and 'y_from'
485+
bool find_to_loc_uniform(t_physical_tile_type_ptr type,
486+
float rlim,
487+
const t_pl_loc from,
488+
t_pl_loc& to) {
489+
//Finds a legal swap to location for the given type, starting from 'from.x' and 'from.y'
490490
//
491491
//Note that the range limit (rlim) is applied in a logical sense (i.e. 'compressed' grid space consisting
492492
//of the same block types, and not the physical grid space). This means, for example, that columns of 'rare'

vpr/src/place/move_utils.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ std::set<t_pl_loc> determine_locations_emptied_by_move(t_pl_blocks_to_be_moved&
4646

4747
ClusterBlockId pick_from_block();
4848

49-
bool find_to(t_physical_tile_type_ptr type,
50-
float rlim,
51-
const t_pl_loc from,
52-
t_pl_loc& to);
49+
bool find_to_loc_uniform(t_physical_tile_type_ptr type,
50+
float rlim,
51+
const t_pl_loc from,
52+
t_pl_loc& to);
5353
#endif

vpr/src/place/uniform_move_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ e_create_move UniformMoveGenerator::propose_move(t_pl_blocks_to_be_moved& blocks
1717
VTR_ASSERT(physical_tile_type(cluster_from_type) == grid_from_type);
1818

1919
t_pl_loc to;
20-
if (!find_to(physical_tile_type(b_from), rlim, from, to)) {
20+
if (!find_to_loc_uniform(physical_tile_type(b_from), rlim, from, to)) {
2121
return e_create_move::ABORT;
2222
}
2323

0 commit comments

Comments
 (0)