This patch adds a pattern to simplify
base, offset, sizes, strides = extract_strided_metadata( reinterpret_cast(src, srcOffset, srcSizes, srcStrides))
Into
base, baseOffset, ... = extract_strided_metadata(src) offset = srcOffset sizes = srcSizes strides = srcStrides
Note: Reinterpret_cast with unranked sources are not simplified since they cannot feed extract_strided_metadata operations.
Note2: This patch is part of a series that replaces the lowering of view like operations in MemRefToLLVM with composable patterns.
Note3: This patch depends on other patches in that series but only for the output of the tests.
This feels very fishy .. I would expect just srcOffset here.
Computing the sum is a "subview"-like semantics, reinterpret_cast should just specify the offset UIAM