[Mlir-commits] [mlir] [MLIR][XeGPU] Update XeGPU create_tdesc, update_offset, load, store and prefetch. (PR #154653)

Artem Kroviakov llvmlistbot at llvm.org
Thu Aug 21 05:34:25 PDT 2025


akroviakov wrote:

Btw, what is the reason to demand vector offsets in the op definition? For SIMT distribution, given a vector of SIMD offsets, we would need to extract an element from 1D vector at lane idx, to my understanding. [`vector.extract`](https://mlir.llvm.org/docs/Dialects/Vector/#vectorextract-vectorextractop) says:

> the result degenerates to a scalar element.

Why do we need to make extra steps for wrapping `vector.extract` result into a vector and then get the scalar back via [materializations](https://github.com/llvm/llvm-project/pull/154556), if we could allow scalar elements in the first place?
Do we prohibit users from supplying a single-element offset/mask vector at WG level code somehow? If not, then how is it different from passing a scalar?

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


More information about the Mlir-commits mailing list