This revision refactors code used in various Linalg transformations and makes it a first class citizen to the LinalgStructureOpInterface. This is in preparation to allowing more advanced Linalg behavior but is otherwise NFC.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td | ||
---|---|---|
776 ↗ | (On Diff #306842) | Typo |
798 ↗ | (On Diff #306842) | Rephrase "used to the". |
873 ↗ | (On Diff #306842) | It's not really "operand dimensions" but "operand dimension sizes". |
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp | ||
13–14 ↗ | (On Diff #306842) | Includes not in sorted order. You also don't need many of the includes below as a result. |
18 ↗ | (On Diff #306842) | You don't need this include. |
19 ↗ | (On Diff #306842) | You don't need this either. |
20 ↗ | (On Diff #306842) | Not needed either. |
25 ↗ | (On Diff #306842) | Not needed. |
26 ↗ | (On Diff #306842) | Not needed. Prune these includes overall. |
38 ↗ | (On Diff #306842) | Doc comment missing. |
70 ↗ | (On Diff #306842) | Use i = 0, e = ... form to avoid repeated evaluation. |
76 ↗ | (On Diff #306842) | if (!attr) and early return. Will reduce indent / more readable for the entire block below. |
133–134 ↗ | (On Diff #306842) | Use .isa<AffineConstantExpr>() / isa<AffineSymbolExpr>() instead of getKind() comparison. |
mlir/lib/Dialect/Linalg/Transforms/Tiling.cpp | ||
335–336 ↗ | (On Diff #306842) | Avoid auto here. |