Skip to content

Commit 11f082e

Browse files
committed
Thanks - adjusted some function/variable names
1 parent e917237 commit 11f082e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,14 +353,14 @@ genReductionLoop(fir::FirOpBuilder &builder, mlir::func::FuncOp &funcOp,
353353
// Return the reduction value from the function.
354354
builder.create<mlir::func::ReturnOp>(loc, results[resultIndex]);
355355
}
356-
using MinlocBodyOpGeneratorTy = llvm::function_ref<mlir::Value(
356+
using MinMaxlocBodyOpGeneratorTy = llvm::function_ref<mlir::Value(
357357
fir::FirOpBuilder &, mlir::Location, const mlir::Type &, mlir::Value,
358358
mlir::Value, llvm::SmallVector<mlir::Value, Fortran::common::maxRank> &)>;
359359

360360
static void genMinMaxlocReductionLoop(
361361
fir::FirOpBuilder &builder, mlir::func::FuncOp &funcOp,
362-
InitValGeneratorTy initVal, MinlocBodyOpGeneratorTy genBody, unsigned rank,
363-
mlir::Type elementType, mlir::Location loc, bool hasMask,
362+
InitValGeneratorTy initVal, MinMaxlocBodyOpGeneratorTy genBody,
363+
unsigned rank, mlir::Type elementType, mlir::Location loc, bool hasMask,
364364
mlir::Type maskElemType, mlir::Value resultArr) {
365365

366366
mlir::IndexType idxTy = builder.getIndexType();
@@ -764,10 +764,10 @@ static void genRuntimeMinMaxlocBody(fir::FirOpBuilder &builder,
764764
loc, elementType, llvm::APFloat::getLargest(sem, /*Negative=*/isMax));
765765
}
766766
unsigned bits = elementType.getIntOrFloatBitWidth();
767-
int64_t maxInt = (isMax ? llvm::APInt::getSignedMinValue(bits)
768-
: llvm::APInt::getSignedMaxValue(bits))
769-
.getSExtValue();
770-
return builder.createIntegerConstant(loc, elementType, maxInt);
767+
int64_t initValue = (isMax ? llvm::APInt::getSignedMinValue(bits)
768+
: llvm::APInt::getSignedMaxValue(bits))
769+
.getSExtValue();
770+
return builder.createIntegerConstant(loc, elementType, initValue);
771771
};
772772

773773
mlir::Location loc = mlir::UnknownLoc::get(builder.getContext());

0 commit comments

Comments
 (0)