Skip to content

Commit ed03030

Browse files
soheilshahrouzAmirhosseinPoolad
authored andcommitted
pass by reference and typo
1 parent e131dbe commit ed03030

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libs/libarchfpga/src/cad_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ struct t_cluster_placement_primitive {
126126
t_pb_graph_node* pb_graph_node;
127127
bool valid;
128128
float base_cost; /* cost independent of current status of packing */
129-
float incremental_cost; /* cost dependant on current status of packing */
129+
float incremental_cost; /* cost dependent on current status of packing */
130130
};
131131

132132
#endif

vpr/src/pack/prepack.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void forward_infer_pattern(t_pb_graph_pin* pb_graph_pin);
4747

4848
static void backward_infer_pattern(t_pb_graph_pin* pb_graph_pin);
4949

50-
static std::vector<t_pack_patterns> alloc_and_init_pattern_list_from_hash(std::unordered_map<std::string, int> pattern_names);
50+
static std::vector<t_pack_patterns> alloc_and_init_pattern_list_from_hash(const std::unordered_map<std::string, int>& pattern_names);
5151

5252
static t_pb_graph_edge* find_expansion_edge_of_pattern(const int pattern_index,
5353
const t_pb_graph_node* pb_graph_node);
@@ -346,7 +346,7 @@ static void backward_infer_pattern(t_pb_graph_pin* pb_graph_pin) {
346346
* Allocates memory for models and loads the name of the packing pattern
347347
* so that it can be identified and loaded with more complete information later
348348
*/
349-
static std::vector<t_pack_patterns> alloc_and_init_pattern_list_from_hash(std::unordered_map<std::string, int> pattern_names) {
349+
static std::vector<t_pack_patterns> alloc_and_init_pattern_list_from_hash(const std::unordered_map<std::string, int>& pattern_names) {
350350
std::vector<t_pack_patterns> nlist(pattern_names.size());
351351

352352
for (const auto& curr_pattern : pattern_names) {

0 commit comments

Comments
 (0)