[llvm-branch-commits] [flang] [llvm] [mlir] [OpenMP][MLIR] Modify OpenMP Dialect lowering to support attach mapping (PR #179023)
Sergio Afonso via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Apr 6 08:28:47 PDT 2026
================
@@ -4629,11 +4659,18 @@ static void collectMapDataFromMapOperands(
}
auto findMapInfo = [&mapData](llvm::Value *val,
- llvm::OpenMPIRBuilder::DeviceInfoTy devInfoTy) {
+ llvm::OpenMPIRBuilder::DeviceInfoTy devInfoTy,
+ size_t memberCount) {
unsigned index = 0;
bool found = false;
for (llvm::Value *basePtr : mapData.OriginalValue) {
- if (basePtr == val && mapData.IsAMapping[index]) {
+ auto mapOp = cast<omp::MapInfoOp>(mapData.MapClause[index]);
+ // TODO/FIXME: Currently we define an equivelant mapping as
+ // the same base pointer and an equivelant member count, but
+ // that is a loose definition, we may have to extend to check
+ // for other fields (varPtrPtr/invidiual members being mapped)
----------------
skatrak wrote:
```suggestion
// TODO: Currently we define an equivalent mapping as
// the same base pointer and an equivalent member count, but
// that is a loose definition. We may have to extend to check
// for other fields (varPtrPtr/individual members being mapped).
```
https://github.com/llvm/llvm-project/pull/179023
More information about the llvm-branch-commits
mailing list