This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Add ConvolutionOpInterface methods for iterators
AbandonedPublic

Authored by antiagainst on Oct 13 2021, 8:14 AM.

Details

Summary

This commit adds a few methods to ConvolutionOpInterface to query
the iterator indices for different flavors of dimensions. These
methods are used to implement convolution vectorization patterns
based on ConvolutionOpInterface.

This is based on Mahesh's https://reviews.llvm.org/D110031, with
modifications to use parallel/window/reduction instead of ML/image
specific terminologies.

Co-authored-by: Mahesh Ravishankar <ravishankarm@google.com>

Diff Detail

Event Timeline

antiagainst created this revision.Oct 13 2021, 8:14 AM
antiagainst requested review of this revision.Oct 13 2021, 8:14 AM
nicolasvasilache requested changes to this revision.Oct 13 2021, 1:55 PM

I still view these as undesirable ML leaking abstractions into MLIR.
Can you submit a PR with both this and the Conv vectorization in a single PR ?
I'll rebase on top and experiment a bit.

This revision now requires changes to proceed.Oct 13 2021, 1:55 PM
antiagainst abandoned this revision.Nov 2 2021, 7:07 AM