aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-12 22:04:13 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-12 22:04:13 +0200
commitb8a42ff53b1fbb6e03d169d14e58180a750f4cad (patch)
tree72920e1ca49d1520045c5df847abe227f70b2a2a /ecp5
parentad60ab2ef164678cdde4410906cea674d122bf13 (diff)
downloadnextpnr-b8a42ff53b1fbb6e03d169d14e58180a750f4cad.tar.gz
nextpnr-b8a42ff53b1fbb6e03d169d14e58180a750f4cad.tar.bz2
nextpnr-b8a42ff53b1fbb6e03d169d14e58180a750f4cad.zip
Updates from clang-format
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/arch.cc10
-rw-r--r--ecp5/archdefs.h10
-rw-r--r--ecp5/main.cc10
3 files changed, 14 insertions, 16 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index ace0703e..51f4db84 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -290,15 +290,9 @@ delay_t Arch::estimateDelay(WireId src, WireId dst) const
// -----------------------------------------------------------------------
-bool Arch::place()
-{
- return placer1(getCtx());
-}
+bool Arch::place() { return placer1(getCtx()); }
-bool Arch::route()
-{
- return router1(getCtx());
-}
+bool Arch::route() { return router1(getCtx()); }
// -----------------------------------------------------------------------
diff --git a/ecp5/archdefs.h b/ecp5/archdefs.h
index 797db5f7..c4d25a50 100644
--- a/ecp5/archdefs.h
+++ b/ecp5/archdefs.h
@@ -119,8 +119,14 @@ struct DecalId
Location location;
uint32_t z = 0;
- bool operator==(const DecalId &other) const { return type == other.type && location == other.location && z == other.z; }
- bool operator!=(const DecalId &other) const { return type != other.type || location != other.location || z != other.z; }
+ bool operator==(const DecalId &other) const
+ {
+ return type == other.type && location == other.location && z == other.z;
+ }
+ bool operator!=(const DecalId &other) const
+ {
+ return type != other.type || location != other.location || z != other.z;
+ }
};
NEXTPNR_NAMESPACE_END
diff --git a/ecp5/main.cc b/ecp5/main.cc
index 45774431..59403a93 100644
--- a/ecp5/main.cc
+++ b/ecp5/main.cc
@@ -93,18 +93,16 @@ int main(int argc, char *argv[])
}
if (vm.count("help") || argc == 1) {
- std::cout << boost::filesystem::basename(argv[0])
- << " -- Next Generation Place and Route (git "
- "sha1 " GIT_COMMIT_HASH_STR ")\n";
+ std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
+ "sha1 " GIT_COMMIT_HASH_STR ")\n";
std::cout << "\n";
std::cout << options << "\n";
return argc != 1;
}
if (vm.count("version")) {
- std::cout << boost::filesystem::basename(argv[0])
- << " -- Next Generation Place and Route (git "
- "sha1 " GIT_COMMIT_HASH_STR ")\n";
+ std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
+ "sha1 " GIT_COMMIT_HASH_STR ")\n";
return 1;
}