Skip to content

Commit d4cba2f

Browse files
author
Razvan Lupusoru
committed
Fix formatting
1 parent d91508e commit d4cba2f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ static bool isScalarLikeType(Type type) {
4343
/// Helper function to attach the `VarName` attribute to an operation
4444
/// if a variable name is provided.
4545
static void attachVarNameAttr(Operation *op, OpBuilder &builder,
46-
StringRef varName) {
46+
StringRef varName) {
4747
if (!varName.empty()) {
48-
auto varNameAttr =
49-
acc::VarNameAttr::get(builder.getContext(), varName);
48+
auto varNameAttr = acc::VarNameAttr::get(builder.getContext(), varName);
5049
op->setAttr(acc::getVarNameAttrName(), varNameAttr);
5150
}
5251
}
@@ -116,8 +115,9 @@ struct MemRefPointerLikeModel
116115
// Static dimensions are handled automatically by AllocOp
117116
}
118117
needsFree = true; // alloc needs deallocation
119-
auto allocOp = memref::AllocOp::create(builder, loc, memrefTy, dynamicSizes);
120-
attachVarNameAttr(allocOp, builder, varName);
118+
auto allocOp =
119+
memref::AllocOp::create(builder, loc, memrefTy, dynamicSizes);
120+
attachVarNameAttr(allocOp, builder, varName);
121121
return allocOp.getResult();
122122
}
123123

0 commit comments

Comments
 (0)