Skip to content

Commit 47dcf2c

Browse files
committed
Fix formatting issues found by code formatting check.
1 parent 8710c48 commit 47dcf2c

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

clang/lib/CodeGen/CGOpenMPRuntime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2645,7 +2645,7 @@ void CGOpenMPRuntime::emitForStaticFinish(CodeGenFunction &CGF,
26452645
llvm::Value *Args[] = {
26462646
emitUpdateLocation(CGF, Loc,
26472647
isOpenMPDistributeDirective(DKind) ||
2648-
(DKind == OMPD_target_teams_loop)
2648+
(DKind == OMPD_target_teams_loop)
26492649
? OMP_IDENT_WORK_DISTRIBUTE
26502650
: isOpenMPLoopDirective(DKind)
26512651
? OMP_IDENT_WORK_LOOP

clang/lib/CodeGen/CGStmtOpenMP.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7924,9 +7924,9 @@ static void emitTargetTeamsGenericLoopRegionAsParallel(
79247924
CGF.EmitOMPReductionClauseFinal(S, /*ReductionKind=*/OMPD_teams);
79257925
};
79267926
DEBUG_WITH_TYPE(TTL_CODEGEN_TYPE,
7927-
CGF.CGM.emitTargetTeamsLoopCodegenStatus(
7928-
TTL_CODEGEN_TYPE " as parallel for", S,
7929-
CGF.CGM.getLangOpts().OpenMPIsTargetDevice));
7927+
CGF.CGM.emitTargetTeamsLoopCodegenStatus(
7928+
TTL_CODEGEN_TYPE " as parallel for", S,
7929+
CGF.CGM.getLangOpts().OpenMPIsTargetDevice));
79307930
emitCommonOMPTeamsDirective(CGF, S, OMPD_distribute_parallel_for,
79317931
CodeGenTeams);
79327932
emitPostUpdateForReductionClause(CGF, S,
@@ -7954,9 +7954,9 @@ static void emitTargetTeamsGenericLoopRegionAsDistribute(
79547954
CGF.EmitOMPReductionClauseFinal(S, /*ReductionKind=*/OMPD_teams);
79557955
};
79567956
DEBUG_WITH_TYPE(TTL_CODEGEN_TYPE,
7957-
CGF.CGM.emitTargetTeamsLoopCodegenStatus(
7958-
TTL_CODEGEN_TYPE " as distribute", S,
7959-
CGF.CGM.getLangOpts().OpenMPIsTargetDevice));
7957+
CGF.CGM.emitTargetTeamsLoopCodegenStatus(
7958+
TTL_CODEGEN_TYPE " as distribute", S,
7959+
CGF.CGM.getLangOpts().OpenMPIsTargetDevice));
79607960
emitCommonOMPTeamsDirective(CGF, S, OMPD_distribute, CodeGen);
79617961
emitPostUpdateForReductionClause(CGF, S,
79627962
[](CodeGenFunction &) { return nullptr; });

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7492,9 +7492,7 @@ class TeamsLoopChecker final : public ConstStmtVisitor<TeamsLoopChecker> {
74927492
public:
74937493
TeamsLoopChecker(CodeGenModule &CGM)
74947494
: CGM(CGM), TeamsLoopCanBeParallelFor{true} {}
7495-
bool teamsLoopCanBeParallelFor() const {
7496-
return TeamsLoopCanBeParallelFor;
7497-
}
7495+
bool teamsLoopCanBeParallelFor() const { return TeamsLoopCanBeParallelFor; }
74987496
// Is there a nested OpenMP loop bind(parallel)
74997497
void VisitOMPExecutableDirective(const OMPExecutableDirective *D) {
75007498
if (D->getDirectiveKind() == llvm::omp::Directive::OMPD_loop) {
@@ -7557,7 +7555,7 @@ bool CodeGenModule::teamsLoopCanBeParallelFor(const OMPExecutableDirective &D) {
75577555
if (D.getDirectiveKind() != llvm::omp::Directive::OMPD_target_teams_loop)
75587556
return false;
75597557
assert(D.hasAssociatedStmt() &&
7560-
"Loop directive must have associated statement.");
7558+
"Loop directive must have associated statement.");
75617559
TeamsLoopChecker Checker(*this);
75627560
Checker.Visit(D.getAssociatedStmt());
75637561
return Checker.teamsLoopCanBeParallelFor();

0 commit comments

Comments
 (0)