This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Add tosa.tile to linalg.generic lowering
ClosedPublic

Authored by rsuderman on Mar 22 2021, 2:43 PM.

Details

Summary

Tiling operations are generic operations with modified indexing. Updated to to
linalg lowerings to perform this lowering.

Diff Detail

Event Timeline

rsuderman created this revision.Mar 22 2021, 2:43 PM
rsuderman requested review of this revision.Mar 22 2021, 2:43 PM
silvas accepted this revision.Mar 22 2021, 4:43 PM

LG. I think there is a way to represent this as a broadcast + reshape which supposedly has some sort of advantage, but this looks fine for now.

@nicolasvasilache FYI.

This revision is now accepted and ready to land.Mar 22 2021, 4:43 PM
rsuderman updated this revision to Diff 332505.Mar 22 2021, 8:12 PM

Changed to a reshape-broadcast-reshape implementation.

silvas accepted this revision.Mar 23 2021, 10:39 AM
silvas added inline comments.
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
1084

"how far" doesn't make much sense to me. Perhaps "how many times"?

Updated comment.

This revision was landed with ongoing or failed builds.Mar 23 2021, 1:14 PM
This revision was automatically updated to reflect the committed changes.