[Mlir-commits] [mlir] [MLIR][XeGPU] Remove offsets from create_nd_tdesc & remove update_nd_offset, move offsets to load/store/prefetch ops (PR #193330)

Jianhui Li llvmlistbot at llvm.org
Thu Apr 23 14:46:56 PDT 2026


================
@@ -379,19 +362,11 @@ func.func @store_scatter_offset_wi_4(%src: !xegpu.tensor_desc<1x1xf32>) {
 func.func @load_gather_offset_wi_4(%src: !xegpu.tensor_desc<1x2xf16>) {
   %mask = arith.constant dense<1>: vector<1xi1>
   %offsets = arith.constant dense<[0]> : vector<1xindex>
-  // expected-error at +1 {{offsets not allowed}}
+  // expected-error at +1 {{tensor_desc source is not supported for scatter load}}
   %2 = xegpu.load %src[%offsets], %mask <{chunk_size = 2}> : !xegpu.tensor_desc<1x2xf16>, vector<1xindex>, vector<1xi1> -> vector<2xf16>
   return
 }
 
-// -----
-func.func @load_gather_offset_wi_3(%src: ui64) {
-  %mask = arith.constant dense<1>: vector<1xi1>
-  // expected-error at +1 {{Expects offsets}}
-  %2 = xegpu.load %src, %mask <{chunk_size = 2}> : ui64, vector<1xi1> -> vector<2xf16>
----------------
Jianhui-Li wrote:

why remove this?

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


More information about the Mlir-commits mailing list