[PATCH] D80394: Add `shape.get_extent`.
Sean Silva via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 21 11:54:00 PDT 2020
silvas created this revision.
silvas added reviewers: jpienaar, herhut, tpopp, frgossen.
Herald added subscribers: llvm-commits, jurahul, Kayjukh, grosul1, Joonsoo, stephenneuendorffer, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, rriddle, mehdi_amini.
Herald added 1 blocking reviewer(s): jpienaar.
Herald added a project: LLVM.
silvas updated this revision to Diff 265558.
silvas added a comment.
Update commit message.
This op extracts an extent from a shape.
This also is the first op which constant folds to shape.const_size,
which revealed that sahpe.const_size needs a folder (ConstantLike ops
seem to always need folders for the constant folding infra to work).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80394
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: D80394.265558.patch
Type: text/x-patch
Size: 4566 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200521/a5327b45/attachment.bin>
More information about the llvm-commits
mailing list