[MLIR][Shape] Lower `shape.shape_of` to standard dialect
authorFrederik Gossen <frgossen@google.com>
Fri, 19 Jun 2020 15:09:36 +0000 (15:09 +0000)
committerFrederik Gossen <frgossen@google.com>
Fri, 19 Jun 2020 15:21:13 +0000 (15:21 +0000)
commitac3e5c4d93fbe7fb2db3c745c721aff41cc1b851
tree65f664f5622802847559908f2cd5f9f38369dee4
parenta3adfb400ef7bd0c3152184d41283d35aa617be2
[MLIR][Shape] Lower `shape.shape_of` to standard dialect

Lower `shape.shape_of` to standard dialect.
This lowering supports statically and dynamically shaped tensors.
Support for unranked tensors will be added as part of the lowering to `scf`.

Differential Revision: https://reviews.llvm.org/D82098
mlir/lib/Conversion/ShapeToStandard/ShapeToStandard.cpp
mlir/test/Conversion/ShapeToStandard/shape-to-standard.mlir