[Mlir-commits] [mlir] [MLIR][AMDGPU] Add a wrapper for global LDS load intrinsics in AMDGPU (PR #133498)
Alan Li
llvmlistbot at llvm.org
Wed Apr 2 07:57:59 PDT 2025
================
@@ -765,4 +771,37 @@ def AMDGPU_WMMAOp :
let hasVerifier = 1;
}
+def GlobalLoadMemRefType : MemRefOf<[GlobalLoadTypes]>;
+
+def AMDGPU_GlobalLoadLDSOp :
+ AMDGPU_Op<"global_load", [SameVariadicOperandSize]>,
+ Arguments<(ins
+ Arg<GlobalLoadMemRefType, "buffer to read from", [MemRead]>:$src,
+ Variadic<I32>:$srcIndices,
+ Arg<GlobalLoadMemRefType, "buffer to write to", [MemWrite]>:$dst,
+ Variadic<I32>:$dstIndices
----------------
lialan wrote:
Are you sure? Other ops are using `I32` at this low level so I assume we should use a machine type...
https://github.com/llvm/llvm-project/pull/133498
More information about the Mlir-commits
mailing list