[flang-commits] [flang] [flang][OpenMP][MLIR] Basic support for delayed privatization code-gen (PR #81833)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Thu Feb 22 07:10:37 PST 2024


================
@@ -0,0 +1,30 @@
+! Test delayed privatization for the `firstprivate` clause.
+
+! RUN: bbc -emit-hlfir -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 | FileCheck %s
+
+subroutine delayed_privatization_firstprivate
+  implicit none
+  integer :: var1
+
+!$OMP PARALLEL FIRSTPRIVATE(var1)
----------------
luporl wrote:

It would be nice to add a test with more than one variable in the same clause.

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


More information about the flang-commits mailing list