Add the two conversion operations index_to_size and size_to_index to the
shape dialect.
This facilitates the conversion of index types between the shape and the
standard dialect.
Depends On D80278
Paths
| Differential D80280
[MLIR] Add `index_to_size` and `size_to_index` to the shape dialect ClosedPublic Authored by frgossen on May 20 2020, 1:39 AM.
Details Summary Add the two conversion operations index_to_size and size_to_index to the Depends On D80278
Diff Detail
Event Timelinefrgossen added a child revision: D80281: [MLIR] Add `num_elements` to the shape dialect.May 20 2020, 2:08 AM Comment Actions Looks good modulo small changes.
This revision is now accepted and ready to land.May 20 2020, 4:25 PM
Closed by commit rG6594d54571ee: [MLIR] Add `index_to_size` and `size_to_index` to the shape dialect (authored by frgossen). · Explain WhyMay 28 2020, 7:04 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 266866 mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
mlir/lib/Dialect/Shape/IR/Shape.cpp
mlir/test/Dialect/Shape/canonicalize.mlir
|
This is already captured in the arguments and results below (and in generated doc for the ops).