llvm-project/mlir/lib/Dialect/StandardOps
Alex Zinenko 0c782c214b [mlir] Add folding of memref_cast inside another memref_cast
There exists a generic folding facility that folds the operand of a memref_cast
into users of memref_cast that support this. However, it was not used for the
memref_cast itself. Fix it to enable elimination of memref_cast chains such as

  %1 = memref_cast %0 : A to B
  %2 = memref_cast %1 : B to A

that is achieved by combining the folding with the existing "A to A" cast
elimination.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D90910
2020-11-06 10:42:40 +01:00
..
EDSC [mlir] Remove EDSC BlockBuilder, BlockHandle and related functionality 2020-06-19 09:37:44 +02:00
IR [mlir] Add folding of memref_cast inside another memref_cast 2020-11-06 10:42:40 +01:00
Transforms [mlir][std] Add SignedCeilDivIOp and SignedFloorDivIOp with std to std lowering triggered by -std-expand-divs option. The new operations support positive/negative nominator/denominator numbers. 2020-11-04 14:16:23 -05:00
CMakeLists.txt Remove `Ops` suffix from dialect library names 2020-09-30 18:00:44 -07:00