Skip to content

Commit fc83979

Browse files
committed
vpr: Fix formatting
1 parent 93640d3 commit fc83979

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

vpr/src/pack/cluster.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3285,7 +3285,6 @@ static enum e_block_pack_status check_chain_root_placement_feasibility(const t_p
32853285
* the number of used pb_types in the given packed cluster t_pb
32863286
*/
32873287
static void update_pb_type_count(const t_pb* pb, std::unordered_map<std::string, int>& pb_type_count) {
3288-
32893288
auto pb_graph_node = pb->pb_graph_node;
32903289
auto pb_type = pb_graph_node->pb_type;
32913290
auto mode = &pb_type->modes[pb->mode];
@@ -3302,23 +3301,20 @@ static void update_pb_type_count(const t_pb* pb, std::unordered_map<std::string,
33023301
if (pb_type->num_modes > 0) {
33033302
for (int i = 0; i < mode->num_pb_type_children; i++) {
33043303
for (int j = 0; j < mode->pb_type_children[i].num_pb; j++) {
3305-
if (pb->child_pbs[i] && pb->child_pbs[i][j].name )
3304+
if (pb->child_pbs[i] && pb->child_pbs[i][j].name)
33063305
update_pb_type_count(&pb->child_pbs[i][j], pb_type_count);
33073306
}
33083307
}
33093308
}
3310-
33113309
}
33123310

33133311
/**
33143312
* Print the total number of used physical blocks for each pb type in the architecture
33153313
*/
33163314
static void print_pb_type_count(std::unordered_map<std::string, int>& pb_type_count) {
3317-
33183315
VTR_LOG("\nPb types usage...\n\n");
33193316
for (auto& pb_type : pb_type_count) {
33203317
VTR_LOG("\t%-12s : %d\n", pb_type.first.c_str(), pb_type.second);
33213318
}
33223319
VTR_LOG("\n");
3323-
33243320
}

vpr/src/route/route_timing.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2328,8 +2328,7 @@ static OveruseInfo calculate_overuse_info() {
23282328
//should be more efficient (since usually only a portion of the RR graph is
23292329
//used by routing, particularly on large devices).
23302330
for (auto net_id : cluster_ctx.clb_nlist.nets()) {
2331-
2332-
for(t_trace* tptr = route_ctx.trace[net_id].head; tptr != nullptr; tptr = tptr->next) {
2331+
for (t_trace* tptr = route_ctx.trace[net_id].head; tptr != nullptr; tptr = tptr->next) {
23332332
int inode = tptr->index;
23342333

23352334
auto result = checked_nodes.insert(inode);

vpr/src/util/vpr_error.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,15 @@ void vpr_throw_opt(enum e_vpr_error type, const char* psz_func_name, const char*
8383
# endif
8484
#endif
8585

86-
8786
/*
8887
* Macro wrapper around vpr_throw() which automatically
8988
* specifies file and line number of call site.
9089
*
9190
* VPR_THROW() is used to signal an *unconditional* fatal error which should
9291
* stop the program.
9392
*/
94-
#define VPR_THROW(type, ...) \
95-
do { \
93+
#define VPR_THROW(type, ...) \
94+
do { \
9695
vpr_throw(type, __FILE__, __LINE__, __VA_ARGS__); \
9796
} while (false)
9897

@@ -104,8 +103,8 @@ void vpr_throw_opt(enum e_vpr_error type, const char* psz_func_name, const char*
104103
* default stops the program, but may be suppressed (i.e. converted to a
105104
* warning).
106105
*/
107-
#define VPR_ERROR(type, ...) \
108-
do { \
106+
#define VPR_ERROR(type, ...) \
107+
do { \
109108
vpr_throw_opt(type, VPR_THROW_FUNCTION, __FILE__, __LINE__, __VA_ARGS__); \
110109
} while (false)
111110

0 commit comments

Comments
 (0)