Skip to content

Commit 4a4f3c3

Browse files
committed
[lib][rr_graph] return unlock_storage since it is needed by OpenFPGA
1 parent 613989f commit 4a4f3c3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libs/librrgraph/src/base/rr_graph_builder.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,16 @@ class RRGraphBuilder {
401401
return node_storage_.count_rr_switches(arch_switch_inf, arch_switch_fanins);
402402
}
403403

404+
/**
405+
* @brief Unlock storage; required to modify an routing resource graph after edge is read
406+
* @note This function is used by OpenFPGA and currently doesn't have any use in VPR code.
407+
*/
408+
inline void unlock_storage() {
409+
node_storage_.edges_read_ = false;
410+
node_storage_.partitioned_ = false;
411+
node_storage_.clear_node_first_edge();
412+
}
413+
404414
/** @brief Reserve the lists of nodes, edges, switches etc. to be memory efficient.
405415
* This function is mainly used to reserve memory space inside RRGraph,
406416
* when adding a large number of nodes/edge/switches/segments,

0 commit comments

Comments
 (0)