[Mlir-commits] [mlir] Add examples for reinterpret_cast and subview operators to show their behavior in relation to their input memref underlying memory and view (PR #135244)
Matthias Springer
llvmlistbot at llvm.org
Thu Apr 24 11:24:11 PDT 2025
================
@@ -1363,6 +1363,58 @@ def MemRef_ReinterpretCastOp
%dst.sizes = %sizes
%dst.strides = %strides
```
+
+ Example 2:
+
+ Consecutive `reinterpret_cast` operations on memref's with static dimensions.
+
+ We distinguish between *underlying memory* — the sequence of elements as
+ they appear in the contiguous memory of the memref — and the *view*, which refers to
----------------
matthias-springer wrote:
imo, `view` is not a good name because there is also a `memref.view` operation. Can we use the term `strided memref` instead?
https://github.com/llvm/llvm-project/pull/135244
More information about the Mlir-commits
mailing list