Erick Ochoa Lopez
9d19250610
[mlir][vector] Add vector.to_elements unrolling (#157142)
This PR adds support for unrolling `vector.to_element`'s source operand.
It transforms
```mlir
%0:8 = vector.to_elements %v : vector<2x2x2xf32>
```
to
```mlir
%v0 = vector.extract %v[0] : vector<2x2xf32> from vector<2x2x2xf32>
%v1 = vector.extract %v[1] : vector<2x2xf32> from vector<2x2x2xf32>
%0:4 = vector.to_elements %v0 : vector<2x2xf32>
%1:4 = vector.to_elements %v1 : vector<2x2xf32>
// %0:8 = %0:4 - %1:4
```
This pattern will be applied until there are only 1-D vectors left.
---------
Signed-off-by: hanhanW <hanhan0912@gmail.com>
Co-authored-by: hanhanW <hanhan0912@gmail.com>
Co-authored-by: Jakub Kuderski <kubakuderski@gmail.com>
2025-09-11 13:56:57 -04:00
..
2025-09-11 13:56:57 -04:00
2025-09-08 16:05:45 +00:00
2025-09-05 14:30:40 -07:00
2025-07-15 10:58:10 -04:00
2025-09-06 03:41:48 -07:00
2025-01-17 16:25:08 +01:00
2025-08-17 23:07:24 +02:00
2024-05-30 10:06:02 +02:00
2025-01-13 03:00:31 -08:00
2025-09-01 21:53:33 -07:00
2025-09-09 08:05:39 -07:00
2024-08-31 03:17:33 -04:00