[Mlir-commits] [mlir] [MLIR][XeGPU] Add distribution pattern for xegpu.load & store for sg to wi pass (PR #181917)

Charitha Saumya llvmlistbot at llvm.org
Fri Feb 20 13:25:11 PST 2026


================
@@ -154,6 +154,120 @@ gpu.func @prefetch_nd() {
   gpu.return
 }
 
+// CHECK-LABEL: gpu.func @scatter_load_chunksize
+// CHECK: %[[OFFSET:.*]] = arith.constant dense<12> : vector<1xindex>
+// CHECK: %[[MASK:.*]] = arith.constant dense<true> : vector<1xi1>
+// CHECK: %[[LOAD:.*]] = xegpu.load %arg0[%[[OFFSET]]], %[[MASK]] <{chunk_size = 8 : i64}>
+// CHECK-SAME: : memref<256xf16>, vector<1xindex>, vector<1xi1> -> vector<8xf16>
+// CHECK: %[[CAST:.*]] = vector.shape_cast %[[LOAD]] : vector<8xf16> to vector<1x8xf16>
+gpu.func @scatter_load_chunksize(%src: memref<256xf16>) {
----------------
charithaintc wrote:

for tests, please make sure to have the same or similar tests from current tests. 

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


More information about the Mlir-commits mailing list