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-02-11 12:58:58 +01:00
2025-08-08 22:20:27 +01:00
2024-12-20 20:32:32 -08:00
2024-11-18 15:41:54 -06:00
2025-07-21 16:43:57 -07:00
2025-01-29 09:14:37 +01:00
2024-12-11 10:07:21 -08:00
2024-12-02 08:55:51 -08:00
2025-08-21 17:42:18 +02:00
2025-09-04 17:57:39 -07:00
2025-03-23 07:37:55 -05:00
2025-04-11 08:55:38 -04:00
2025-07-18 19:53:11 -04:00
2025-04-16 18:17:09 -04:00
2025-06-25 16:39:01 +01:00
2025-01-03 11:21:59 +00:00
2025-07-08 11:00:34 +01:00
2025-09-11 13:56:57 -04:00
2025-06-16 12:40:50 +01:00
2025-09-05 18:52:01 +03:00