[PATCH] D80280: [MLIR] Add `index_to_size` and `size_to_index` to the shape dialect

Frederik Gossen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 20 02:07:14 PDT 2020


frgossen created this revision.
Herald added subscribers: llvm-commits, jurahul, Kayjukh, grosul1, Joonsoo, stephenneuendorffer, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, rriddle, mehdi_amini, arphaman.
Herald added a reviewer: jpienaar.
Herald added a reviewer: silvas.
Herald added a project: LLVM.
frgossen updated this revision to Diff 265167.
frgossen added a comment.

Simplify folding


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 <https://reviews.llvm.org/D80278>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80280

Files:
  mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
  mlir/lib/Dialect/Shape/IR/Shape.cpp
  mlir/test/Dialect/Shape/canonicalize.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80280.265167.patch
Type: text/x-patch
Size: 6602 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200520/e8255c51/attachment.bin>


More information about the llvm-commits mailing list