Steps for normalizing dynamic memrefs for tiled layout map
- Check if original map is tiled layout. Only tiled layout is supported.
- Create normalized memrefType. Dimensions that include dynamic dimensions in the map output will be dynamic dimensions.
- Create new maps to calculate each dimension size of new memref. In tiled layout, the dimension size can be calculated by replacing "floordiv <tile size>" with "ceildiv <tile size>" and "mod <tile size>" with "<tile size>".
- Create AffineApplyOp to apply the new maps. The output of AffineApplyOp is dynamicSizes for new AllocOp.
- Add the new dynamic sizes in new AllocOp.
This patch also set MemRefsNormalizable trant in CastOp and DimOp since
they used with dynamic memrefs.