This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Allow specifiying zero-rank shaped type operands to linalg.indexed_generic ops.
ClosedPublic

Authored by hanchung on Feb 19 2020, 10:34 AM.

Details

Summary

Patch D74638 allows linalg.generic ops to use zero-rank shaped type operands,
this also can be applied to linalg.indexed_generic ops.

Diff Detail

Event Timeline

hanchung created this revision.Feb 19 2020, 10:34 AM
mravishankar accepted this revision.Feb 19 2020, 2:02 PM
mravishankar added inline comments.
mlir/test/Dialect/Linalg/loops.mlir
394

You could simplify the test by just having the operands as i32 element types

This revision is now accepted and ready to land.Feb 19 2020, 2:02 PM
hanchung updated this revision to Diff 245537.Feb 19 2020, 3:03 PM

Simplify the test by using i32 element types.

hanchung marked 2 inline comments as done.Feb 19 2020, 3:04 PM
hanchung added inline comments.
mlir/test/Dialect/Linalg/loops.mlir
394

Sounds good, let's use i32 types.

hanchung closed this revision.Feb 20 2020, 3:26 PM
hanchung marked an inline comment as done.