This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Implement tiling on tensors
ClosedPublic

Authored by nicolasvasilache on Oct 2 2020, 5:51 AM.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 2 2020, 5:51 AM
nicolasvasilache requested review of this revision.Oct 2 2020, 5:51 AM
pifon2a accepted this revision.Oct 3 2020, 4:17 AM
pifon2a added inline comments.
mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
101

nit: maybe just getShape?

mlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
402

Please, remove this TODO or add more explanation to it.

407–410

Do you need shapeValues variable?

auto tiledOperands =
           makeTiledShapes(b, loc, op, operands, shapeSizesToLoopsMap,
                           interchangedIvs, tileSizes, allShapeSizes);
mlir/test/Dialect/Linalg/tile-tensors.mlir
1

why do you need to disable it?

4–28

nit: if you capture tensor<?x?xf32> as [[TY:.*]], the whole thing will become a bit more readable.

This revision is now accepted and ready to land.Oct 3 2020, 4:17 AM
nicolasvasilache marked 4 inline comments as done.Oct 6 2020, 7:48 AM

Address review

This revision was landed with ongoing or failed builds.Oct 6 2020, 10:53 AM
This revision was automatically updated to reflect the committed changes.