[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

Walter J.T.V via cfe-commits cfe-commits at lists.llvm.org
Wed May 21 03:33:28 PDT 2025


================
@@ -11516,6 +11516,21 @@ def note_omp_implicit_dsa : Note<
   "implicitly determined as %0">;
 def err_omp_loop_var_dsa : Error<
   "loop iteration variable in the associated loop of 'omp %1' directive may not be %0, predetermined as %2">;
+def warn_omp_different_loop_ind_var_types : Warning <
+  "loop sequence following '#pragma omp %0' contains induction variables of differing types: %1 and %2">,
----------------
eZWALT wrote:

How could it be? The iteration var type is dependent on the original iteration variable type, therefore making it possible for fusion to loop multiple loops with different induction variable types given that i dont emit an error but rather a warning. But i dont really see how NumIterations could be the limiting factor here, could you please explain me?  

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


More information about the cfe-commits mailing list