================ @@ -77,9 +78,15 @@ class MapInfoFinalizationPass /// | | std::map<mlir::Operation *, mlir::Value> localBoxAllocas; - // List of deferrable descriptors to process at the end of - // the pass. - llvm::SmallVector<mlir::Operation *> deferrableDesc; + /// List of deferrable descriptors to process at the end of + /// the pass and their associated attach map if it exists. + llvm::SmallVector<std::pair<mlir::Operation *, mlir::Operation *>> + deferrableDesc; + + /// List of base addresses already expanded from their + /// descriptors within a parent, currently used to + /// prevent incorrect member index generation. + std::map<mlir::Operation *, llvm::SmallVector<uint64_t>> expandedBaseAddr; ---------------- bhandarkar-pranav wrote:
Any reason you did not use `llvm::DenseMap`? https://github.com/llvm/llvm-project/pull/177715 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
