Stephan Herhut
6d10d317d8
[MLIR][Shape] Support transforming shape.num_elements on tensors
...
The current transformation to shape.reduce does not support tensor values.
This adds the required changes to make that work, including fixing the builder
for shape.reduce.
Differential Revision: https://reviews.llvm.org/D84744
2020-07-28 14:13:06 +02:00
Frederik Gossen
783a351785
[MLIR][Shape] Allow shape.mul to operate in indices
...
Differential Revision: https://reviews.llvm.org/D84437
2020-07-24 13:25:40 +00:00
Alexander Belyaev
7a9258e9bb
[mlir][shape] Add a func to populate ShapeToShape patterns.
...
Differential Revision: https://reviews.llvm.org/D81933
2020-06-16 17:52:34 +02:00
Alexander Belyaev
250dcf61ae
Revert "Revert "[MLIR] Lower shape.num_elements -> shape.reduce.""
...
This reverts commit a25f5cd70cef6f74eed45a61c14abca98cd416e4.
Now the build with `-DBUILD_SHARED_LIBS=ON` is fixed.
2020-06-08 12:19:54 +02:00
Mehdi Amini
a25f5cd70c
Revert "[MLIR] Lower shape.num_elements -> shape.reduce."
...
This reverts commit e80617df894b00d12d5afb9d819e6ff9141cc29e.
This broke the build with `-DBUILD_SHARED_LIBS=ON`
2020-06-07 19:32:36 +00:00
Alexander Belyaev
e80617df89
[MLIR] Lower shape.num_elements -> shape.reduce.
...
Differential Revision: https://reviews.llvm.org/D81279
2020-06-07 16:39:21 +02:00