This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Shape] Allow `shape.reduce` to operate on extent tensors
ClosedPublic

Authored by frgossen on Jul 16 2020, 5:14 AM.

Details

Summary

Allow shape.reduce to take both shape.shape and tensor<?xindex> as an
argument.

Diff Detail

Event Timeline

frgossen created this revision.Jul 16 2020, 5:14 AM
Herald added a reviewer: silvas. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript

Nice, thank you!

mlir/test/Dialect/Shape/invalid.mlir
26

Does this still pass? You have changed the error messages. Also, please add another version where the expected type is IndexType.

frgossen updated this revision to Diff 278447.Jul 16 2020, 5:49 AM
frgossen marked 2 inline comments as done.

Correct test case

mlir/test/Dialect/Shape/invalid.mlir
26

It passes because it's a substring and that is enough.
You're right though, it should be changed.

herhut accepted this revision.Jul 16 2020, 6:14 AM

Thanks!

This revision was not accepted when it landed; it landed in state Needs Review.Jul 16 2020, 6:54 AM
This revision was automatically updated to reflect the committed changes.