[flang-commits] [flang] [mlir] [flang][mlir] Add support for implicit linearization in omp.simd (PR #150386)

Kareem Ergawy via flang-commits flang-commits at lists.llvm.org
Thu Aug 7 01:36:53 PDT 2025


================
@@ -2761,9 +2760,17 @@ genStandaloneSimd(lower::AbstractConverter &converter, lower::SymMap &symTable,
   simdArgs.priv.vars = simdClauseOps.privateVars;
   simdArgs.reduction.syms = simdReductionSyms;
   simdArgs.reduction.vars = simdClauseOps.reductionVars;
+
+  for (auto &sym : simdArgs.priv.syms) {
----------------
ergawy wrote:

Are we iterating over the symbols for the loop nest iteration variables here?
If so, should we iterate over `iv` instead? Also, make sure we use the proper `loopSteps[...]` (we always use the step from the first loop in the nest below)? 

https://github.com/llvm/llvm-project/pull/150386


More information about the flang-commits mailing list