Skip to content

Commit d8a5e95

Browse files
authored
Apply clang-format to DoLoopHelper (#1147)
1 parent ce56fc4 commit d8a5e95

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

flang/lib/Optimizer/Builder/DoLoopHelper.cpp

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
// DoLoopHelper implementation
1313
//===----------------------------------------------------------------------===//
1414

15-
fir::DoLoopOp fir::factory::DoLoopHelper::createLoop(
16-
mlir::Value lb, mlir::Value ub, mlir::Value step,
17-
const BodyGenerator &bodyGenerator) {
15+
fir::DoLoopOp
16+
fir::factory::DoLoopHelper::createLoop(mlir::Value lb, mlir::Value ub,
17+
mlir::Value step,
18+
const BodyGenerator &bodyGenerator) {
1819
auto lbi = builder.convertToIndexType(loc, lb);
1920
auto ubi = builder.convertToIndexType(loc, ub);
2021
assert(step && "step must be an actual Value");
@@ -28,15 +29,17 @@ fir::DoLoopOp fir::factory::DoLoopHelper::createLoop(
2829
return loop;
2930
}
3031

31-
fir::DoLoopOp fir::factory::DoLoopHelper::createLoop(
32-
mlir::Value lb, mlir::Value ub, const BodyGenerator &bodyGenerator) {
33-
return createLoop(lb, ub,
34-
builder.createIntegerConstant(loc, builder.getIndexType(), 1),
35-
bodyGenerator);
32+
fir::DoLoopOp
33+
fir::factory::DoLoopHelper::createLoop(mlir::Value lb, mlir::Value ub,
34+
const BodyGenerator &bodyGenerator) {
35+
return createLoop(
36+
lb, ub, builder.createIntegerConstant(loc, builder.getIndexType(), 1),
37+
bodyGenerator);
3638
}
3739

38-
fir::DoLoopOp fir::factory::DoLoopHelper::createLoop(
39-
mlir::Value count, const BodyGenerator &bodyGenerator) {
40+
fir::DoLoopOp
41+
fir::factory::DoLoopHelper::createLoop(mlir::Value count,
42+
const BodyGenerator &bodyGenerator) {
4043
auto indexType = builder.getIndexType();
4144
auto zero = builder.createIntegerConstant(loc, indexType, 0);
4245
auto one = builder.createIntegerConstant(loc, count.getType(), 1);

0 commit comments

Comments
 (0)