[flang-commits] [flang] [flang][OpenMP] Lower DO, SIMD, and DO SIMD metadirective variants (PR #218555)
via flang-commits
flang-commits at lists.llvm.org
Tue Aug 25 20:11:24 PDT 2026
================
@@ -0,0 +1,562 @@
+! Test lowering of metadirectives with ordinary loop-associated variants.
+
+! RUN: %flang_fc1 -fopenmp -emit-hlfir -fopenmp-version=52 %s -o - | FileCheck %s
+
+! CHECK: #loop_unroll = #llvm.loop_unroll<disable = false, count = 4 : i64>
+! CHECK: #loop_annotation = #llvm.loop_annotation<unroll = #loop_unroll>
+
+! CHECK-LABEL: func.func @_QPtest_do(
+! CHECK-NOT: omp.parallel
+! CHECK: omp.wsloop
----------------
MattPD wrote:
The private-clause check now catches a missing or renamed recipe. The body's use of the private argument remains unchecked. Keeping the clause but changing `hlfir.declare %arg2` to the original `%3#0` still passes FileCheck. Could the test capture the private block argument and require both the declaration and the induction assignment to use it?
https://github.com/llvm/llvm-project/pull/218555
More information about the flang-commits
mailing list