[MLIR][Shape] Realize `shape` to `std` lowering with declarative patterns
authorFrederik Gossen <frgossen@google.com>
Thu, 18 Jun 2020 07:51:03 +0000 (07:51 +0000)
committerFrederik Gossen <frgossen@google.com>
Thu, 18 Jun 2020 07:53:44 +0000 (07:53 +0000)
commiteaf49130a9bae3f83df6244ae90319f455b1571b
tree7bcd2e4343beb18ede845cc4042349add5b0ef50
parent158e734af19d6be206f80c213a028b569c441b24
[MLIR][Shape] Realize `shape` to `std` lowering with declarative patterns

Setup declarative rewrite rules to lower the `shape` dialect to the `std`
dialect with two exemplary rules for `from/to_extent_tensor`.

Differential Revision: https://reviews.llvm.org/D82022
mlir/lib/Conversion/ShapeToStandard/CMakeLists.txt
mlir/lib/Conversion/ShapeToStandard/ShapeToStandard.cpp
mlir/lib/Conversion/ShapeToStandard/ShapeToStandardPatterns.td [new file with mode: 0644]