[Mlir-commits] [mlir] [mlir][XeGPU] Add optional layout attribute to LoadGather StoreScatter ops (PR #163414)

Charitha Saumya llvmlistbot at llvm.org
Thu Oct 30 11:20:22 PDT 2025


================
@@ -843,7 +843,8 @@ def XeGPU_LoadGatherOp : XeGPU_Op<"load", [MemoryEffects<[MemRead]>]> {
       AnyTypeOf<[XeGPU_MaskType, I1]>:$mask, OptionalAttr<I64Attr>:$chunk_size,
       OptionalAttr<XeGPU_CacheHintAttr>:$l1_hint,
       OptionalAttr<XeGPU_CacheHintAttr>:$l2_hint,
-      OptionalAttr<XeGPU_CacheHintAttr>:$l3_hint);
+      OptionalAttr<XeGPU_CacheHintAttr>:$l3_hint,
+      OptionalAttr<DistributeLayoutAttr>:$layout);
----------------
charithaintc wrote:

nit: ideally this needs to be `xegpu::LayoutAttr`. `DistributedLayoutAttr` is derivative layout because it could either be pure LayoutAttr or SliceAttr. 

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


More information about the Mlir-commits mailing list