[shape] More constant folding
authorSean Silva <silvasean@google.com>
Fri, 24 Apr 2020 22:54:04 +0000 (15:54 -0700)
committerSean Silva <silvasean@google.com>
Fri, 24 Apr 2020 23:10:19 +0000 (16:10 -0700)
commit5fff169daa11f3e574fe43f93431d36593905cb7
tree298f19504e5449631f4b8ceb2449b1f126ae45a9
parent6a9edce25778e6c131914ab2e6c3f8528785a8df
[shape] More constant folding

- shape split_at
- shape.broadcast
- shape.concat
- shape.to_extent_tensor

Differential Revision: https://reviews.llvm.org/D78821
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
mlir/lib/Dialect/Shape/CMakeLists.txt
mlir/lib/Dialect/Shape/IR/Shape.cpp
mlir/test/Dialect/Shape/canonicalize.mlir