HomePhabricator

[MLIR] Introduce inter-procedural memref layout normalization

Authored by avarmapml on Thu, Jul 30, 5:36 AM.

Description

[MLIR] Introduce inter-procedural memref layout normalization

  • Introduces a pass that normalizes the affine layout maps to the identity layout map both within and across functions by rewriting function arguments and call operands where necessary.
  • Memref normalization is now implemented entirely in the module pass '-normalize-memrefs' and the limited intra-procedural version has been removed from '-simplify-affine-structures'.
  • Run using -normalize-memrefs.
  • Return ops are not handled and would be handled in the subsequent revisions.

Signed-off-by: Abhishek Varma <abhishek.varma@polymagelabs.com>

Differential Revision: https://reviews.llvm.org/D84490

Details

Committed
bondhugulaThu, Jul 30, 5:42 AM
Differential Revision
D84490: [MLIR] Introduce inter-procedural memref layout normalization
Parents
rGe12db3ed997d: [mlir] Allow index as element type of memref
Branches
Unknown
Tags
Unknown