<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/119531>119531</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[mlir] Not able to bufferize tensor.concat operation
</td>
</tr>
<tr>
<th>Labels</th>
<td>
mlir
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
UtkarshKunwar
</td>
</tr>
</table>
<pre>
Tag: `llvmorg-19.1.5`
## Sample Input
```mlir
// concat.mlir
func.func @main(%1: tensor<3x4xf32>, %2: tensor<2x4xf32>) -> tensor<5x4xf32>
{
%3 = tensor.concat dim(0) %1, %2: (tensor<3x4xf32>, tensor<2x4xf32>) -> tensor<5x4xf32>
return %3: tensor<5x4xf32>
}
```
## Command used
```bash
mlir-opt concat.mlir --one-shot-bufferize
```
## Error encountered
```bash
concat.mlir:3:8: error: op was not bufferized
%3 = tensor.concat dim(0) %1, %2: (tensor<3x4xf32>, tensor<2x4xf32>) -> tensor<5x4xf32>
^
concat.mlir:3:8: note: see current operation: %0 = "tensor.concat"(%arg0, %arg1) <{dim = 0 : i64}> : (tensor<3x4xf32>, tensor<2x4xf32>) -> tensor<5x4xf32>
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVM2OnDgQfpriYoHsMqabA4ee_pFWK-1lkwcwYMAJ2Mg2M5M8fWQaTXeP1IdIOQRZGFEufz9VKum97o1SFYgXEKdELmGwrvoavkvnh38X8yZdUtv2R_VF9sAPBAo6jq-TdX3KyoxlAgoK9BAXckBO_pfTPCryj5mXsAUKel3TqN168AJ4IY01jQzZ9rNbTJPFF4GcTlIbwD2gYBEzKOOtA37k7_l7xxH4GfBIAAU-hPEuXJIU-PkWE7cYPcDuBeiBxBs4AX7ajmVXSqTVE-CexktWCndYgPsnbH6fBSFOhcWZlcaDkE9kT_cmPph9tNMkTUsWr9pPZtfSD0AP0d7UzuHebpKm1qjUDzak9dJ1yumf6inG2TnriDKNXUxQ7hnQfTn5IerZR00qZscPO5M36YmxgXxgtn9FFdYHxPm5CGODirtXijSLc8oEYmflZNDWXAkJukoAxAcVgHhtZOl6ukmQrmerKn6E3UurpzUz5h-ILvJYb34mf1rnR72StuJtyUuZqIrtOC8ZzRlNhiovqKB5V9SUlrhr9zxvkXZFyzrRCC4x0RVSzBkyRsu8EDQrlCykYkXDyv1uz3PIqZqkHrM4IjLr-kR7v6iKsVJwloyyVqNfRw3i6jFiHDquiufTeuk95HTUPvjbDUGHcR1Pa4I4kf9sILIeFQn21kmfeuejOMnixmoIYfbAt8HT6zAsddbYCfASYbYtnZ39ppoAeFlZe8DLRvy1wl8BAAD__8UjexY">