[Mlir-commits] [flang] [mlir] [mlir][OpenMP] Annotate `private` vars with `map_idx` when needed (PR #116770)

Michael Klemm llvmlistbot at llvm.org
Thu Nov 21 03:55:21 PST 2024


mjklemm wrote:

How stable are the objects that you refer too?  If they are not deallocated/reallocated and thus go out of existence and/or change their position in memory, you could keep a reference to the object that you'd like to refer to.  So, basically, instead of using a 0-based index, you use the object's address in memory as the index.  Would that work?  

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


More information about the Mlir-commits mailing list