This is an archive of the discontinued LLVM Phabricator instance.

[mlir][shape] Update meet to handle all size & shape types
ClosedPublic

Authored by jpienaar on Jul 31 2022, 9:38 PM.

Details

Summary

Also tighten up return type inference & compatibility functions.

Diff Detail

Event Timeline

jpienaar created this revision.Jul 31 2022, 9:38 PM
jpienaar requested review of this revision.Jul 31 2022, 9:38 PM
yaochengji added inline comments.Aug 7 2022, 8:21 AM
mlir/lib/Dialect/Shape/IR/Shape.cpp
1318

isExtentTensorType could be reused here.

1347

SizeType, IndexType, ShapeType have already been checked, so better to use isExtentTensorType instead of isShapeType.

jpienaar updated this revision to Diff 450665.Aug 7 2022, 1:00 PM
jpienaar marked 2 inline comments as done.

Use isExtentTensorType helper.

yaochengji accepted this revision.Aug 8 2022, 10:58 PM

LGTM to me after the CI passes.

This revision is now accepted and ready to land.Aug 8 2022, 10:58 PM
This revision was landed with ongoing or failed builds.Aug 10 2022, 5:08 AM
This revision was automatically updated to reflect the committed changes.