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
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td | ||
---|---|---|
776 | Typo | |
798 | Rephrase "used to the". | |
874 | It's not really "operand dimensions" but "operand dimension sizes". | |
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp | ||
13–16 | Includes not in sorted order. You also don't need many of the includes below as a result. | |
18–19 | You don't need this either. | |
18–19 | You don't need this include. | |
18–19 | Not needed either. | |
22–23 | Not needed. | |
22–23 | Not needed. Prune these includes overall. | |
34 | Doc comment missing. | |
66 | Use i = 0, e = ... form to avoid repeated evaluation. | |
72 | if (!attr) and early return. Will reduce indent / more readable for the entire block below. | |
129–130 | Use .isa<AffineConstantExpr>() / isa<AffineSymbolExpr>() instead of getKind() comparison. | |
mlir/lib/Dialect/Linalg/Transforms/Tiling.cpp | ||
335–337 | Avoid auto here. |
Typo