This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Shape] Add custom assembly format for `shape.any`
ClosedPublic

Authored by frgossen on Aug 5 2020, 7:05 AM.

Details

Summary

Add custom assembly format for shape.any with variadic operands.

Diff Detail

Event Timeline

frgossen created this revision.Aug 5 2020, 7:05 AM
Herald added a reviewer: silvas. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
frgossen requested review of this revision.Aug 5 2020, 7:05 AM
pifon2a added inline comments.Aug 5 2020, 7:47 AM
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
584

can it be done with assemblyFormat?

frgossen updated this revision to Diff 283286.Aug 5 2020, 10:11 AM

Use assembly format

frgossen added inline comments.Aug 5 2020, 10:13 AM
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
584

Did not expect that assemblyFormat could handle variadic inputs. Thanks!

frgossen marked an inline comment as done.Aug 5 2020, 10:13 AM
pifon2a accepted this revision.Aug 5 2020, 10:54 AM
herhut accepted this revision.Aug 7 2020, 2:43 AM

Thanks for cleaning this up!

jpienaar accepted this revision.Aug 13 2020, 10:36 AM

Thanks!

This revision is now accepted and ready to land.Aug 13 2020, 10:36 AM
This revision was automatically updated to reflect the committed changes.