aboutsummaryrefslogtreecommitdiff
path: root/flang
diff options
context:
space:
mode:
authorAbid Qadeer <haqadeer@amd.com>2024-06-17 21:00:09 +0100
committerGitHub <noreply@github.com>2024-06-17 21:00:09 +0100
commit7ddff3a586baaf6f4403183ba51121951ce0602e (patch)
tree5bdd816380fcddf9bd04f63e8b2aedb53c5738c5 /flang
parent77d8cfb3c50e3341d65af1f9e442004bbd77af9b (diff)
downloadllvm-7ddff3a586baaf6f4403183ba51121951ce0602e.zip
llvm-7ddff3a586baaf6f4403183ba51121951ce0602e.tar.gz
llvm-7ddff3a586baaf6f4403183ba51121951ce0602e.tar.bz2
[flang] Fix comments and formatting. (NFC) (#95786)
As mentioned in [here](https://github.com/llvm/llvm-project/pull/95462#discussion_r1640126721), the formatting of the comments have been fixed. Also added comments before literal arguments.
Diffstat (limited to 'flang')
-rw-r--r--flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp b/flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp
index 70ff8b3..407ecc8 100644
--- a/flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp
+++ b/flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp
@@ -75,8 +75,8 @@ static mlir::LLVM::DITypeAttr genBasicType(mlir::MLIRContext *context,
}
static mlir::LLVM::DITypeAttr genPlaceholderType(mlir::MLIRContext *context) {
- return genBasicType(context, mlir::StringAttr::get(context, "integer"), 32,
- llvm::dwarf::DW_ATE_signed);
+ return genBasicType(context, mlir::StringAttr::get(context, "integer"),
+ /*bitSize=*/32, llvm::dwarf::DW_ATE_signed);
}
mlir::LLVM::DITypeAttr DebugTypeGenerator::convertBoxedSequenceType(
@@ -145,11 +145,10 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertBoxedSequenceType(
elements.push_back(subrangeTy);
}
return mlir::LLVM::DICompositeTypeAttr::get(
- context, llvm::dwarf::DW_TAG_array_type, /*recursive id*/ {},
- /* name */ nullptr, /* file */ nullptr, /* line */ 0,
- /* scope */ nullptr, elemTy, mlir::LLVM::DIFlags::Zero,
- /* sizeInBits */ 0, /*alignInBits*/ 0, elements, dataLocation,
- /* rank */ nullptr, allocated, associated);
+ context, llvm::dwarf::DW_TAG_array_type, /*recursive_id=*/{},
+ /*name=*/nullptr, /*file=*/nullptr, /*line=*/0, /*scope=*/nullptr, elemTy,
+ mlir::LLVM::DIFlags::Zero, /*sizeInBits=*/0, /*alignInBits=*/0, elements,
+ dataLocation, /*rank=*/nullptr, allocated, associated);
}
mlir::LLVM::DITypeAttr DebugTypeGenerator::convertSequenceType(
@@ -184,12 +183,11 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertSequenceType(
// have been set to some valid default values.
return mlir::LLVM::DICompositeTypeAttr::get(
- context, llvm::dwarf::DW_TAG_array_type, /*recursive id*/ {},
- /* name */ nullptr, /* file */ nullptr, /* line */ 0, /* scope */ nullptr,
- elemTy, mlir::LLVM::DIFlags::Zero, /* sizeInBits */ 0,
- /*alignInBits*/ 0, elements, /* dataLocation */ nullptr,
- /* rank */ nullptr, /* allocated */ nullptr,
- /* associated */ nullptr);
+ context, llvm::dwarf::DW_TAG_array_type, /*recursive_id=*/{},
+ /*name=*/nullptr, /*file=*/nullptr, /*line=*/0, /*scope=*/nullptr, elemTy,
+ mlir::LLVM::DIFlags::Zero, /*sizeInBits=*/0, /*alignInBits=*/0, elements,
+ /*dataLocation=*/nullptr, /*rank=*/nullptr, /*allocated=*/nullptr,
+ /*associated=*/nullptr);
}
mlir::LLVM::DITypeAttr DebugTypeGenerator::convertCharacterType(