- Remove some unused types from the Shape dialect
- Fix from_extent_tensor to only allow 1D index tensors
- Fix assuming_yield to only allow shape.assuming as the parent op.
- Fix some documentation typos and reword some things.
Details
Details
- Reviewers
jpienaar silvas - Commits
- rGb0d02b698b94: [MLIR] Minor cleanup for Shape dialect.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/Dialect/Shape/invalid.mlir | ||
---|---|---|
160 ↗ | (On Diff #310396) | we generally don't explicitly test things verified by ODS predicates |
mlir/test/Dialect/Shape/invalid.mlir | ||
---|---|---|
160 ↗ | (On Diff #310396) | Makes sense. I'll remove this test. |
Comment Actions
Thanks. Yes the element type we have no tests for yet and can reintroduce it when we do.
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td | ||
---|---|---|
333 | While here, the first one is a must, the second is a may. E.g., for the first one where we need to represent errors we can't use index, but the second one we could use size still. I think in the code we already allow this to allow local folding without needing to do full propagation. |
Comment Actions
Address feedback
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td | ||
---|---|---|
333 | Done. I also added similar language for shape.add as well. |
While here, the first one is a must, the second is a may. E.g., for the first one where we need to represent errors we can't use index, but the second one we could use size still. I think in the code we already allow this to allow local folding without needing to do full propagation.