Skip to content

Commit 5ef1caa

Browse files
committed
replace keyword auto with specific type
1 parent a76ce0f commit 5ef1caa

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

vpr/src/draw/draw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ void alloc_draw_structs(const t_arch* arch) {
493493
t_draw_state* draw_state = get_draw_state_vars();
494494
auto& device_ctx = g_vpr_ctx.device();
495495
auto& cluster_ctx = g_vpr_ctx.clustering();
496-
auto& atom_ctx = g_vpr_ctx.atom();
496+
const AtomContext& atom_ctx = g_vpr_ctx.atom();
497497

498498
/* Allocate the structures needed to draw the placement and routing-> Set *
499499
* up the default colors for blocks and nets. */

vpr/src/draw/draw_basic.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ void drawroute(enum e_draw_net_type draw_net_type, ezgl::renderer* g) {
539539
/* Next free track in each channel segment if routing is GLOBAL */
540540

541541
auto& cluster_ctx = g_vpr_ctx.clustering();
542-
auto& atom_ctx = g_vpr_ctx.atom();
542+
const AtomContext& atom_ctx = g_vpr_ctx.atom();
543543

544544
t_draw_state* draw_state = get_draw_state_vars();
545545

@@ -550,15 +550,15 @@ void drawroute(enum e_draw_net_type draw_net_type, ezgl::renderer* g) {
550550

551551
/* Now draw each net, one by one. */
552552
if (draw_state->is_flat) {
553-
for (auto net_id : atom_ctx.netlist().nets()) {
553+
for (AtomNetId net_id : atom_ctx.netlist().nets()) {
554554
if (draw_net_type == HIGHLIGHTED
555555
&& draw_state->net_color[net_id] == ezgl::BLACK)
556556
continue;
557557

558558
draw_routed_net((ParentNetId&)net_id, g);
559559
} /* End for (each net) */
560560
} else {
561-
for (auto net_id : cluster_ctx.clb_nlist.nets()) {
561+
for (ClusterNetId net_id : cluster_ctx.clb_nlist.nets()) {
562562
if (draw_net_type == HIGHLIGHTED
563563
&& draw_state->net_color[net_id] == ezgl::BLACK)
564564
continue;

vpr/src/draw/draw_searchbar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void deselect_all() {
231231

232232
t_draw_state* draw_state = get_draw_state_vars();
233233
const auto& cluster_ctx = g_vpr_ctx.clustering();
234-
const auto& atom_ctx = g_vpr_ctx.atom();
234+
const AtomContext& atom_ctx = g_vpr_ctx.atom();
235235
const auto& device_ctx = g_vpr_ctx.device();
236236

237237
/* Create some colour highlighting */

vpr/src/draw/search_bar.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@
5757
extern std::string rr_highlight_message;
5858

5959
bool is_net_unrouted(AtomNetId atomic_net_id) {
60-
auto& route_ctx = g_vpr_ctx.mutable_routing();
60+
RoutingContext& route_ctx = g_vpr_ctx.mutable_routing();
6161
return !route_ctx.route_trees[atomic_net_id].has_value();
6262
}
6363

6464
bool is_net_fully_absorbed(AtomNetId atomic_net_id) {
65-
const auto& rr_graph = g_vpr_ctx.device().rr_graph;
66-
auto& route_ctx = g_vpr_ctx.mutable_routing();
65+
const RRGraphView& rr_graph = g_vpr_ctx.device().rr_graph;
66+
RoutingContext& route_ctx = g_vpr_ctx.mutable_routing();
6767

6868
bool is_absorbed = true;
6969

0 commit comments

Comments
 (0)