<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/129121>129121</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [mlir][LLVMIR] Support new debug records format
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            mlir:llvm
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          smeenai
      </td>
    </tr>
</table>

<pre>
    Per https://discourse.llvm.org/t/psa-ir-output-changing-from-debug-intrinsics-to-debug-records/79578/3, debug intrinsics support is being removed after the LLVM 20 branch cut. The LLVM IR translator [relies on debug intrinsics](https://github.com/llvm/llvm-project/blob/10a9dcab0a5904ce6c12efb3555a2e31017bce92/mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp#L59). The comment says that "Debug records are not currently supported in the LLVM IR translator"; I'm not sure if it's just a translator issue or a broader lack of support in the LLVM IR dialect. Either way, it'll need to be fixed once LLVM no longer supports debug intrinsics. https://llvm.org/docs/RemoveDIsDebugInfo.html has an LLVM migration guide, for reference.

CCing some people I've seen working on the LLVM dialect recently: @bcardosolopes @gysit @xlauko @Dinistro 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUVE1vpDgT_jXuS6kRFNCEA4ck_SJFyiutsqO9G1OAJ8aFyqYz_e9XkM4m2TntCVRWfTwfVToEO3qiRpUPqjwf9BonlibMRF7bQ8f9tfmDBKYYl6Dye4Wtwra3wfAqgRLnLnPCMipso8J2Cfpo5chrXNZ4NJP2o_XjcRCejz1163i0Por1wZpwjHyLCRmWPihsq7qs7hS2ucJH2B_hMwHCuiwsEWyAjqwfQWjmC_Wgh0gCcSJ4fv7r_4ApdKK9mcCsMYEfH_GnF4iifXA6soAqH4ScpQDsf-ulyrPCu--oRxuntUsMzwrbDfjtc1yEf5LZ8HeOO4Vtluq6N7pLdVmnhaGTyZCGLi_LUiPlWZpVnaEaFbazs7LVsVveDy0jbXW2cZ9eFLaP7C8ksRWe32OJWRaF-XNZK6zfsRmeZ_IRgr4GiJOOoBDPO6Abs6CFwHMEs4qQj-76wSX1YP0nc98YUogqf4AnhdW8Z4dVCOwANiqsAvxcQwT9lVIbwkrAAho6Yd2TgNPmFXj41O57t95qRyYm8D8bJxJ409dN-r2Dc-CJeogMHcFgf1EP7M0t2TM49iPJR-nwm4jJv2z7xaw9m81vL7uBzk9hp-vJD5xMcXYw6QDavzea7Sg6WvYwrranbbyBBYQGEvKGEpXeq_T-8XFzZOCZYCFeHO3EXQgCkYc3ltftnb_Av2HfRNo1Ufk9qCLtjJaeAzteKGyB8Rps3H5-Ob2-8vZ3tt6GKAyHvsn7Oq_1gZqsKtJTnWXl6TA1eZ_lVWGqjlIsqtOpKFKqdV9nWGZdVpwOtsEUyxSxwiyrs1NSdB2au6zqc0NmqEpVpDRr6_7Z8cMub5NhnWF2cLojF_a7gbi7OL9_XwrcDok0-2p06xhUkTobYvgsFG10-8nZ88qzKh9uji_P8OfNKZ7ebop-uHhgmXU8rOKa_7yZ--yb5LfxLw3-HQAA__-bGKhG">