[Mlir-commits] [mlir] [memref] Support non-scalar copies in `reinterpret_cast` elision (PR #203873)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Wed Jul 8 03:31:24 PDT 2026
================
----------------
banach-space wrote:
```suggestion
/// Supports ranked, static-shape, rank-preserving reinterpret_casts from
/// identity-layout sources. In addition:
/// * Non-scalar results must have static offsets, static result strides
/// identical to the source identity strides, and exactly one non-unit source
/// dimension collapsed to unit size
/// Scalar-shaped results may have arbitrary result strides (i.e. for scalars, strides are effectively irrelevant).
///
/// Returns nullopt for unsupported
/// reinterpret_casts.
```
https://github.com/llvm/llvm-project/pull/203873
More information about the Mlir-commits
mailing list