Commit 60010b3
authored
[mlir][linalg] Clarify comments and remove outdated TODO (nfc) (#171695)
The TODO being removed was originally added at my request in:
* #160246
Upon revisiting the issue, it becomes clear that implementing the TODO
would require supporting IR of the following form (note the static tile
size `8` and the corresponding dynamic dimension in the result type):
```mlir
%pack = linalg.pack %src
padding_value(%c5 : i32)
inner_dims_pos = [0, 1]
inner_tiles = [8, 1]
into %dest : tensor<?x?xi32> -> tensor<1x1x?x1xi32>
```
Allowing this would be invalid, as discussed here:
* https://discourse.llvm.org/t/tensor-ops-with-dynamic-sizes-which-behaviour-is-more-correct1 parent 5123d36 commit 60010b3
File tree
2 files changed
+13
-7
lines changed- mlir
- include/mlir/Dialect/Linalg/IR
- lib/Dialect/Linalg/Transforms
2 files changed
+13
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1219 | 1219 | | |
1220 | 1220 | | |
1221 | 1221 | | |
1222 | | - | |
1223 | | - | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
1224 | 1227 | | |
1225 | 1228 | | |
1226 | 1229 | | |
| |||
0 commit comments