Skip to content

Commit db9eed4

Browse files
committed
Add comment around state flags.
Signed-off-by: Keith Rothman <[email protected]>
1 parent 5c1b331 commit db9eed4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

vpr/src/route/rr_graph_storage.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,25 @@ class t_rr_graph_storage {
354354
vtr::vector<RREdgeId, RRNodeId> edge_dest_node_;
355355
vtr::vector<RREdgeId, short> edge_switch_;
356356

357+
// Has any edges been read?
358+
//
359+
// Any method that mutates edge storage will be locked out after this
360+
// variable is set.
361+
//
362+
// Reading any of the following members should set this flag:
363+
// - edge_src_node_
364+
// - edge_dest_node_
365+
// - edge_switch_
357366
mutable bool edges_read_;
367+
368+
// Set after either remap_rr_node_switch_indices or mark_edges_as_rr_switch_ids
369+
// has been called.
370+
//
371+
// remap_rr_node_switch_indices converts indices to arch_switch_inf into
372+
// indices to rr_switch_inf.
358373
bool remapped_edges_;
374+
375+
// Set after partition_edges has been called.
359376
bool partitioned_;
360377
};
361378

0 commit comments

Comments
 (0)