Skip to content

Commit 7846955

Browse files
committed
git-clang-format
1 parent 546a3f7 commit 7846955

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ void CreateNdDescOp::build(OpBuilder &builder, OperationState &state,
131131
llvm::ArrayRef<OpFoldResult> shape,
132132
llvm::ArrayRef<OpFoldResult> strides) {
133133
assert(shape.size() && strides.size() && shape.size() == strides.size() &&
134-
"Shape and strides must be present and of equal size for ui64 initialization.");
134+
"Shape and strides must be present and of equal size for ui64 "
135+
"initialization.");
135136

136137
llvm::SmallVector<int64_t> staticShape;
137138
llvm::SmallVector<int64_t> staticStrides;
@@ -154,7 +155,8 @@ void CreateNdDescOp::build(OpBuilder &builder, OperationState &state,
154155
llvm::ArrayRef<OpFoldResult> shape,
155156
llvm::ArrayRef<OpFoldResult> strides) {
156157
assert(shape.size() && strides.size() && shape.size() == strides.size() &&
157-
"Shape and strides must be present and of equal size for ui64 initialization.");
158+
"Shape and strides must be present and of equal size for ui64 "
159+
"initialization.");
158160

159161
llvm::SmallVector<int64_t> staticShape;
160162
llvm::SmallVector<int64_t> staticStrides;
@@ -257,12 +259,12 @@ LogicalResult CreateNdDescOp::verify() {
257259
invalidElemTy |= memrefTy.getElementType() != getElementType();
258260
}
259261

260-
if (llvm::isa<IntegerType>(getSourceType()) ) {
262+
if (llvm::isa<IntegerType>(getSourceType())) {
261263
// strides and shape must present for integer source.
262264
if (getMixedStrides().empty() || getMixedSizes().empty())
263265
return emitOpError("Expecting strides and shape to be present for "
264266
"integer source.");
265-
}
267+
}
266268

267269
// mismatches among shape, strides, and offsets are
268270
// already handeled by OffsetSizeAndStrideOpInterface.
@@ -313,7 +315,7 @@ ParseResult parseOptionalDynamicIndexList(
313315
return success();
314316
};
315317

316-
//If the optional values are given there must be left bracket
318+
// If the optional values are given there must be left bracket
317319
if (parser.parseOptionalLSquare().succeeded()) {
318320
if (parser.parseCommaSeparatedList(parseIntegerOrValue) ||
319321
parser.parseRSquare())
@@ -322,9 +324,8 @@ ParseResult parseOptionalDynamicIndexList(
322324
integers = parser.getBuilder().getDenseI64ArrayAttr(integerVals);
323325
return success();
324326
}
325-
326-
return success();
327327

328+
return success();
328329
}
329330

330331
void printOptionalDynamicIndexList(OpAsmPrinter &printer, Operation *op,

0 commit comments

Comments
 (0)