[MLIR] Shape to standard dialect lowering
authorFrederik Gossen <frgossen@google.com>
Wed, 3 Jun 2020 16:14:42 +0000 (16:14 +0000)
committerFrederik Gossen <frgossen@google.com>
Wed, 3 Jun 2020 16:17:03 +0000 (16:17 +0000)
commit3713314bfae3dc9a793c152e8a698a2ca1444f6c
tree80c45e60d3f8d20e23e10fed43e03ede3d122dac
parent62cfa3a0b5d20e6d0d5abe95412ab271d934083c
[MLIR] Shape to standard dialect lowering

Add a new pass to lower operations from the `shape` to the `std` dialect.
The conversion applies only to the `size_to_index` and `index_to_size`
operations and affected types.
Other patterns will be added as needed.

Differential Revision: https://reviews.llvm.org/D81091
mlir/include/mlir/Conversion/Passes.td
mlir/include/mlir/Conversion/ShapeToStandard/ShapeToStandard.h [new file with mode: 0644]
mlir/include/mlir/InitAllPasses.h
mlir/lib/Conversion/CMakeLists.txt
mlir/lib/Conversion/ShapeToStandard/CMakeLists.txt [new file with mode: 0644]
mlir/lib/Conversion/ShapeToStandard/ShapeToStandard.cpp [new file with mode: 0644]
mlir/test/Conversion/ShapeToStandard/shape-to-standard.mlir [new file with mode: 0644]