[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation direcrive and "looprange" clause (PR #139293)
Walter J.T.V via llvm-commits
llvm-commits at lists.llvm.org
Fri May 9 11:37:01 PDT 2025
================
@@ -5790,7 +5805,11 @@ class OMPReverseDirective final : public OMPLoopTransformationDirective {
explicit OMPReverseDirective(SourceLocation StartLoc, SourceLocation EndLoc)
: OMPLoopTransformationDirective(OMPReverseDirectiveClass,
llvm::omp::OMPD_reverse, StartLoc,
- EndLoc, 1) {}
+ EndLoc, 1) {
+ // Reverse produces a single top-level canonical loop nest
+ setNumGeneratedLoops(1);
----------------
eZWALT wrote:
Okey do i make another pull request just for the loop corrections though?
https://github.com/llvm/llvm-project/pull/139293
More information about the llvm-commits
mailing list