[llvm-branch-commits] [flang] [Flang][OpenMP] Derived type explicit allocatable member mapping (PR #96266)

Sergio Afonso via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 29 05:49:08 PDT 2024


================
@@ -52,12 +52,22 @@ using DeclareTargetCapturePair =
 struct OmpMapMemberIndicesData {
   // The indices representing the component members placement in its derived
   // type parents hierarchy.
-  llvm::SmallVector<int> memberPlacementIndices;
+  llvm::SmallVector<llvm::SmallVector<int>> memberPlacementIndices;
 
   // Placement of the member in the member vector.
-  mlir::omp::MapInfoOp memberMap;
+  llvm::SmallVector<mlir::omp::MapInfoOp> memberMap;
 };
 
+llvm::SmallVector<int>
+generateMemberPlacementIndices(const Object &object,
----------------
skatrak wrote:

When this duplication is addressed, I think the variant taking a `SmallVectorImpl<int> &` argument to be used as output should be the one we should stick with.

https://github.com/llvm/llvm-project/pull/96266


More information about the llvm-branch-commits mailing list