This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Shape] Make cstr_eq more like cstr_broadcastable
ClosedPublic

Authored by bkramer on Mar 1 2021, 11:56 AM.

Details

Summary

This includes allowing extents and not just shapes.

Diff Detail

Event Timeline

bkramer created this revision.Mar 1 2021, 11:56 AM
bkramer requested review of this revision.Mar 1 2021, 11:56 AM
jpienaar accepted this revision.Mar 2 2021, 8:43 AM
jpienaar added inline comments.
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
805

DeclareOpInterfaceMethods ?

This revision is now accepted and ready to land.Mar 2 2021, 8:43 AM
jpienaar added inline comments.Mar 2 2021, 8:43 AM
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
805

Mmm, this one is weird: is witness considered a buildable type? Then this should be generated as it is a fixed output type.

tpopp accepted this revision.Mar 3 2021, 5:17 AM
bkramer marked 2 inline comments as done.Mar 3 2021, 7:19 AM
bkramer added inline comments.
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
805

The problem is that tblgen does not generate the methods for ops with variadic operands. I have no idea why, see Operator::populateTypeInferenceInfo.

This revision was automatically updated to reflect the committed changes.
bkramer marked an inline comment as done.