[Mlir-commits] [mlir] [mlir][debug] Handle DIImportedEntity. (PR #103055)
Billy Zhu
llvmlistbot at llvm.org
Thu Aug 15 14:17:32 PDT 2024
zyx-billy wrote:
Thank you @gysit for the overview. Yes, unfortunately this is our only solution for cyclic DI metadata right now. Coincidentally we were just discussing in #98203 how we may need to add recursion support so that DISubprogram may be used to "prune" cycles, and once that's added this should work automatically, but neither of us got to it yet...
Another solution, if an ImportedEntity is very limited in where it can exist, is to forgo the back-referencing "scope" field from the ImportedEntity and just rely on the context when exporting back to llvm to assign it the scope again. Is there such a guarantee on where an ImportedEntity can appear?
https://github.com/llvm/llvm-project/pull/103055
More information about the Mlir-commits
mailing list