aboutsummaryrefslogtreecommitdiffstats
path: root/common/place_sa.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-26 14:13:52 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-26 14:13:52 +0200
commit103dde79de25e2f9250b27134aa3d547d42408e2 (patch)
treea1726abff970476179e2395403f9cd5da274ca30 /common/place_sa.cc
parentded9df61dc1ce390a6751c214c02a2acb3a57577 (diff)
downloadnextpnr-103dde79de25e2f9250b27134aa3d547d42408e2.tar.gz
nextpnr-103dde79de25e2f9250b27134aa3d547d42408e2.tar.bz2
nextpnr-103dde79de25e2f9250b27134aa3d547d42408e2.zip
Fixing Python bindings after adding unique_ptr
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/place_sa.cc')
-rw-r--r--common/place_sa.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/place_sa.cc b/common/place_sa.cc
index 56d92633..3e900c84 100644
--- a/common/place_sa.cc
+++ b/common/place_sa.cc
@@ -79,7 +79,7 @@ class SAPlacer
size_t placed_cells = 0;
// Initial constraints placer
- for (auto& cell_entry : ctx->cells) {
+ for (auto &cell_entry : ctx->cells) {
CellInfo *cell = cell_entry.second.get();
auto loc = cell->attrs.find(ctx->id("BEL"));
if (loc != cell->attrs.end()) {
@@ -109,7 +109,7 @@ class SAPlacer
// Sort to-place cells for deterministic initial placement
std::vector<CellInfo *> autoplaced;
- for (auto& cell : ctx->cells) {
+ for (auto &cell : ctx->cells) {
CellInfo *ci = cell.second.get();
if (ci->bel == BelId()) {
autoplaced.push_back(cell.second.get());
@@ -137,7 +137,7 @@ class SAPlacer
// Calculate wirelength after initial placement
curr_wirelength = 0;
curr_tns = 0;
- for (auto& net : ctx->nets) {
+ for (auto &net : ctx->nets) {
wirelen_t wl = get_wirelength(net.second.get(), curr_tns);
wirelengths[net.first] = wl;
curr_wirelength += wl;
@@ -211,7 +211,7 @@ class SAPlacer
// accumulating over time
curr_wirelength = 0;
curr_tns = 0;
- for (auto& net : ctx->nets) {
+ for (auto &net : ctx->nets) {
wirelen_t wl = get_wirelength(net.second.get(), curr_tns);
wirelengths[net.first] = wl;
curr_wirelength += wl;