[Mlir-commits] [mlir] [MLIR][XeGPU][VectorToXeGPU] Fix transfer_read/write cases with non-contiguous memrefs (PR #158126)
Dmitry Chigarev
llvmlistbot at llvm.org
Thu Sep 11 11:01:10 PDT 2025
================
@@ -256,8 +266,8 @@ static SmallVector<Value> computeStrides(VectorTransferOpInterface xferOp,
// %orig_offset = %block_id_y * 4x2x6x32 // consider using affine map
// %offsets = orig_offset + local_offsets
static Value computeOffsets(VectorTransferOpInterface xferOp,
- PatternRewriter &rewriter,
- ArrayRef<Value> strides) {
+ PatternRewriter &rewriter, ArrayRef<Value> strides,
+ Value baseOffset) {
----------------
dchigarev wrote:
`computeOffsets` now takes a `baseOffset` obtained from `memref.extract_strided_metadata` in `computeMemrefMeta` (ex `computeStrides`)
https://github.com/llvm/llvm-project/pull/158126
More information about the Mlir-commits
mailing list