[Mlir-commits] [mlir] [mlir][xegpu] Add utilities for `xegpu::sliceAttr` (PR #157970)
Charitha Saumya
llvmlistbot at llvm.org
Wed Sep 17 09:17:38 PDT 2025
================
@@ -231,7 +231,55 @@ def DistributeLayoutAttr: AttrInterface<"DistributeLayoutAttr"> {
multiple blocks according to round-robin distribution rules.}],
"FailureOr<SmallVector<SmallVector<Value>>>",
"getOffsets",
- (ins "OpBuilder &": $builder, "Location":$loc, "Value":$linearId, "ArrayRef<int64_t>":$shape)>
+ (ins "OpBuilder &": $builder, "Location":$loc, "Value":$linearId, "ArrayRef<int64_t>":$shape)>,
+ InterfaceMethod</*desc=*/[{Check if this layout can be achieved by applying a transpose
+ to some other layout according to given permutation of (0...n-1).}],
+ /*retTy=*/"bool",
+ /*methodName=*/"isTransposeOf",
+ /*args=*/(ins "const xegpu::DistributeLayoutAttr&": $other, "ArrayRef<int64_t>": $perm),
+ /*methodBody=*/[{
----------------
charithaintc wrote:
Hi @adam-smnk , please ignore this PR. changes are already there with #155517
https://github.com/llvm/llvm-project/pull/157970
More information about the Mlir-commits
mailing list