HomePhabricator

[mlir][linalg] Add IndexedGenericOp to GenericOp canonicalization.

Authored by gysit on May 6 2021, 10:59 PM.

Description

[mlir][linalg] Add IndexedGenericOp to GenericOp canonicalization.

Replace all linalg.indexed_generic ops by linalg.generic ops that access the iteration indices using the linalg.index op.

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

Details

Event Timeline

ergawy added a subscriber: ergawy.May 7 2021, 12:35 AM
ergawy added inline comments.
/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
752

Hello,

I get a compilation error at this line. A possible fix is here: https://reviews.llvm.org/D102050.