[clang] [llvm] [mlir] [AMDGPU] Add a new amdgcn.load.to.lds intrinsic (PR #137425)

Jay Foad via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 27 04:11:21 PDT 2025


jayfoad wrote:

> This PR adds a amdgns_load_to_lds intrinsic that abstracts over loads to LDS from global (address space 1) pointers and buffer fat pointers (address space 7), since they use the same API and "gather from a pointer to LDS" is something of an abstract operation.

High level question: I don't understand why you call this a "gather" operation. What do you mean by that? Isn't it semantically just a memcpy, or a (global/buffer) load followed by a (LDS) store?

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


More information about the cfe-commits mailing list