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

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 27 19:16:54 PDT 2024


shiltian wrote:

> I am wondering if it would be easier to provide generic builtins in clang and just codegen them. I guess in that case we'd just upscale everything to 64-bit and say "If you need the other one use the target specific version".

I'm not sure if that's a good idea. For simple cases where there is a 1:1 mapping, it would be just fine. It's gonna be more difficult to implements things in codegen than in high level languages.

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


More information about the cfe-commits mailing list