[flang] [llvm] [mlir] [flang][OpenMP] Enable tiling (PR #143715)
Jan Leyonberg via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 20 04:46:01 PDT 2025
================
@@ -0,0 +1,30 @@
+! This test checks lowering of OpenMP DO Directive(Worksharing) with collapse.
+
+! RUN: bbc -fopenmp -fopenmp-version=51 -emit-hlfir %s -o - | FileCheck %s
+
+!CHECK-LABEL: func.func @_QQmain() attributes {fir.bindc_name = "wsloop_tile"} {
+program wsloop_tile
+ integer :: i, j, k
+ integer :: a, b, c
+ integer :: x
+
+ a=30
+ b=20
+ c=50
+ x=0
+
+ !CHECK: omp.loop_nest
+ !CHECK-SAME: tiles(2, 5, 10)
----------------
jsjodin wrote:
No problem, I added checks so that collapse(N) or tiles(1..N) makes sure that N is not greater than the number of loops in the omp.loop_nest op. It doesn't take into account the interaction between tiling and collapse, but we could add this also.
https://github.com/llvm/llvm-project/pull/143715
More information about the llvm-commits
mailing list