[all-commits] [llvm/llvm-project] cf42b7: [mlir][shape] Add `shape.get_extent`.
Sean Silva via All-commits
all-commits at lists.llvm.org
Tue May 26 17:06:52 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: cf42b704391c44e84485dd2547ae006196998266
https://github.com/llvm/llvm-project/commit/cf42b704391c44e84485dd2547ae006196998266
Author: Sean Silva <silvasean at google.com>
Date: 2020-05-26 (Tue, 26 May 2020)
Changed paths:
M mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
M mlir/lib/Dialect/Shape/IR/Shape.cpp
M mlir/test/Dialect/Shape/canonicalize.mlir
Log Message:
-----------
[mlir][shape] Add `shape.get_extent`.
Summary:
This op extracts an extent from a shape.
This also is the first op which constant folds to shape.const_size,
which revealed that shape.const_size needs a folder (ConstantLike ops
seem to always need folders for the constant folding infra to work).
Differential Revision: https://reviews.llvm.org/D80394
More information about the All-commits
mailing list