Skip to content

Commit d46a8ad

Browse files
committed
Fix formatting issues found by code formatting check in build.
1 parent b85372b commit d46a8ad

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11314,6 +11314,7 @@ class Sema final {
1131411314
/// [target] teams loop is equivalent to parallel for if associated loop
1131511315
/// nest meets certain critera.
1131611316
bool teamsLoopCanBeParallelFor(Stmt *Astmt);
11317+
1131711318
public:
1131811319
/// The declarator \p D defines a function in the scope \p S which is nested
1131911320
/// in an `omp begin/end declare variant` scope. In this method we create a

clang/lib/CodeGen/CGOpenMPRuntime.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2647,9 +2647,9 @@ void CGOpenMPRuntime::emitForStaticFinish(CodeGenFunction &CGF,
26472647
isOpenMPDistributeDirective(DKind) ||
26482648
(DKind == OMPD_target_teams_loop)
26492649
? OMP_IDENT_WORK_DISTRIBUTE
2650-
: isOpenMPLoopDirective(DKind)
2651-
? OMP_IDENT_WORK_LOOP
2652-
: OMP_IDENT_WORK_SECTIONS),
2650+
: isOpenMPLoopDirective(DKind)
2651+
? OMP_IDENT_WORK_LOOP
2652+
: OMP_IDENT_WORK_SECTIONS),
26532653
getThreadID(CGF, Loc)};
26542654
auto DL = ApplyDebugLocation::CreateDefaultArtificial(CGF, Loc);
26552655
if (isOpenMPDistributeDirective(DKind) &&

clang/lib/CodeGen/CGStmtOpenMP.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,8 +1441,7 @@ void CodeGenFunction::EmitOMPReductionClauseFinal(
14411441
TeamsLoopCanBeParallel = TTLD->canBeParallelFor();
14421442
bool WithNowait = D.getSingleClause<OMPNowaitClause>() ||
14431443
isOpenMPParallelDirective(D.getDirectiveKind()) ||
1444-
TeamsLoopCanBeParallel ||
1445-
ReductionKind == OMPD_simd;
1444+
TeamsLoopCanBeParallel || ReductionKind == OMPD_simd;
14461445
bool SimpleReduction = ReductionKind == OMPD_simd;
14471446
// Emit nowait reduction if nowait clause is present or directive is a
14481447
// parallel directive (it always has implicit barrier).

clang/lib/Sema/SemaOpenMP.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6127,9 +6127,9 @@ processImplicitMapsWithDefaultMappers(Sema &S, DSAStackTy *Stack,
61276127
namespace {
61286128
/// A 'teams loop' with a nested 'loop bind(parallel)' or generic function
61296129
/// call in the associated loop-nest cannot be a 'parallel for'.
6130-
class TeamsLoopChecker final
6131-
: public ConstStmtVisitor<TeamsLoopChecker> {
6130+
class TeamsLoopChecker final : public ConstStmtVisitor<TeamsLoopChecker> {
61326131
Sema &SemaRef;
6132+
61336133
public:
61346134
bool teamsLoopCanBeParallelFor() const { return TeamsLoopCanBeParallelFor; }
61356135

@@ -6185,15 +6185,16 @@ class TeamsLoopChecker final
61856185
}
61866186
explicit TeamsLoopChecker(Sema &SemaRef)
61876187
: SemaRef(SemaRef), TeamsLoopCanBeParallelFor(true) {}
6188+
61886189
private:
61896190
bool TeamsLoopCanBeParallelFor;
61906191
};
61916192
} // namespace
61926193

61936194
bool Sema::teamsLoopCanBeParallelFor(Stmt *AStmt) {
6194-
TeamsLoopChecker Checker(*this);
6195-
Checker.Visit(AStmt);
6196-
return Checker.teamsLoopCanBeParallelFor();
6195+
TeamsLoopChecker Checker(*this);
6196+
Checker.Visit(AStmt);
6197+
return Checker.teamsLoopCanBeParallelFor();
61976198
}
61986199

61996200
bool Sema::mapLoopConstruct(llvm::SmallVector<OMPClause *> &ClausesWithoutBind,

0 commit comments

Comments
 (0)