[Mlir-commits] [mlir] [mlir][ROCDL] Add tensor load and store instructions to ROCDL (PR #165016)
    Alan Li 
    llvmlistbot at llvm.org
       
    Mon Oct 27 11:58:16 PDT 2025
    
    
  
================
@@ -663,6 +663,82 @@ def ROCDL_GlobalLoadLDSOp :
   }];
 }
 
+//===---------------------------------------------------------------------===//
+// Tensor load/store intrinsics (available in GFX1250)
+//===---------------------------------------------------------------------===//
+
+def ROCDL_TensorLoadToLDSIntrOp :
+  ROCDL_IntrOp<"tensor.load.to.lds", [], [], [], 0, 0, 1, 0, [4], ["cachePolicy"]> {
+  dag args = (ins Arg<LLVM_VectorOf<I32>, "", [MemRead]>:$dgroup0,
----------------
lialan wrote:
I quickly looked around, it seems the best we can do is to use `RecursiveMemoryEffects` to represent this op.
So it could be like:
```
ROCDL_IntrOp<"tensor.load.to.lds", [], [], [RecursiveMemoryEffects]...
```
Let me know what you think.
https://github.com/llvm/llvm-project/pull/165016
    
    
More information about the Mlir-commits
mailing list