[MLIR][Vector] Implement DialectReductionPatternInterface using ODS
Open
mlir:vector
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
Description
Now that DialectReductionPatternInterface has moved to ODS ([#180640](https://github.com/llvm/llvm-project/pull/180640)), I'd like to implement it for the Vector dialect.
Since Vector is so critical for low-level lowering, having these reduction patterns will be a great help for mlir-reduce users.
Proposed Plan:
Register the interface in VectorOps.cpp.
Implement populateReductionPatterns.
Start with high-impact patterns like vector.broadcast simplification.
This will be my first contribution to MLIR.
CC: @aidint (since you handled the ODS migration, I'd love to get your thoughts or any tips for a first-timer on this interface).
Contributor guide
Assessment
This issue has not been assessed yet.