[llvm-branch-commits] [flang] [llvm] [mlir] [OpenMP][MLIR] Modify OpenMP Dialect lowering to support attach mapping (PR #179023)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Apr 8 22:54:45 PDT 2026
================
@@ -4587,10 +4601,16 @@ static void collectMapDataFromMapOperands(
// Process MapOperands
for (Value mapValue : mapVars) {
auto mapOp = cast<omp::MapInfoOp>(mapValue.getDefiningOp());
- Value offloadPtr =
- mapOp.getVarPtrPtr() ? mapOp.getVarPtrPtr() : mapOp.getVarPtr();
+ bool isRefPtrOrPteeMapWithAttach =
+ checkRefPtrOrPteeMapWithAttach(mapOp.getMapType());
----------------
agozillon wrote:
The checkRefPtrOrPteeMapWithAttach function or do you mean something else in this case? :-) I don't mind if you want that, but it's only ever used in this one location currently, so I didn't want to over-engineer it and add it to the dialect, as we fairly trivially do checks like this everywhere to check if x bit flag is set.
https://github.com/llvm/llvm-project/pull/179023
More information about the llvm-branch-commits
mailing list