Skip to content

Commit a191300

Browse files
author
Nathan Shreve
committed
Removed mirror_nodes()
1 parent fde5154 commit a191300

File tree

2 files changed

+0
-55
lines changed

2 files changed

+0
-55
lines changed

libs/librrgraph/src/base/rr_spatial_lookup.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -285,16 +285,6 @@ void RRSpatialLookup::remove_node(RRNodeId node,
285285
rr_node_indices_[type][layer][x][y][side][ptc] = -1;
286286
}
287287

288-
void RRSpatialLookup::mirror_nodes(const int layer,
289-
const vtr::Point<int>& src_coord,
290-
const vtr::Point<int>& des_coord,
291-
t_rr_type type,
292-
e_side side) {
293-
VTR_ASSERT(SOURCE == type || SINK == type);
294-
resize_nodes(layer, des_coord.x(), des_coord.y(), type, side);
295-
rr_node_indices_[type][layer][des_coord.x()][des_coord.y()][side] = rr_node_indices_[type][layer][src_coord.x()][src_coord.y()][side];
296-
}
297-
298288
void RRSpatialLookup::resize_nodes(int layer,
299289
int x,
300290
int y,

libs/librrgraph/src/base/rr_spatial_lookup.h

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -184,51 +184,6 @@ class RRSpatialLookup {
184184
int ptc,
185185
e_side side = SIDES[0]);
186186

187-
/**
188-
* @brief Mirror the last dimension of a look-up, i.e., a list of nodes, from a source coordinate to
189-
* a destination coordinate.
190-
*
191-
* This function is mostly need by SOURCE and SINK nodes which are indexable in multiple locations.
192-
* Considering a bounding box (layer, x, y)->(layer, x + width, y + height) of a multi-height and multi-width grid,
193-
* SOURCE and SINK nodes are indexable in any location inside the boundry.
194-
*
195-
* An example of usage:
196-
*
197-
*
198-
* ```
199-
* // Create a empty lookup
200-
* RRSpatialLookup rr_lookup;
201-
* // Adding other nodes ...
202-
* // Copy the nodes whose types are SOURCE at (1, 1) to (1, 2)
203-
* rr_lookup.mirror_nodes(vtr::Point<int>(1, 1),
204-
* vtr::Point<int>(1, 2),
205-
* SOURCE,
206-
* TOP);
207-
* ```
208-
*
209-
* @note currently this function only accepts SOURCE/SINK nodes. May unlock for the other types
210-
* depending on needs
211-
*/
212-
/*
213-
* TODO: Consider to make a high-level API to duplicate the nodes for large blocks.
214-
* Then this API can become a private one
215-
* For example,
216-
*
217-
*
218-
* ```
219-
* expand_nodes(source_coordinate, bounding_box_coordinate, type, side);
220-
* ```
221-
*
222-
* Alternatively, we can rework the ``find_node()`` API so that we always search the lowest (x,y)
223-
* corner when dealing with large blocks. But this may require the data structure to be dependent
224-
* on DeviceGrid information (it needs to identify if a grid has height > 1 as well as width > 1)
225-
*/
226-
void mirror_nodes(const int layer,
227-
const vtr::Point<int>& src_coord,
228-
const vtr::Point<int>& des_coord,
229-
t_rr_type type,
230-
e_side side);
231-
232187
/**
233188
* @brief Resize the given 4 dimensions (layer, x, y, side) of the RRSpatialLookup data structure for the given type
234189
*

0 commit comments

Comments
 (0)