<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/82235>82235</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[mlir] --convert-func-to-llvm sets llvm data layout attribute to an empty string (tested on llvm 17.0.2)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
mlir
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
edg-l
</td>
</tr>
</table>
<pre>
```
module attributes {llvm.data_layout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128", llvm.target_triple = "x86_64-unknown-linux-gnu"} {
func.func @main() {
return
}
}
```
```bash
mlir-opt minimal.mlir --convert-func-to-llvm
module attributes {llvm.data_layout = "", llvm.target_triple = "x86_64-unknown-linux-gnu"} {
llvm.func @main() {
llvm.return
}
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysU22O2yAQPQ3-g7Dw-JMf_pGtlQv0ACtsE4cWgwXDdvf2FSTpditVrapK0eQNmjfMe4NlCHqzSo2kfSLtVMiIV-dHtW7MFLNb30bS8fuPT4SfdrdGo6hE9HqOqAIl_ZMxL3u5SpTPRr65iJTUEyUAiu2kPil2QM9Jfaohh5RWH9OEuiYHph_gMiRSBQOzQwLdg9M17HMFAwEg8Inmy1H6TeEzen0Y9bj-deieu4ZF-9W6b5YZbeMr22xMxH5Kg980UXqJdilToKThu9SWpPbi5xJKvcLo7SMn_XSD7-CjU78czjJc7xYa7Zk7kO7a6l2aMh1QxhZnX5RHluZg6FgS9g-m_0dbco8_2ZKL_tqbYh3rVdRCFmqsej7UDedVU1zHtu9adakbwbtKLZfLPC9q6Kq1l_1aCTEXegQODYdKVLyt66ZsBW9bAdBeuFhEN5OGq11qU-aJnN8KHUJU4wBQt4WRszIhv3OA5HiS206FH1M5m-MWSMONDhjeG6BGk7-NTGin32yJBoUhG0HTQuh9IT_2RdFRaanaD3yjAb22GyUwoAqoVursjVr1JS-BgCiiN-MV8QikPhE4EzhvGq9xLhe3Ezjnh3H7Y4d3X9SCBM5ZbCBwznq_BwAA__8COiE_">