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

    <tr>
        <th>Summary</th>
        <td>
            [MLIR][LLVM Dialect][DTLI] Missing DLTI entries
        </td>
    </tr>

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

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

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

<pre>
    when we do mlir-translate --import-llvm for the simple LLVM IR line like following
`target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"`


to parse datalayout string from LLVM IR, we got following warnings

```
test.c:0:0: warning: unhandled data layout token: m:e
test.c:0:0: warning: unhandled data layout token: n32:64
test.c:0:0: warning: unhandled data layout token: Fn32
```
Thats because MLIR DLIT doesn't have representation of Mangling, native int width, as well as function pointer alignment, and thus LLVM dialect cannot import them.
We should add those things to preserve info.
 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykU03PmzgQ_jXmMiLyR-AlBw60KFKk5NKNds8GBvDW2MgeEvXfr0zybttzJbA99jMzz3zpGM3kEGtWfGFFm-mNZh_qacZ5yjo__KifMzp4IgweFmtCTkG7aDUh5LlZVh8ot_axwOgD0IwQzbJahOv17xtcvoE1DsGa7wijt9Y_jZsYb1jJSYcJCQZN2uoffiNgqgUmJeYLUw3mq_zgTDVK7ksSxe9iOpXHfclNxVRTvZ6MKJlq9iVJ_0OETAAhq9ypl27-V5LOSZSSlTwx2z_ysOoQ8Vd6kYJxE4zBL5_RMfk1pWby9DM6eOrgjJvi21jJ3x9vCCMdeqYa_v4_sem4uVm7weKw-4S3U_Lf0aXnPSd_aOMz7D80s-fr98jus6YIHfZ6iwi36-UbtNfLHQaP0TH5QTDrB0LANWBER5qMd-BHuGk32eRWfgWnyTwQjCN4moHmdKcjPNHatI-b63e11RtHGEBbM7kFHe1ANwDNW3yVZjDaYk_Qa-c8watPU3suB8abfxDi7Dc7gB6Slo8INKeaQSp8ohh2IqNPcMiGWg0nddIZ1uJDVZWqiqrK5lpr0fNSFYPUA1aiUlIp7MXYKSFGxDEzteSy4JKXgh8Vrw5dVR2FEB8n0XFxOnJ25LhoYw9phg4-TJmJccNayJIfy8zqDm3ch1PKNH6pT4s2C3XC5902RXbk1kSKPy2QIbsPdKoDK1pWfNmT0r6S8rpp79cLK1q4mRhT17bX-wXQUTAYsy3YeiZaI1MNk2cmz5OheesOvV-YPCdP7y1fg_83GZXnnXhk8vzm_qjlfwEAAP__5RVcgw">