Skip to content

Commit f2ae4e5

Browse files
committed
run make format
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent b7745fd commit f2ae4e5

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

libs/libarchfpga/src/read_fpga_interchange_arch.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,6 @@ struct ArchReader {
385385
const char* name,
386386
t_sub_tile& sub_tile,
387387
t_physical_tile_type& type) {
388-
389388
vtr::bimap<t_logical_pin, t_physical_pin> directs_map;
390389
auto ltype = get_type_by_name<t_logical_block_type>(name, ltypes_);
391390

@@ -446,7 +445,7 @@ struct ArchReader {
446445
auto alt_sites_pins = site_in_tile->getAltPinsToPrimaryPins();
447446

448447
if (take_sites_.count(site_type.getName()) != 0) {
449-
std::function<int(int)> map = [](int x){ return x; };
448+
std::function<int(int)> map = [](int x) { return x; };
450449
add_ltype(map, sub_tile.name, sub_tile, type);
451450
}
452451

@@ -458,15 +457,15 @@ struct ArchReader {
458457

459458
auto pin_map = alt_sites_pins[i];
460459

461-
std::function<int(int)> map = [pin_map, site_type, port_name_to_sub_tile_idx, this](int x){
460+
std::function<int(int)> map = [pin_map, site_type, port_name_to_sub_tile_idx, this](int x) {
462461
auto pin = site_type.getPins()[pin_map.getPins()[x]];
463462
return (*port_name_to_sub_tile_idx)[str(pin.getName())];
464463
};
465464

466465
add_ltype(map, str(alt_site.getName()).c_str(), sub_tile, type);
467466
}
468467
} else {
469-
std::function<int(int)> map = [](int x){ return x; };
468+
std::function<int(int)> map = [](int x) { return x; };
470469
add_ltype(map, sub_tile.name, sub_tile, type);
471470
}
472471

@@ -743,7 +742,7 @@ struct ArchReader {
743742
if (found)
744743
take_sites_.insert(site_type.getName());
745744

746-
for(auto alt_site_idx : site_type.getAltSiteTypes()) {
745+
for (auto alt_site_idx : site_type.getAltSiteTypes()) {
747746
auto alt_site = site_types[alt_site_idx];
748747
found = false;
749748
for (auto bel : alt_site.getBels()) {
@@ -1891,7 +1890,7 @@ struct ArchReader {
18911890
for (auto site_type : tile.getSiteTypes()) {
18921891
auto site_ = siteTypeList[site_type.getPrimaryType()];
18931892
has_valid_sites |= take_sites_.count(site_.getName()) != 0;
1894-
for (auto alt_site_idx : site_.getAltSiteTypes()){
1893+
for (auto alt_site_idx : site_.getAltSiteTypes()) {
18951894
auto alt_site_ = siteTypeList[alt_site_idx];
18961895
has_valid_sites |= take_sites_.count(alt_site_.getName()) != 0;
18971896
}
@@ -1936,7 +1935,7 @@ struct ArchReader {
19361935

19371936
auto site = siteTypeList[site_in_tile.getPrimaryType()];
19381937
site_taken |= take_sites_.count(site.getName()) != 0;
1939-
for (auto alt_site_idx : site.getAltSiteTypes()){
1938+
for (auto alt_site_idx : site.getAltSiteTypes()) {
19401939
auto alt_site = siteTypeList[alt_site_idx];
19411940
site_taken |= take_sites_.count(alt_site.getName()) != 0;
19421941
}

vpr/src/route/rr_graph_fpga_interchange.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ struct InterchangeRRGraphBuilder {
13111311

13121312
if (found)
13131313
break;
1314-
for(auto alt_site_idx : site_type.getAltSiteTypes()) {
1314+
for (auto alt_site_idx : site_type.getAltSiteTypes()) {
13151315
auto alt_site = site_types[alt_site_idx];
13161316
for (auto bel : alt_site.getBels()) {
13171317
auto bel_name = bel.getName();

0 commit comments

Comments
 (0)