This is an archive of the discontinued LLVM Phabricator instance.

Allow !shape.size type operands in "shape.from_extents" op.
ClosedPublic

Authored by Jing on Feb 23 2021, 12:11 AM.

Details

Summary

This expands the op to support error propagation and also makes it symmetric with "shape.get_extent" op.

Diff Detail

Event Timeline

Jing created this revision.Feb 23 2021, 12:11 AM
Jing requested review of this revision.Feb 23 2021, 12:11 AM
silvas accepted this revision.Feb 24 2021, 11:02 AM
silvas added inline comments.
mlir/test/Dialect/Shape/canonicalize.mlir
174

add a snippet (here or in ops.mlir) that tests the new !shape.size operand types.

Jing updated this revision to Diff 326176.Feb 24 2021, 12:09 PM

Add a test that uses !shape.size type

Jing marked an inline comment as done.Feb 24 2021, 12:10 PM

Thanks! Could you help submit the patch?

This revision was not accepted when it landed; it landed in state Needs Review.Feb 24 2021, 2:50 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.