[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
Mon May 19 02:33:52 PDT 2025


================
@@ -962,6 +962,9 @@ class OMPLoopTransformationDirective : public OMPLoopBasedDirective {
 
   /// Number of loops generated by this loop transformation.
   unsigned NumGeneratedLoops = 0;
+  /// Number of top level canonical loop nests generated by this loop
+  /// transformation
+  unsigned NumGeneratedLoopNests = 0;
----------------
eZWALT wrote:

This distinction is indeed important and actively used in `SemaOpenMP.cpp` file, particularly within the `AnalyzeLoopSequence` function (starting at line 14284). For example, it's referenced in lines 14344 and 14364 to differentiate between specific loop transformations. 


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


More information about the cfe-commits mailing list