Skip to content

Commit 5897444

Browse files
committed
Fix formatting issues found by code formatting check.
1 parent 82509a7 commit 5897444

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
@@ -2656,7 +2656,7 @@ void CGOpenMPRuntime::emitForStaticFinish(CodeGenFunction &CGF,
26562656
llvm::Value *Args[] = {
26572657
emitUpdateLocation(CGF, Loc,
26582658
isOpenMPDistributeDirective(DKind) ||
2659-
(DKind == OMPD_target_teams_loop)
2659+
(DKind == OMPD_target_teams_loop)
26602660
? OMP_IDENT_WORK_DISTRIBUTE
26612661
: isOpenMPLoopDirective(DKind)
26622662
? OMP_IDENT_WORK_LOOP

clang/lib/CodeGen/CGStmtOpenMP.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7973,9 +7973,9 @@ static void emitTargetTeamsGenericLoopRegionAsParallel(
79737973
CGF.EmitOMPReductionClauseFinal(S, /*ReductionKind=*/OMPD_teams);
79747974
};
79757975
DEBUG_WITH_TYPE(TTL_CODEGEN_TYPE,
7976-
CGF.CGM.emitTargetTeamsLoopCodegenStatus(
7977-
TTL_CODEGEN_TYPE " as parallel for", S,
7978-
CGF.CGM.getLangOpts().OpenMPIsTargetDevice));
7976+
CGF.CGM.emitTargetTeamsLoopCodegenStatus(
7977+
TTL_CODEGEN_TYPE " as parallel for", S,
7978+
CGF.CGM.getLangOpts().OpenMPIsTargetDevice));
79797979
emitCommonOMPTeamsDirective(CGF, S, OMPD_distribute_parallel_for,
79807980
CodeGenTeams);
79817981
emitPostUpdateForReductionClause(CGF, S,
@@ -8003,9 +8003,9 @@ static void emitTargetTeamsGenericLoopRegionAsDistribute(
80038003
CGF.EmitOMPReductionClauseFinal(S, /*ReductionKind=*/OMPD_teams);
80048004
};
80058005
DEBUG_WITH_TYPE(TTL_CODEGEN_TYPE,
8006-
CGF.CGM.emitTargetTeamsLoopCodegenStatus(
8007-
TTL_CODEGEN_TYPE " as distribute", S,
8008-
CGF.CGM.getLangOpts().OpenMPIsTargetDevice));
8006+
CGF.CGM.emitTargetTeamsLoopCodegenStatus(
8007+
TTL_CODEGEN_TYPE " as distribute", S,
8008+
CGF.CGM.getLangOpts().OpenMPIsTargetDevice));
80098009
emitCommonOMPTeamsDirective(CGF, S, OMPD_distribute, CodeGen);
80108010
emitPostUpdateForReductionClause(CGF, S,
80118011
[](CodeGenFunction &) { return nullptr; });

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7586,9 +7586,7 @@ class TeamsLoopChecker final : public ConstStmtVisitor<TeamsLoopChecker> {
75867586
public:
75877587
TeamsLoopChecker(CodeGenModule &CGM)
75887588
: CGM(CGM), TeamsLoopCanBeParallelFor{true} {}
7589-
bool teamsLoopCanBeParallelFor() const {
7590-
return TeamsLoopCanBeParallelFor;
7591-
}
7589+
bool teamsLoopCanBeParallelFor() const { return TeamsLoopCanBeParallelFor; }
75927590
// Is there a nested OpenMP loop bind(parallel)
75937591
void VisitOMPExecutableDirective(const OMPExecutableDirective *D) {
75947592
if (D->getDirectiveKind() == llvm::omp::Directive::OMPD_loop) {
@@ -7651,7 +7649,7 @@ bool CodeGenModule::teamsLoopCanBeParallelFor(const OMPExecutableDirective &D) {
76517649
if (D.getDirectiveKind() != llvm::omp::Directive::OMPD_target_teams_loop)
76527650
return false;
76537651
assert(D.hasAssociatedStmt() &&
7654-
"Loop directive must have associated statement.");
7652+
"Loop directive must have associated statement.");
76557653
TeamsLoopChecker Checker(*this);
76567654
Checker.Visit(D.getAssociatedStmt());
76577655
return Checker.teamsLoopCanBeParallelFor();

0 commit comments

Comments
 (0)