[all-commits] [llvm/llvm-project] d1ad26: [shape] Basic constant folding.
Sean Silva via All-commits
all-commits at lists.llvm.org
Fri Apr 24 15:49:53 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d1ad267a56d33c4a6556c2947c8138123cefc08d
https://github.com/llvm/llvm-project/commit/d1ad267a56d33c4a6556c2947c8138123cefc08d
Author: Sean Silva <silvasean at google.com>
Date: 2020-04-24 (Fri, 24 Apr 2020)
Changed paths:
M mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
M mlir/lib/Dialect/Shape/IR/Shape.cpp
A mlir/test/Dialect/Shape/canonicalize.mlir
M mlir/test/Dialect/Shape/ops.mlir
Log Message:
-----------
[shape] Basic constant folding.
- Implement a first constant fold for shape.shape_of (more ops coming in subsequent patches)
- Implement the right builder interfaces for ShapeType and other types
- Splits shape.constant into shape.const_size and shape.const_shape which plays better with dyn_cast and building vs one polymorphic op.
Also, fix the RUN line in ops.mlir to properly verify round-tripping.
More information about the All-commits
mailing list