[Mlir-commits] [mlir] [MLIR][XeGPU] Updates XeGPU TensorDescAttr and Refine Gather/Scatter definition. (PR #109144)

Adam Siemieniuk llvmlistbot at llvm.org
Thu Sep 19 12:49:59 PDT 2024


================
@@ -218,6 +218,23 @@ def XeGPU_CreateNdDescOp: XeGPU_Op<"create_nd_tdesc", [Pure, ViewLikeOpInterface
     static unsigned getOffsetSizeAndStrideStartOperandIndex() { return 1; }
 
     mlir::Value getViewSource() { return getSource(); }
+
+    unsigned getSourceMemorySpace() {
----------------
adam-smnk wrote:

Wouldn't it be safer to return an attribute?

https://github.com/llvm/llvm-project/pull/109144


More information about the Mlir-commits mailing list