[Mlir-commits] [flang] [mlir] [MLIR][LLVM] Make DISubprogramAttr cyclic (PR #106571)

Tobias Gysi llvmlistbot at llvm.org
Mon Sep 23 04:36:31 PDT 2024


gysit wrote:

If you have an LLVM IR example, it could make to run it through the LLVM IR to LLVM dialect import and see what happens (using `mlir-translate -import-llvm filename.ll`). The import uses a  CyclicReplacerCache to construct the self recursive nodes. I assume in the front-end you may need a similar trick to decide where to put the self recursive nodes. So maybe studying DebugImport.cpp may be helpful (sorry for the unspecific hints but it has been a while since I reviewed this and the exact mechanism have been paged out of my brain).

@zyx-billy may have something like that working in their front-end?


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


More information about the Mlir-commits mailing list