Skip to content

Commit c1114f8

Browse files
author
Razvan Lupusoru
committed
Fix formatting
1 parent 78affa2 commit c1114f8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

flang/include/flang/Lower/OpenACC.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ uint64_t getLoopCountForCollapseAndTile(const Fortran::parser::AccClauseList &);
124124
/// Checks whether the current insertion point is inside OpenACC loop.
125125
bool isInOpenACCLoop(fir::FirOpBuilder &);
126126

127-
/// Checks whether the current insertion point is inside OpenACC compute construct.
127+
/// Checks whether the current insertion point is inside OpenACC compute
128+
/// construct.
128129
bool isInsideOpenACCComputeConstruct(fir::FirOpBuilder &);
129130

130131
void setInsertionPointAfterOpenACCLoopIfInside(fir::FirOpBuilder &);
@@ -139,8 +140,7 @@ mlir::Operation *genOpenACCLoopFromDoConstruct(
139140
AbstractConverter &converter,
140141
Fortran::semantics::SemanticsContext &semanticsContext,
141142
Fortran::lower::SymMap &localSymbols,
142-
const Fortran::parser::DoConstruct &doConstruct,
143-
pft::Evaluation &eval);
143+
const Fortran::parser::DoConstruct &doConstruct, pft::Evaluation &eval);
144144

145145
} // namespace lower
146146
} // namespace Fortran

flang/lib/Lower/Bridge.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,9 +2170,8 @@ class FirConverter : public Fortran::lower::AbstractConverter {
21702170
// Loops with induction variables inside OpenACC compute constructs
21712171
// need special handling to ensure that the IVs are privatized.
21722172
if (Fortran::lower::isInsideOpenACCComputeConstruct(*builder)) {
2173-
mlir::Operation* loopOp = Fortran::lower::genOpenACCLoopFromDoConstruct(
2174-
*this, bridge.getSemanticsContext(), localSymbols,
2175-
doConstruct, eval);
2173+
mlir::Operation *loopOp = Fortran::lower::genOpenACCLoopFromDoConstruct(
2174+
*this, bridge.getSemanticsContext(), localSymbols, doConstruct, eval);
21762175
bool success = loopOp != nullptr;
21772176
if (success) {
21782177
// Sanity check that the builder insertion point is inside the newly
@@ -2184,7 +2183,8 @@ class FirConverter : public Fortran::lower::AbstractConverter {
21842183

21852184
// Loop body code.
21862185
auto iter = eval.getNestedEvaluations().begin();
2187-
for (auto end = --eval.getNestedEvaluations().end(); iter != end; ++iter)
2186+
for (auto end = --eval.getNestedEvaluations().end(); iter != end;
2187+
++iter)
21882188
genFIR(*iter, unstructuredContext);
21892189
return;
21902190
}

flang/lib/Lower/OpenACC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
#include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h"
3636
#include "mlir/IR/MLIRContext.h"
3737
#include "mlir/Support/LLVM.h"
38-
#include "llvm/ADT/ScopeExit.h"
3938
#include "llvm/ADT/STLExtras.h"
39+
#include "llvm/ADT/ScopeExit.h"
4040
#include "llvm/Frontend/OpenACC/ACC.h.inc"
4141
#include "llvm/Support/CommandLine.h"
4242
#include "llvm/Support/Debug.h"

0 commit comments

Comments
 (0)