[Mlir-commits] [mlir] [MLIR][XeGPU] Matrix load/store subgroup distribution (PR #165008)
Artem Kroviakov
llvmlistbot at llvm.org
Tue Oct 28 09:11:58 PDT 2025
================
@@ -223,18 +233,18 @@ def DistributeLayoutAttr: AttrInterface<"DistributeLayoutAttr"> {
InterfaceMethod<"Derive a new layout by dropping InstData",
"xegpu::DistributeLayoutAttr",
"dropInstData">,
- InterfaceMethod<[{Delinearizes a linear subgroup ID into its multidimensional
- indices based on the effective subgroup layout.}],
+ InterfaceMethod<[{Delinearizes a linear ID into its multidimensional
+ indices based on the effective `level` layout.}],
"FailureOr<SmallVector<Value>>",
- "delinearizeSubgroupId",
- (ins "OpBuilder &": $builder, "Location":$loc, "Value":$linearId)>,
- InterfaceMethod<[{Generates instructions to compute multidimensional offsets for blocks
- assigned to a subgroup identified by linearId. The shape parameter
- represents the workgroup-level problem size. Each subgroup may access
+ "delinearizeId",
+ (ins "OpBuilder &": $builder, "Location":$loc, "Value":$linearId, "xegpu::DistributionLevel": $level)>,
+ InterfaceMethod<[{Generates instructions to compute multidimensional offsets for dist units
+ assigned to a `level` identified by linearId. The shape parameter
+ represents the higher-level problem size. Each `level` may access
multiple blocks according to round-robin distribution rules.}],
"FailureOr<SmallVector<SmallVector<Value>>>",
- "getOffsets",
- (ins "OpBuilder &": $builder, "Location":$loc, "Value":$linearId, "ArrayRef<int64_t>":$shape)>,
+ "computeDistributedCoords",
----------------
akroviakov wrote:
Renamed to a common `offsets` terminology.
https://github.com/llvm/llvm-project/pull/165008
More information about the Mlir-commits
mailing list