[flang-commits] [flang] [llvm] [mlir] [Flang][OpenMP] Fix Fortran automap handling (PR #162501)
Akash Banerjee via flang-commits
flang-commits at lists.llvm.org
Fri Jul 10 06:58:30 PDT 2026
================
@@ -5719,16 +5719,18 @@ static void collectMapDataFromMapOperands(
// Process MapOperands
for (Value mapValue : mapVars) {
auto mapOp = cast<omp::MapInfoOp>(mapValue.getDefiningOp());
+ bool isAttachMap =
+ bitEnumContainsAll(mapOp.getMapType(), omp::ClauseMapFlags::attach);
bool isRefPtrOrPteeMapWithAttach =
checkRefPtrOrPteeMapWithAttach(mapOp.getMapType());
Value offloadPtr = (mapOp.getVarPtrPtr() && !isRefPtrOrPteeMapWithAttach)
? mapOp.getVarPtrPtr()
: mapOp.getVarPtr();
+ Value pointeePtr = isRefPtrOrPteeMapWithAttach
----------------
TIFitis wrote:
Same as above, removed change.
https://github.com/llvm/llvm-project/pull/162501
More information about the flang-commits
mailing list