[Mlir-commits] [mlir] [mlir][xegpu] Add SIMT distribution patterns for UpdateNdOffset and PrefetchNd ops. (PR #138033)
Adam Siemieniuk
llvmlistbot at llvm.org
Thu May 8 08:46:30 PDT 2025
================
@@ -189,6 +189,15 @@ def XeGPU_TensorDesc: XeGPUTypeDef<"TensorDesc", "tensor_desc",
return scatter_attr.getChunkSize().getInt();
return 1;
}
+
+ /// Helper to drop all layout information from the TensorDesc type.
+ TensorDescType dropLayouts() {
+ if (getLayoutAttr() == xegpu::LayoutAttr())
----------------
adam-smnk wrote:
nit: it is nullable as an attribute, maybe just `if (!getLayoutAttr())`?
https://github.com/llvm/llvm-project/pull/138033
More information about the Mlir-commits
mailing list