[Mlir-commits] [mlir] [mlir][Vector] Fold vector.step compared to constant (PR #161615)
Diego Caballero
llvmlistbot at llvm.org
Wed Oct 15 15:52:42 PDT 2025
dcaballe wrote:
> Or is there a ConstantLike interface (maybe we should add that if not?)
Yes, there is a `ConstantLike` trait that different constant ops are using. I'm not sure if we'd need to turn this into an interface but this is a path we can explore. That would indeed require an attribute for `vector.step` to encode the constant information. The key point, IMO, is that we shouldn't assume that the stride of the step is always `1` as this is something we want to parametrize in the future.
https://github.com/llvm/llvm-project/pull/161615
More information about the Mlir-commits
mailing list