[Mlir-commits] [mlir] [mlir][xegpu] Allow `xegpu.insert_prefetch` to override Load op's tile size. (PR #215419)

Jianhui Li llvmlistbot at llvm.org
Tue Aug 11 17:00:16 PDT 2026


================
@@ -156,18 +157,29 @@ def InsertPrefetchOp : Op<Transform_Dialect, "xegpu.insert_prefetch", [
     The load op must reside within the `scf.for` loop. Number of prefetch steps
     is set by the `nb_prefetch` argument (default value is 1). Returns a handle
     to the created `xegpu.create_nd_desc` op.
+
+    By default the prefetched tile shape is taken from the load op's tensor
----------------
Jianhui-Li wrote:

Adding optional argument seems fine to me. But I think it is better to develop a prefetch pass, so that it can be used by other compilers not just light house usage. 

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


More information about the Mlir-commits mailing list