[flang-commits] [flang] [mlir] [MLIR][LLVM] Make DISubprogramAttr cyclic (PR #106571)
Billy Zhu via flang-commits
flang-commits at lists.llvm.org
Tue Sep 24 10:48:38 PDT 2024
zyx-billy wrote:
Oh so the attributes aren't generated by importing, but they were created natively in MLIR? In that case I think your frontend will need to make sure to not "reuse" the `t2` from inside `t1`, but to create a separate `t2` that is standalone and use that elsewhere in the IR. The LLVM dialect could probably use a verifier for this too, but today if you see the LLVM translation die [here](https://github.com/llvm/llvm-project/blob/26029d77a57cb4aaa1479064109e985a90d0edd8/mlir/lib/Target/LLVMIR/DebugTranslation.cpp#L270), that's indicating this problem.
https://github.com/llvm/llvm-project/pull/106571
More information about the flang-commits
mailing list