[Mlir-commits] [mlir] [mlir][linalg] Constrain the parameters m, r in Winograd ops (PR #144657)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Tue Jun 24 00:00:27 PDT 2025
================
@@ -100,6 +100,20 @@ OpFoldResult createFoldedDimOp(OpBuilder &b, Location loc, Value val,
#include "mlir/Dialect/Linalg/IR/LinalgOpsEnums.h.inc"
+namespace mlir {
+namespace linalg {
+
+/// Converts the given `m` and `r` parameters to a WinogradConv2DFmr enumeration
+/// value.
+WinogradConv2DFmr getWinogradConv2DFmr(int64_t m, int64_t r);
----------------
ftynse wrote:
This can return `std::optional<WinogradConv2DFmr>` defaulting to `std::nullopt`.
https://github.com/llvm/llvm-project/pull/144657
More information about the Mlir-commits
mailing list