[flang] [llvm] [mlir] [llvm][mlir][OpenMP] Support translation for linear clause in omp.wsloop (PR #139386)
Tom Eccles via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 06:00:03 PDT 2025
================
@@ -2423,15 +2562,40 @@ convertOmpWsloop(Operation &opInst, llvm::IRBuilderBase &builder,
llvm::omp::Directive::OMPD_for);
llvm::OpenMPIRBuilder::LocationDescription ompLoc(builder);
+
+ // Initialize linear variables and linear step
+ LinearClauseProcessor linearClauseProcessor;
+ if (wsloopOp.getLinearVars().size()) {
----------------
tblah wrote:
nit: This if is unnecessary. The for loops will not execute if there are no linear vars.
https://github.com/llvm/llvm-project/pull/139386
More information about the llvm-commits
mailing list