[Mlir-commits] [mlir] [mlir][linalg] Extend elementwise (PR #124661)

Rolf Morel llvmlistbot at llvm.org
Mon Feb 3 08:13:45 PST 2025


rolfmorel wrote:

> > region is needed to lower to linalg.generic
> 
> This is not really true. LinalgStructuredInterface exposes `getRegionBuilder` which should be used to lower to linalg.generic

Unfornately, this is not case in the world we live in 😢 Have a look at https://github.com/llvm/llvm-project/blob/main/mlir/lib/Dialect/Linalg/Transforms/Generalization.cpp#L71 - that is, the actual region is copied from the named op. 

https://github.com/llvm/llvm-project/pull/124661


More information about the Mlir-commits mailing list