[MLIR] Give AffineStoreOp and AffineLoadOp Memory SideEffects.
authorTres Popp <tpopp@google.com>
Mon, 27 Apr 2020 14:40:00 +0000 (16:40 +0200)
committerTres Popp <tpopp@google.com>
Tue, 28 Apr 2020 13:45:25 +0000 (15:45 +0200)
commitf66c87637a524e237b34479bc8134c9d8ff243c2
tree843f1a0dc6b157b185715f97748d28ad6d936969
parentd0846b432c3040bb04484f30239858d6cff9fc0d
[MLIR] Give AffineStoreOp and AffineLoadOp Memory SideEffects.

Summary:
This change results in tests also being changed to prevent dead
affine.load operations from being folded away during rewrites.

Also move AffineStoreOp and AffineLoadOp to an ODS file.

Differential Revision: https://reviews.llvm.org/D78930
mlir/include/mlir/Dialect/Affine/IR/AffineOps.h
mlir/include/mlir/Dialect/Affine/IR/AffineOps.td
mlir/lib/Dialect/Affine/IR/AffineOps.cpp
mlir/test/Dialect/Affine/canonicalize.mlir
mlir/test/Dialect/Affine/loop-unswitch.mlir
mlir/test/Transforms/canonicalize.mlir
mlir/test/Transforms/loop-fusion-transformation.mlir
mlir/test/Transforms/memref-normalize.mlir