diff options
author | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-01 14:28:32 -0800 |
---|---|---|
committer | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-02 07:44:49 -0800 |
commit | da74a425d23352d7cddf9d1c4b0b7c86dd567c40 (patch) | |
tree | 3657232a91e97f839cd9114f40aa0c565afc23d4 /generic/arch.h | |
parent | 01509ec7c991f0ec674fd933095dfe52be28b46f (diff) | |
download | nextpnr-da74a425d23352d7cddf9d1c4b0b7c86dd567c40.tar.gz nextpnr-da74a425d23352d7cddf9d1c4b0b7c86dd567c40.tar.bz2 nextpnr-da74a425d23352d7cddf9d1c4b0b7c86dd567c40.zip |
Run "make clangformat".
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'generic/arch.h')
-rw-r--r-- | generic/arch.h | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/generic/arch.h b/generic/arch.h index 924115a7..f3e26bb5 100644 --- a/generic/arch.h +++ b/generic/arch.h @@ -271,40 +271,32 @@ struct Arch : BaseCtx bool place(); bool route(); - std::vector<IdString> getCellTypes() const { + std::vector<IdString> getCellTypes() const + { std::vector<IdString> cell_types; cell_types.reserve(bels.size()); - for(auto bel : bels) { + for (auto bel : bels) { cell_types.push_back(bel.first); } return cell_types; } - std::vector<BelBucketId> getBelBuckets() const { - return getCellTypes(); - } + std::vector<BelBucketId> getBelBuckets() const { return getCellTypes(); } - IdString getBelBucketName(BelBucketId bucket) const { - return bucket; - } + IdString getBelBucketName(BelBucketId bucket) const { return bucket; } - BelBucketId getBelBucketByName(IdString bucket) const { - return bucket; - } + BelBucketId getBelBucketByName(IdString bucket) const { return bucket; } - BelBucketId getBelBucketForBel(BelId bel) const { - return getBelType(bel); - } + BelBucketId getBelBucketForBel(BelId bel) const { return getBelType(bel); } - BelBucketId getBelBucketForCellType(IdString cell_type) const { - return cell_type; - } + BelBucketId getBelBucketForCellType(IdString cell_type) const { return cell_type; } - std::vector<BelId> getBelsInBucket(BelBucketId bucket) const { + std::vector<BelId> getBelsInBucket(BelBucketId bucket) const + { std::vector<BelId> bels; - for(BelId bel : getBels()) { - if(bucket == getBelBucketForBel(bel)) { + for (BelId bel : getBels()) { + if (bucket == getBelBucketForBel(bel)) { bels.push_back(bel); } } @@ -323,9 +315,7 @@ struct Arch : BaseCtx // Get the TimingClockingInfo of a port TimingClockingInfo getPortClockingInfo(const CellInfo *cell, IdString port, int index) const; - bool isValidBelForCellType(IdString cell_type, BelId bel) const { - return cell_type == getBelType(bel); - } + bool isValidBelForCellType(IdString cell_type, BelId bel) const { return cell_type == getBelType(bel); } bool isValidBelForCell(CellInfo *cell, BelId bel) const; bool isBelLocationValid(BelId bel) const; |