[flang-commits] [flang] [Flang][OpenMP][Lower] NFC: Combine two calls to ClauseProcessor::processTODO (PR #78451)
Sergio Afonso via flang-commits
flang-commits at lists.llvm.org
Wed Jan 17 06:23:42 PST 2024
https://github.com/skatrak created https://github.com/llvm/llvm-project/pull/78451
Just a minimal readability improvement that we overlooked during refactoring.
>From dcab44bfac30bf595cde7e709c4bd3e35bd2326e Mon Sep 17 00:00:00 2001
From: Sergio Afonso <safonsof at amd.com>
Date: Wed, 17 Jan 2024 14:14:52 +0000
Subject: [PATCH] [Flang][OpenMP][Lower] NFC: Combine two calls to
ClauseProcessor::processTODO
Just a minimal readability improvement that we overlooked during refactoring.
---
flang/lib/Lower/OpenMP.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp
index c770d1c60718c3..8f0149bc1ab375 100644
--- a/flang/lib/Lower/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP.cpp
@@ -3052,15 +3052,15 @@ createSimdLoop(Fortran::lower::AbstractConverter &converter,
loopVarTypeSize);
cp.processScheduleChunk(stmtCtx, scheduleChunkClauseOperand);
cp.processReduction(loc, reductionVars, reductionDeclSymbols);
- cp.processTODO<Fortran::parser::OmpClause::Linear,
- Fortran::parser::OmpClause::Order>(loc, ompDirective);
cp.processIf(Fortran::parser::OmpIfClause::DirectiveNameModifier::Simd,
ifClauseOperand);
cp.processSimdlen(simdlenClauseOperand);
cp.processSafelen(safelenClauseOperand);
cp.processTODO<Fortran::parser::OmpClause::Aligned,
Fortran::parser::OmpClause::Allocate,
- Fortran::parser::OmpClause::Nontemporal>(loc, ompDirective);
+ Fortran::parser::OmpClause::Linear,
+ Fortran::parser::OmpClause::Nontemporal,
+ Fortran::parser::OmpClause::Order>(loc, ompDirective);
convertLoopBounds(converter, loc, lowerBound, upperBound, step,
loopVarTypeSize);
More information about the flang-commits
mailing list