[flang-commits] [flang] [flang] fix private pointers and default initialized variables (PR #118494)
Mats Petersson via flang-commits
flang-commits at lists.llvm.org
Tue Dec 3 07:57:57 PST 2024
================
@@ -0,0 +1,27 @@
+! Test delayed privatization for derived types with default initialization.
+
+! RUN: %flang_fc1 -emit-hlfir -fopenmp -mmlir --openmp-enable-delayed-privatization \
+! RUN: -o - %s 2>&1 | FileCheck %s
+! RUN: bbc -emit-hlfir -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 |\
----------------
Leporacanthicus wrote:
`bbc` is an alternative frontend of the compiler, which generates the FIR (or HLFIR in this case) level. There is a `tco` second part that runs optimisation passes and generated LLVM-IR (or lowered MLIR).
The main point of having both here is to check that the option for delayed privatization works for both variants. Almost all code is shared, but command-line parsing is not identical. [We should, as a general case, avoid running everything in both `bbc` and `flang`, if there's no clear reason why code takes a different path through the two tools].
https://github.com/llvm/llvm-project/pull/118494
More information about the flang-commits
mailing list