[mlir] Convert memref_reshape to memref_reinterpret_cast.
authorAlexander Belyaev <pifon@google.com>
Wed, 28 Oct 2020 20:08:58 +0000 (21:08 +0100)
committerAlexander Belyaev <pifon@google.com>
Wed, 28 Oct 2020 20:15:32 +0000 (21:15 +0100)
commit7a996027b9847d9808cb5567e8a4553989e1dbcf
treed19427d8479a843d3f599868771e91bef7e07024
parent0b2b50a5d2893af47466f191771d20c9993a1624
[mlir] Convert memref_reshape to memref_reinterpret_cast.

Differential Revision: https://reviews.llvm.org/D90235
13 files changed:
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/include/mlir/Dialect/StandardOps/Transforms/Passes.h
mlir/lib/Conversion/StandardToLLVM/CMakeLists.txt
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/lib/Dialect/StandardOps/Transforms/CMakeLists.txt
mlir/lib/Dialect/StandardOps/Transforms/ExpandMemRefReshape.cpp [new file with mode: 0644]
mlir/test/Dialect/Standard/expand-memref-reshape.mlir [new file with mode: 0644]
mlir/test/Dialect/Standard/invalid.mlir
mlir/test/lib/Transforms/CMakeLists.txt
mlir/test/lib/Transforms/TestExpandMemRefReshape.cpp [new file with mode: 0644]
mlir/test/mlir-cpu-runner/memref_reshape.mlir [new file with mode: 0644]
mlir/tools/mlir-opt/mlir-opt.cpp