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

Kareem Ergawy via flang-commits flang-commits at lists.llvm.org
Thu Feb 22 21:15:41 PST 2024


================
@@ -0,0 +1,30 @@
+! Test that reductions and delayed privatization work properly togehter. Since
+! both types of clauses add block arguments to the OpenMP region, we make sure
+! that the block arguments are added in the proper order (reductions first and
+! then delayed privatization.
+
+! RUN: bbc -emit-hlfir -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 | FileCheck %s
----------------
ergawy wrote:

Indeed, it is related to the delayed privatization option. I think I can add a corresponding option to `flang-new` but my idea was to get delayed privatization working properly first.

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


More information about the flang-commits mailing list