llvm / llvm/llvm-project

[MLIR][Vector] Implement DialectReductionPatternInterface using ODS

Open
#182,871 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.