[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:23 PDT 2025
================
@@ -144,6 +154,11 @@ xegpu::DistributeLayoutAttr xegpu::getDistributeLayoutAttr(const Value value) {
std::string layoutName = getLayoutName(result);
if (defOp->hasAttr(layoutName))
return defOp->getAttrOfType<xegpu::DistributeLayoutAttr>(layoutName);
+
+ // check for "permament" layout only after "temporary" layout name lookup
+ // for backward compatibility
+ if (auto loadGatherOp = dyn_cast<xegpu::LoadGatherOp>(defOp))
----------------
charithaintc wrote:
I think since the store scatter does not return a result it is not needed here. We only need load gather.
https://github.com/llvm/llvm-project/pull/163414
More information about the Mlir-commits
mailing list