[flang-commits] [flang] [mlir] [mlir][OpenMP][flang] make private variable allocation implicit in omp.private (PR #124019)
Leandro Lupori via flang-commits
flang-commits at lists.llvm.org
Fri Jan 24 12:33:08 PST 2025
================
@@ -156,8 +175,12 @@ void Fortran::lower::omp::populateByRefInitAndCleanupRegions(
/*withElseRegion=*/true);
builder.setInsertionPointToStart(&ifOp.getThenRegion().front());
// just embox the null address and return
+ // we have to give the embox a shape so that the LLVM box structure has the
+ // right rank. This returns nullptr if the types don't match.
----------------
luporl wrote:
It actually returns an (empty?) `mlir::Value`.
https://github.com/llvm/llvm-project/pull/124019
More information about the flang-commits
mailing list