[Mlir-commits] [mlir] [MLIR][XeGPU] Refactor layout propagation utilities (PR #179016)
Jianhui Li
llvmlistbot at llvm.org
Tue Feb 3 21:52:33 PST 2026
================
@@ -155,26 +149,6 @@ DistributeLayoutAttr getDistributeLayoutAttr(const Value value);
/// found, it will check the operand itself and its defining op.
DistributeLayoutAttr getDistributeLayoutAttr(const OpOperand &opr);
-/// Removes the LayoutAttr for a given OpOperand or OpResult if it exists.
-template <typename T,
- typename = std::enable_if_t<std::is_same_v<T, OpOperand> ||
- std::is_same_v<T, OpResult>>>
-void removeLayoutAttr(const T &operandOrResult);
-
-/// Removes the DistributeLayoutAttr for each OpOperand and OpResult of the
-/// given operation if they exist. If the operation contains regions, it is also
-/// applied recursively to the contained operations
-void removeLayoutAttrs(Operation *op);
-
-/// Updates the NamedAttribute sequence by dropping sg-layout and
-/// sg-data information from any DistributeLayoutAttr found.
-SmallVector<NamedAttribute>
-dropSgLayoutAndDataOnAttrs(ArrayRef<NamedAttribute> attrs);
-
-/// Updates the NamedAttribute sequence by dropping inst-data information from
-/// any DistributeLayoutAttr found.
-SmallVector<NamedAttribute> dropInstDataOnAttrs(ArrayRef<NamedAttribute> attrs);
-
/// [to-be-deprecated] Sets the DistributeLayoutAttr for a given OpResult
/// user should use setAnchorLayout instead
void setDistributeLayoutAttr(const OpResult &Result,
----------------
Jianhui-Li wrote:
There are external users like transform op.
https://github.com/llvm/llvm-project/pull/179016
More information about the Mlir-commits
mailing list