Skip to content

Commit fd2c137

Browse files
authored
clang format of #2432 (#2507)
1 parent 18860b7 commit fd2c137

File tree

5 files changed

+130
-106
lines changed

5 files changed

+130
-106
lines changed

include/aie-c/TargetModel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ aieTargetModelGetMemTileSize(AieTargetModel targetModel);
140140
MLIR_CAPI_EXPORTED uint32_t
141141
aieTargetModelGetNumBanks(AieTargetModel targetModel, int col, int row);
142142

143-
MLIR_CAPI_EXPORTED uint32_t
144-
aieTargetModelGetMaxChannelNumForAdjacentTile(AieTargetModel targetModel, int col, int row);
143+
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetMaxChannelNumForAdjacentTile(
144+
AieTargetModel targetModel, int col, int row);
145145

146146
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetNumDestSwitchboxConnections(
147147
AieTargetModel targetModel, int col, int row, uint32_t bundle);

include/aie/Dialect/AIE/IR/AIETargetModel.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ class AIETargetModel {
6363
TK_AIE2_NPU1_1Col,
6464
TK_AIE2_NPU1_2Col,
6565
TK_AIE2_NPU1_3Col,
66-
TK_AIE2_NPU1_4Col, // whole array must be last because of how we cast/initialize the VirtualizedNPU1TargetModel class
66+
TK_AIE2_NPU1_4Col, // whole array must be last because of how we
67+
// cast/initialize the VirtualizedNPU1TargetModel class
6768
TK_AIE2_NPU1_Last,
6869
TK_AIE2_NPU2 = TK_AIE2_NPU1_Last,
6970
TK_AIE2_NPU2_1Col,
@@ -271,7 +272,8 @@ class AIETargetModel {
271272
/// Return the number of memory banks of a given tile.
272273
virtual uint32_t getNumBanks(int col, int row) const = 0;
273274

274-
virtual uint32_t getMaxChannelNumForAdjacentMemTile(int col, int row) const = 0;
275+
virtual uint32_t getMaxChannelNumForAdjacentMemTile(int col,
276+
int row) const = 0;
275277

276278
/// Return the number of destinations of connections inside a switchbox. These
277279
/// are the targets of connect operations in the switchbox.
@@ -658,7 +660,8 @@ class VirtualizedNPU1TargetModel : public BaseNPU1TargetModel {
658660
public:
659661
VirtualizedNPU1TargetModel(int _cols)
660662
: BaseNPU1TargetModel(static_cast<TargetModelKind>(
661-
static_cast<std::underlying_type_t<TargetModelKind>>(TK_AIE2_NPU1_1Col) +
663+
static_cast<std::underlying_type_t<TargetModelKind>>(
664+
TK_AIE2_NPU1_1Col) +
662665
_cols - 1)),
663666
cols(_cols) {
664667
// Device properties initialization

lib/CAPI/TargetModel.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ uint32_t aieTargetModelGetNumBanks(AieTargetModel targetModel, int col,
154154
return unwrap(targetModel).getNumBanks(col, row);
155155
}
156156

157-
uint32_t aieTargetModelGetMaxChannelNumForAdjacentMemTile(AieTargetModel targetModel, int col,
158-
int row) {
157+
uint32_t
158+
aieTargetModelGetMaxChannelNumForAdjacentMemTile(AieTargetModel targetModel,
159+
int col, int row) {
159160
return unwrap(targetModel).getMaxChannelNumForAdjacentMemTile(col, row);
160161
}
161162

162-
163163
uint32_t aieTargetModelGetNumDestSwitchboxConnections(
164164
AieTargetModel targetModel, int col, int row, uint32_t bundle) {
165165
xilinx::AIE::WireBundle wireBundle =

lib/Dialect/AIE/Transforms/AIECreatePathFindFlows.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ struct ConvertFlowsToInterconnect : OpConversionPattern<FlowOp> {
157157
}
158158
}
159159

160-
LLVM_DEBUG(llvm::dbgs() << tileId << ": " << setting << " | "
161-
<< "\n");
160+
LLVM_DEBUG(llvm::dbgs() << tileId << ": " << setting << " | " << "\n");
162161
}
163162

164163
LLVM_DEBUG(llvm::dbgs()
@@ -691,14 +690,14 @@ void AIEPathfinderPass::runOnPacketFlow(DeviceOp device, OpBuilder &builder) {
691690
LLVM_DEBUG(llvm::dbgs()
692691
<< "Port " << tile << " " << stringifyWireBundle(bundle) << " "
693692
<< channel << '\n');
694-
LLVM_DEBUG(llvm::dbgs() << "Mask "
695-
<< "0x" << llvm::Twine::utohexstr(mask) << '\n');
696-
LLVM_DEBUG(llvm::dbgs() << "ID "
697-
<< "0x" << llvm::Twine::utohexstr(ID) << '\n');
693+
LLVM_DEBUG(llvm::dbgs()
694+
<< "Mask " << "0x" << llvm::Twine::utohexstr(mask) << '\n');
695+
LLVM_DEBUG(llvm::dbgs()
696+
<< "ID " << "0x" << llvm::Twine::utohexstr(ID) << '\n');
698697
for (int i = 0; i < 31; i++) {
699698
if ((i & mask) == (ID & mask))
700-
LLVM_DEBUG(llvm::dbgs() << "matches flow ID "
701-
<< "0x" << llvm::Twine::utohexstr(i) << '\n');
699+
LLVM_DEBUG(llvm::dbgs() << "matches flow ID " << "0x"
700+
<< llvm::Twine::utohexstr(i) << '\n');
702701
}
703702
}
704703
#endif

0 commit comments

Comments
 (0)