[Mlir-commits] [mlir] [MLIR][XeGPU][VectorToXeGPU] Add lowering from vector.gather/scatter to xegpu.load/store (PR #158024)
Adam Siemieniuk
llvmlistbot at llvm.org
Tue Sep 16 08:28:05 PDT 2025
================
@@ -97,6 +97,17 @@ static LogicalResult transferPreconditions(PatternRewriter &rewriter,
return success();
}
+// Common preconditions for the lowering of vector.gather and vector.scatter:
+// 1. Source is a memref.
+static LogicalResult gatherScatterPreconditions(PatternRewriter &rewriter,
----------------
adam-smnk wrote:
Could you also add negative test cases that cover preconditions?
Just a simple test to ensure matcher rejects what it's supposed to.
For example, see `@negative_gemm_transpose_a` in `contract-to-xegpu.mlir`.
https://github.com/llvm/llvm-project/pull/158024
More information about the Mlir-commits
mailing list