aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-04-08 18:08:39 +0100
committerDavid Shah <dave@ds0.me>2019-04-08 18:08:39 +0100
commitcfcd657e32d3226128a95340a9f0fe1078f6f111 (patch)
treef00db3c3180b2cf94e90e0029f215d667c961666 /common/placer1.cc
parentad9bc627e670392e52d5e1f1e24106deada6eb8c (diff)
downloadnextpnr-cfcd657e32d3226128a95340a9f0fe1078f6f111.tar.gz
nextpnr-cfcd657e32d3226128a95340a9f0fe1078f6f111.tar.bz2
nextpnr-cfcd657e32d3226128a95340a9f0fe1078f6f111.zip
clangformat
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common/placer1.cc')
-rw-r--r--common/placer1.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index 1fbd2a6e..a8ddd8a6 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -835,7 +835,8 @@ class SAPlacer
struct MoveChangeData
{
- enum BoundChangeType {
+ enum BoundChangeType
+ {
NO_CHANGE,
CELL_MOVED_INWARDS,
CELL_MOVED_OUTWARDS,
@@ -854,7 +855,8 @@ class SAPlacer
wirelen_t wirelen_delta = 0;
double timing_delta = 0;
- void init(SAPlacer *p) {
+ void init(SAPlacer *p)
+ {
already_bounds_changed_x.resize(p->ctx->nets.size());
already_bounds_changed_y.resize(p->ctx->nets.size());
already_changed_arcs.resize(p->ctx->nets.size());
@@ -921,7 +923,7 @@ class SAPlacer
mc.already_bounds_changed_x[pn->udata] = MoveChangeData::CELL_MOVED_OUTWARDS;
mc.bounds_changed_nets_x.push_back(pn->udata);
}
- } else if (old_loc.x == curr_bounds.x0 && curr_loc.x > curr_bounds.x0) {
+ } else if (old_loc.x == curr_bounds.x0 && curr_loc.x > curr_bounds.x0) {
if (mc.already_bounds_changed_x[pn->udata] == MoveChangeData::NO_CHANGE)
mc.bounds_changed_nets_x.push_back(pn->udata);
if (curr_bounds.nx0 == 1) {
@@ -951,7 +953,7 @@ class SAPlacer
mc.already_bounds_changed_x[pn->udata] = MoveChangeData::CELL_MOVED_OUTWARDS;
mc.bounds_changed_nets_x.push_back(pn->udata);
}
- } else if (old_loc.x == curr_bounds.x1 && curr_loc.x < curr_bounds.x1) {
+ } else if (old_loc.x == curr_bounds.x1 && curr_loc.x < curr_bounds.x1) {
if (mc.already_bounds_changed_x[pn->udata] == MoveChangeData::NO_CHANGE)
mc.bounds_changed_nets_x.push_back(pn->udata);
if (curr_bounds.nx1 == 1) {
@@ -1006,7 +1008,7 @@ class SAPlacer
mc.already_bounds_changed_y[pn->udata] = MoveChangeData::CELL_MOVED_OUTWARDS;
mc.bounds_changed_nets_y.push_back(pn->udata);
}
- } else if (old_loc.y == curr_bounds.y1 && curr_loc.y < curr_bounds.y1) {
+ } else if (old_loc.y == curr_bounds.y1 && curr_loc.y < curr_bounds.y1) {
if (mc.already_bounds_changed_y[pn->udata] == MoveChangeData::NO_CHANGE)
mc.bounds_changed_nets_y.push_back(pn->udata);
if (curr_bounds.ny1 == 1) {
@@ -1048,7 +1050,8 @@ class SAPlacer
md.new_net_bounds[bc] = get_net_bounds(net_by_udata[bc]);
}
for (const auto &bc : md.bounds_changed_nets_y) {
- if (md.already_bounds_changed_x[bc] != MoveChangeData::FULL_RECOMPUTE && md.already_bounds_changed_y[bc] == MoveChangeData::FULL_RECOMPUTE)
+ if (md.already_bounds_changed_x[bc] != MoveChangeData::FULL_RECOMPUTE &&
+ md.already_bounds_changed_y[bc] == MoveChangeData::FULL_RECOMPUTE)
md.new_net_bounds[bc] = get_net_bounds(net_by_udata[bc]);
}