Skip to content

Commit 2fb0246

Browse files
committed
Fix formatting.
1 parent 547daad commit 2fb0246

File tree

4 files changed

+12
-15
lines changed

4 files changed

+12
-15
lines changed

flang/include/flang/Optimizer/Builder/HLFIRTools.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ genDeclare(mlir::Location loc, fir::FirOpBuilder &builder,
233233
fir::FortranVariableFlagsAttr flags,
234234
mlir::Value dummyScope = nullptr, mlir::Value storage = nullptr,
235235
std::uint64_t storageOffset = 0,
236-
cuf::DataAttributeAttr dataAttr = {},
237-
unsigned dummyArgNo = 0);
236+
cuf::DataAttributeAttr dataAttr = {}, unsigned dummyArgNo = 0);
238237

239238
/// Generate an hlfir.associate to build a variable from an expression value.
240239
/// The type of the variable must be provided so that scalar logicals are

flang/include/flang/Optimizer/HLFIR/HLFIROps.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ def hlfir_DeclareOp
103103
Builtin_StringAttr:$uniq_name,
104104
OptionalAttr<fir_FortranVariableFlagsAttr>:$fortran_attrs,
105105
OptionalAttr<cuf_DataAttributeAttr>:$data_attr,
106-
OptionalAttr<UnitAttr>:$skip_rebox,
107-
OptionalAttr<UI32Attr>:$dummy_arg_no);
106+
OptionalAttr<UnitAttr>:$skip_rebox, OptionalAttr<UI32Attr>:$dummy_arg_no);
108107

109108
let results = (outs AnyFortranVariable, AnyRefOrBoxLike);
110109

flang/lib/Lower/Bridge.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,8 @@ class FirConverter : public Fortran::lower::AbstractConverter {
14191419
/// definitive mapping. The specification expression have not been lowered
14201420
/// yet. The final mapping will be done using this pre-mapping in
14211421
/// Fortran::lower::mapSymbolAttributes.
1422-
/// \param argNo The 1-based source position of this argument (0 if unknown/result)
1422+
/// \param argNo The 1-based source position of this argument (0 if
1423+
/// unknown/result)
14231424
bool mapBlockArgToDummyOrResult(const Fortran::semantics::SymbolRef sym,
14241425
mlir::Value val, bool isResult,
14251426
unsigned argNo = 0) {
@@ -6854,7 +6855,8 @@ class FirConverter : public Fortran::lower::AbstractConverter {
68546855

68556856
/// Record the given symbol as a dummy argument of this function.
68566857
/// \param symRef The symbol representing the dummy argument
6857-
/// \param argNo The 1-based position of this argument in the source (0 = unknown)
6858+
/// \param argNo The 1-based position of this argument in the source (0 =
6859+
/// unknown)
68586860
void registerDummySymbol(Fortran::semantics::SymbolRef symRef,
68596861
unsigned argNo = 0) {
68606862
auto *sym = &*symRef;

flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -261,15 +261,12 @@ updateDeclaredInputTypeWithVolatility(mlir::Type inputType, mlir::Value memref,
261261
return std::make_pair(inputType, memref);
262262
}
263263

264-
void hlfir::DeclareOp::build(mlir::OpBuilder &builder,
265-
mlir::OperationState &result, mlir::Value memref,
266-
llvm::StringRef uniq_name, mlir::Value shape,
267-
mlir::ValueRange typeparams,
268-
mlir::Value dummy_scope, mlir::Value storage,
269-
std::uint64_t storage_offset,
270-
fir::FortranVariableFlagsAttr fortran_attrs,
271-
cuf::DataAttributeAttr data_attr,
272-
unsigned dummy_arg_no) {
264+
void hlfir::DeclareOp::build(
265+
mlir::OpBuilder &builder, mlir::OperationState &result, mlir::Value memref,
266+
llvm::StringRef uniq_name, mlir::Value shape, mlir::ValueRange typeparams,
267+
mlir::Value dummy_scope, mlir::Value storage, std::uint64_t storage_offset,
268+
fir::FortranVariableFlagsAttr fortran_attrs,
269+
cuf::DataAttributeAttr data_attr, unsigned dummy_arg_no) {
273270
auto nameAttr = builder.getStringAttr(uniq_name);
274271
mlir::Type inputType = memref.getType();
275272
bool hasExplicitLbs = hasExplicitLowerBounds(shape);

0 commit comments

Comments
 (0)