[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
================
@@ -105,12 +105,22 @@ mlir::xegpu::getDistributedVectorType(VectorType originalType,
std::string xegpu::getLayoutName(const OpOperand &operand) {
const StringRef prefix("layout_operand_");
unsigned idx = const_cast<OpOperand &>(operand).getOperandNumber();
- return llvm::formatv("{0}{1}", prefix, idx).str();
+ auto owner = operand.getOwner();
+ auto tempLayout = llvm::formatv("{0}{1}", prefix, idx).str();
+ if (isa<StoreScatterOp>(operand.getOwner()) && idx == 0 &&
----------------
charithaintc wrote:
This is not needed.
Also `isa<StoreScatterOp>(operand.getOwner())` how can this be true?
Store scatter does not return anything.
https://github.com/llvm/llvm-project/pull/163414
More information about the Mlir-commits
mailing list