[clang] [libc] [Clang] Implement resource directory headers for common GPU intrinsics (PR #110179)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 4 05:09:12 PDT 2024


jhuber6 wrote:

> IIRC, you discussed once to have GPU-agnostic intrinsics in LLVM-IR. The backends then have to handle the details.

There's three approaches basically, wrapper header, builtins, and intrinsics. We could make some generic intrinsics but it would be a lot more work and duplicate a bunch of functions. I think the intrinsics were once suggested by @JonChesterfield, so maybe he could chime in. Even with this, it's still something we could provide in the future.

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


More information about the cfe-commits mailing list