[libc-commits] [libc] [libc] Annotate RPC members as global pointers (PR #215412)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Tue Aug 11 07:52:56 PDT 2026


jhuber6 wrote:

> I honestly don't like having this kind of annotation everywhere. IMHO, this is gradually turning into OpenCL-style code, but I understand why we need them. I guess it's fine for now, until we have a proper formal definition of what kind of "C/C++" code we want to write.

I take it more of a hint than strictly necessary like it is in OpenCL, like saying a pointer is restrict in C. I was surprised that it cut down like 10 SGPRs on an OpenMP kernel using it. The other motivation was allowing this to be used to link to an OpenCL program that does not have generic pointers. Thanks.

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


More information about the libc-commits mailing list