HomePhabricator

[mlir][sparse] generalize reduction support in sparse compiler

Authored by aartbik on Sep 21 2021, 2:48 PM.

Description

[mlir][sparse] generalize reduction support in sparse compiler

Now not just SUM, but also PRODUCT, AND, OR, XOR. The reductions
MIN and MAX are still to be done (also depends on recognizing
these operations in cmp-select constructs).

Reviewed By: bixia

Differential Revision: https://reviews.llvm.org/D110203