Skip to content

Commit fe2ee14

Browse files
committed
Clang-format
1 parent 205fdfd commit fe2ee14

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,21 +299,21 @@ LayoutAttr::delinearizeSubgroupId(OpBuilder &builder, Location loc,
299299
/// The first dimension in order is the fastest-changing
300300
///
301301
/// Example walkthrough for linearId=22, sgLayout=[2,4,4], order=[2,1,0]:
302-
///
302+
///
303303
/// Initial: remaining=22, result=[?,?,?]
304-
///
304+
///
305305
/// i=0 (process columns, dimIdx=2, dimSize=4):
306306
/// result[2] = 22 % 4 = 2 (column coordinate)
307307
/// remaining = 22 / 4 = 5 (5 complete groups of 4 columns processed)
308-
///
308+
///
309309
/// i=1 (process rows, dimIdx=1, dimSize=4):
310-
/// result[1] = 5 % 4 = 1 (row coordinate)
310+
/// result[1] = 5 % 4 = 1 (row coordinate)
311311
/// remaining = 5 / 4 = 1 (1 complete group of 4 rows processed)
312-
///
312+
///
313313
/// i=2 (process layers, dimIdx=0, dimSize=2):
314314
/// result[0] = 1 % 2 = 1 (layer coordinate)
315315
/// (no remaining update - last iteration)
316-
///
316+
///
317317
/// Final result: [1,1,2] = Layer 1, Row 1, Column 2
318318
for (size_t i = 0; i < order.size(); ++i) {
319319
int64_t dimIdx = order[i];
@@ -324,8 +324,8 @@ LayoutAttr::delinearizeSubgroupId(OpBuilder &builder, Location loc,
324324

325325
/// Extract the coordinate for this dimension using modulo operation
326326
/// This gives us "how far within this dimension" we are
327-
/// e.g., linearId=22, dimSize=4: 22 % 4 = 2 (we're at position 2 within this
328-
/// dimension)
327+
/// e.g., linearId=22, dimSize=4: 22 % 4 = 2 (we're at position 2 within
328+
/// this dimension)
329329
result[dimIdx] =
330330
builder.createOrFold<index::RemUOp>(loc, remaining, dimSizeVal);
331331

0 commit comments

Comments
 (0)