Skip to content

Commit 2ec4fd7

Browse files
committed
Fix formatting issues found by code formatting check in build.
1 parent 85c9855 commit 2ec4fd7

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

clang/lib/CodeGen/CGOpenMPRuntime.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2658,9 +2658,9 @@ void CGOpenMPRuntime::emitForStaticFinish(CodeGenFunction &CGF,
26582658
isOpenMPDistributeDirective(DKind) ||
26592659
(DKind == OMPD_target_teams_loop)
26602660
? OMP_IDENT_WORK_DISTRIBUTE
2661-
: isOpenMPLoopDirective(DKind)
2662-
? OMP_IDENT_WORK_LOOP
2663-
: OMP_IDENT_WORK_SECTIONS),
2661+
: isOpenMPLoopDirective(DKind)
2662+
? OMP_IDENT_WORK_LOOP
2663+
: OMP_IDENT_WORK_SECTIONS),
26642664
getThreadID(CGF, Loc)};
26652665
auto DL = ApplyDebugLocation::CreateDefaultArtificial(CGF, Loc);
26662666
if (isOpenMPDistributeDirective(DKind) &&

clang/lib/CodeGen/CGStmtOpenMP.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,8 +1437,7 @@ void CodeGenFunction::EmitOMPReductionClauseFinal(
14371437
TeamsLoopCanBeParallel = TTLD->canBeParallelFor();
14381438
bool WithNowait = D.getSingleClause<OMPNowaitClause>() ||
14391439
isOpenMPParallelDirective(D.getDirectiveKind()) ||
1440-
TeamsLoopCanBeParallel ||
1441-
ReductionKind == OMPD_simd;
1440+
TeamsLoopCanBeParallel || ReductionKind == OMPD_simd;
14421441
bool SimpleReduction = ReductionKind == OMPD_simd;
14431442
// Emit nowait reduction if nowait clause is present or directive is a
14441443
// 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
@@ -6140,9 +6140,9 @@ processImplicitMapsWithDefaultMappers(Sema &S, DSAStackTy *Stack,
61406140
namespace {
61416141
/// A 'teams loop' with a nested 'loop bind(parallel)' or generic function
61426142
/// call in the associated loop-nest cannot be a 'parallel for'.
6143-
class TeamsLoopChecker final
6144-
: public ConstStmtVisitor<TeamsLoopChecker> {
6143+
class TeamsLoopChecker final : public ConstStmtVisitor<TeamsLoopChecker> {
61456144
Sema &SemaRef;
6145+
61466146
public:
61476147
bool teamsLoopCanBeParallelFor() const { return TeamsLoopCanBeParallelFor; }
61486148

@@ -6198,15 +6198,16 @@ class TeamsLoopChecker final
61986198
}
61996199
explicit TeamsLoopChecker(Sema &SemaRef)
62006200
: SemaRef(SemaRef), TeamsLoopCanBeParallelFor(true) {}
6201+
62016202
private:
62026203
bool TeamsLoopCanBeParallelFor;
62036204
};
62046205
} // namespace
62056206

62066207
bool Sema::teamsLoopCanBeParallelFor(Stmt *AStmt) {
6207-
TeamsLoopChecker Checker(*this);
6208-
Checker.Visit(AStmt);
6209-
return Checker.teamsLoopCanBeParallelFor();
6208+
TeamsLoopChecker Checker(*this);
6209+
Checker.Visit(AStmt);
6210+
return Checker.teamsLoopCanBeParallelFor();
62106211
}
62116212

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

0 commit comments

Comments
 (0)