[mlir] Add `tensor.reshape`.
authorAlexander Belyaev <pifon@google.com>
Thu, 22 Apr 2021 12:50:13 +0000 (14:50 +0200)
committerAlexander Belyaev <pifon@google.com>
Thu, 22 Apr 2021 12:53:23 +0000 (14:53 +0200)
commit0724911d2a7b10ca4b8f8bbecd754143a2bed3db
treef536f540acde4c31a4b52fe88d73f877f7307e4f
parentaafb6d81cf255f709359759dbe2a78352fa0e159
[mlir] Add `tensor.reshape`.

This operation a counterpart of `memref.reshape`.

RFC [Reshape Ops Restructuring](https://llvm.discourse.group/t/rfc-reshape-ops-restructuring/3310)

Differential Revision: https://reviews.llvm.org/D100971
mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
mlir/test/Dialect/Tensor/invalid.mlir
mlir/test/Dialect/Tensor/ops.mlir