llvm-project
00c18d04 - [mlir][Transforms] Add a PadTilingInterface transformation and hook i… (#144991)

Commit
178 days ago
[mlir][Transforms] Add a PadTilingInterface transformation and hook i… (#144991) …t up to the transform dialect This revision revisits the padding transformation from first principles and prepares it to work more generally with TilingInterface. Compared to structured.transform.pad it has the following differences: - no support for nofold, copy-back, transpose and hoisting: these have been carried by the padding op in the very early days of StructuredOps and have since then been separated out as independent transformations that compose. - no conflated static bounding box derivation attempts: pad_tiling_interface composes more naturally with or without tiling. - properly derives padding size on outputs where multiple dimensions contribute: this is not supported in structured.transform.pad - geared towards supporting TilingInterface once the proper control mechanisms are supported through a PadSizeComputationFunction (supports LinalgOp by default) This will gradually replace structured.transform.pad as it is fleshed out and tested more comprehensively. In the future this should be moved out of a specific Linalg implementation file and into a more general "Structured" file.
Parents
Loading