This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Shape] Allow `shape.add` to operate on indices
ClosedPublic

Authored by frgossen on Jul 23 2020, 9:44 AM.

Diff Detail

Event Timeline

frgossen created this revision.Jul 23 2020, 9:44 AM
Herald added a reviewer: silvas. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
pifon2a accepted this revision.Jul 23 2020, 9:52 AM
herhut accepted this revision.Jul 27 2020, 2:10 AM
jpienaar accepted this revision.Jul 27 2020, 9:15 AM
jpienaar added inline comments.
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
69

Why is attr-dict at the end? Mostly we have it before the ':' in std etc (else we have add %x, %y : index, index - > index {foo = "blah" })

mlir/test/Dialect/Shape/invalid.mlir
133

I removed this case from verification for now as it makes progressive lowering require cast ops still. We can discuss this more tomorrow.

This revision is now accepted and ready to land.Jul 27 2020, 9:15 AM
frgossen updated this revision to Diff 281495.Jul 29 2020, 3:22 AM
frgossen marked 2 inline comments as done.

Address comments

This revision was landed with ongoing or failed builds.Jul 29 2020, 4:05 AM
This revision was automatically updated to reflect the committed changes.