This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Affine] Add test for non-hyperrectangular loop tiling
ClosedPublic

Authored by kumasento on Jul 24 2020, 7:07 AM.

Details

Summary

This diff provides a concrete test case for the error that will be raised when the iteration space is non hyper-rectangular.

The corresponding emission method for this error message has been changed as well.

Diff Detail

Event Timeline

kumasento created this revision.Jul 24 2020, 7:07 AM
kumasento updated this revision to Diff 280453.Jul 24 2020, 7:09 AM

Reverted the accidental change in loop-tiling.mlir

bondhugula accepted this revision.Jul 24 2020, 9:28 AM
bondhugula added a subscriber: bondhugula.

Thanks very much for improving this.

mlir/test/Dialect/Affine/loop-tiling-invalid.mlir
1 ↗(On Diff #280453)

You won't need -allow-unregistered-dialect.

1 ↗(On Diff #280453)

This file can be named loop-tiling-unsupported.mlir. There's nothing invalid here.

16 ↗(On Diff #280453)

Missing line break at the end.

This revision is now accepted and ready to land.Jul 24 2020, 9:28 AM

Fixed issues about cmd, file naming, and missing NL.

Thank you very much @bondhugula for your comments! I've updated this diff accordingly :)

bondhugula accepted this revision.Jul 26 2020, 12:46 AM

Thanks!

Let me know if you'd like me to commit this for you.

Let me know if you'd like me to commit this for you.

Hi @bondhugula Thanks! That would be great :)

bondhugula added inline comments.Jul 26 2020, 7:45 AM
mlir/test/Dialect/Affine/loop-tiling-unsupported.mlir
4

You don't have a -split-input-file as an option but you have this splitter. I'll fix this before committing.

This revision was automatically updated to reflect the committed changes.