[Mlir-commits] [mlir] [mlir][XeGPU] Add MemoryEffectsOpInterface for XeGPU memory related ops. (PR #125314)

Adam Siemieniuk llvmlistbot at llvm.org
Mon Feb 3 04:10:08 PST 2025


================
@@ -327,7 +330,9 @@ def XeGPU_LoadNdOp : XeGPU_Op<"load_nd", [AllElementTypesMatch<["value", "Tensor
   let hasVerifier = 1;
 }
 
-def XeGPU_StoreNdOp : XeGPU_Op<"store_nd", [AllElementTypesMatch<["value", "TensorDesc"]>]> {
+def XeGPU_StoreNdOp : XeGPU_Op<"store_nd", [
+  AllElementTypesMatch<["value", "TensorDesc"]>, DeclareOpInterfaceMethods<MemoryEffectsOpInterface>,
----------------
adam-smnk wrote:

nit: I'd add a line break and keep layout consistent with loads

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


More information about the Mlir-commits mailing list