File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
mlir/lib/Dialect/OpenACC/IR Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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.
4545static 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
You can’t perform that action at this time.
0 commit comments