Skip to content

Commit ec4e7ad

Browse files
committed
fix format issue
1 parent 65b5dbd commit ec4e7ad

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,8 @@ LogicalResult ConvertLayoutOp::verify() {
616616
if (!resLayout)
617617
return emitOpError("expected target layout.");
618618

619-
// both input and target layouts should be WgLayout or SgLayout at the same time.
619+
// both input and target layouts should be WgLayout or SgLayout at the same
620+
// time.
620621
if ((!srcLayout.isWgLayout() || !resLayout.isWgLayout()) &&
621622
(!srcLayout.isSgLayout() || !resLayout.isSgLayout()))
622623
return emitOpError("expected input layout and target layout be WgLayout or "

mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ struct WgToSgCreateNdOp : public OpConversionPattern<xegpu::CreateNdDescOp> {
128128
rewriter.create<arith::ConstantIndexOp>(loc, distUnitShape[i]);
129129
Value offsetMod =
130130
rewriter.createOrFold<index::RemUOp>(loc, offset, modValue);
131-
Value origOffset =
132-
getValueOrCreateConstantIndexOp(rewriter, loc, originalOffsets[dimIdx]);
131+
Value origOffset = getValueOrCreateConstantIndexOp(
132+
rewriter, loc, originalOffsets[dimIdx]);
133133
Value globalOffset =
134134
rewriter.createOrFold<index::AddOp>(loc, origOffset, offsetMod);
135135
globalOffsets[dimIdx] = globalOffset;

0 commit comments

Comments
 (0)