Skip to content

Commit 380b791

Browse files
author
Muhammad Haris Zafar
committed
Inlining function of rr_graph_builder
1 parent 7e26a66 commit 380b791

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

vpr/src/device/rr_graph_builder.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,3 @@ void RRGraphBuilder::set_node_coordinates(RRNodeId id, short x1, short y1, short
5555
node_storage_.set_node_coordinates(id, x1, y1, x2, y2);
5656
}
5757

58-
void RRGraphBuilder::set_node_direction(RRNodeId id, Direction new_direction) {
59-
node_storage_.set_node_direction(id, new_direction);
60-
}

vpr/src/device/rr_graph_builder.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ class RRGraphBuilder {
5959
void set_node_coordinates(RRNodeId id, short x1, short y1, short x2, short y2);
6060

6161
/** @brief Set the node direction */
62-
void set_node_direction(RRNodeId, Direction new_direction);
63-
62+
inline void set_node_direction(RRNodeId id, Direction new_direction) {
63+
node_storage_.set_node_direction(id, new_direction);
64+
}
6465
/* -- Internal data storage -- */
6566
private:
6667
/* TODO: When the refactoring effort finishes,

0 commit comments

Comments
 (0)