[mlir][shape] Add dim op
authorJacques Pienaar <jpienaar@google.com>
Fri, 12 Aug 2022 18:02:07 +0000 (11:02 -0700)
committerJacques Pienaar <jpienaar@google.com>
Fri, 12 Aug 2022 18:02:08 +0000 (11:02 -0700)
commit2f025e0e78fd57923aceb49c7d4aeb3e5e2d34bf
treebf6d76b68802d3d49a26570ac299d9a1cb6f428d
parent42ee0d8c16f7052c3bc8434325868f48a501baf2
[mlir][shape] Add dim op

Convenience op that allows for simple expression of common crossing of
value/shape divide.

Differential Revision: https://reviews.llvm.org/D131497
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
mlir/lib/Conversion/ShapeToStandard/ShapeToStandard.cpp
mlir/lib/Dialect/Shape/IR/Shape.cpp
mlir/test/Conversion/ShapeToStandard/shape-to-standard.mlir
mlir/test/Dialect/Shape/ops.mlir