[Mlir-commits] [mlir] [mlir][amdgpu] Add make_dma_base operation (PR #169086)
Erick Ochoa Lopez
llvmlistbot at llvm.org
Wed Nov 26 11:22:39 PST 2025
================
@@ -1192,4 +1223,28 @@ def AMDGPU_ScaledMFMAOp :
}];
let hasCanonicalizer = 1;
}
+
+def AMDGPU_MakeDmaBaseOp :
+ AMDGPU_Op<"make_dma_base", [Pure, AttrSizedOperandSegments]>,
+ Arguments<(ins
+ Arg<AnyMemRef, "buffer to read from">:$src,
+ Variadic<Index>:$srcIndices,
+ Arg<AnyMemRef, "buffer to write to">:$dst,
+ Variadic<Index>:$dstIndices)>,
+ Results<(outs AMDGPU_TDMBaseType: $base)> {
+
+ let summary = "Pair of based addresses used when moving tiles between LDS and global memory.";
+ let description = [{
+ This operation creates a pair of addresses that will be used by tensor_load_to_lds
+ and tensor_store_from_lds.
+
+ This operation creates a value corresponding roughly to the descriptor group 0
----------------
amd-eochoalo wrote:
Yes, sorry I left the roughly because I had not finished the implementation and didn't know if some details would be different. At the moment I just finished the lowering and yes it is the D# group 0
https://github.com/llvm/llvm-project/pull/169086
More information about the Mlir-commits
mailing list