These ops allow to extract offset/strides from memref as ssa values.
This patch only introduces ops definiton with basic printing/parsing tests.
Additional folding and llvm lowering will be introduced in separate patches.
Paths
| Differential D130849
[mlir][memref] Introduce memref.offset and memref.stride ops AbandonedPublic Authored by Hardcode84 on Jul 31 2022, 9:26 AM.
Details Summary These ops allow to extract offset/strides from memref as ssa values. This patch only introduces ops definiton with basic printing/parsing tests.
Diff Detail
Event TimelineComment Actions I think this has been attempted before. I dont know what the context of that discussion is. So I will leave that for more expreienced folks to weigh in on. Have some comments on the patch though.
This revision now requires changes to proceed.Aug 3 2022, 11:09 AM Hardcode84 added inline comments.
Revision Contents
Diff 450440 mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
mlir/test/Dialect/MemRef/invalid.mlir
mlir/test/Dialect/MemRef/ops.mlir
|
I would drop this line I don't think add much. Also here we have a single operand.