[Mlir-commits] [mlir] [mlir][XeGPU][VectorToXeGPU] Propagate vector layouts to xegpu ops (PR #163071)

Artem Kroviakov llvmlistbot at llvm.org
Tue Oct 14 10:37:51 PDT 2025


================
@@ -616,16 +636,34 @@ struct GatherLowering : public OpRewritePattern<vector::GatherOp> {
         computeOffsets(rewriter, gatherOp, meta.first, meta.second);
     Value flatMemref = memrefToIndexPtr(gatherOp, rewriter);
 
+    auto layoutRes = xegpu::getDistributeLayoutAttr(gatherOp.getResult());
+    auto layoutIndices =
+        xegpu::getDistributeLayoutAttr(gatherOp.getIndicesMutable());
----------------
akroviakov wrote:

Any reason to use mutable getters?

https://github.com/llvm/llvm-project/pull/163071


More information about the Mlir-commits mailing list