[Mlir-commits] [mlir] [mlir][ROCDL] Add tensor load and store instructions to ROCDL (PR #165016)

Justin Rosner llvmlistbot at llvm.org
Mon Oct 27 08:57:06 PDT 2025


================
@@ -663,6 +663,50 @@ def ROCDL_GlobalLoadLDSOp :
   }];
 }
 
+//===---------------------------------------------------------------------===//
+// Tensor load/store intrinsics (available in GFX1250)
+//===---------------------------------------------------------------------===//
+
+// Base class for tensor load/store operations with 4 descriptor groups
+class ROCDL_TensorLDSIntrOp<string mnemonic> :
+  ROCDL_IntrOp<mnemonic, [], [], [], 0, 0, 1, 0, [4], ["cachePolicy"]> {
+  dag args = (ins LLVM_Type:$dgroup0, LLVM_Type:$dgroup1, LLVM_Type:$dgroup2,
----------------
justinrosner wrote:

Good catch. I updated to use `LLVM_VectorOf<I32>`. I also forgot to properly mark the `dgroup` arguments with their proper memory access type, so I've done that for the different load/store variants as well. 

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


More information about the Mlir-commits mailing list