[Mlir-commits] [mlir] [MLIR][XeGPU] bug fix: removing temporary slice layout at the pass end (PR #172589)
Charitha Saumya
llvmlistbot at llvm.org
Wed Jan 14 09:31:45 PST 2026
================
@@ -147,6 +147,15 @@ void removeLayoutAttr(const T &operandOrResult);
/// 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);
----------------
charithaintc wrote:
why not use the `drop` methods inside the `DistributeLayoutAttr `?
https://github.com/llvm/llvm-project/pull/172589
More information about the Mlir-commits
mailing list