[clang] Add missing intrinsics to cuda headers (PR #143664)

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 12 15:17:16 PDT 2025


================
@@ -479,6 +479,275 @@ inline __device__ unsigned __funnelshift_rc(unsigned low32, unsigned high32,
   return ret;
 }
 
+#define INTRINSIC_LOAD(func_name, asm_op, decl_type, internal_type, asm_type) \
----------------
Artem-B wrote:

We have to be careful with the names used in the headers we provide. Generally, all symbols we use, including macro arguments should be prefixed with `__`

We also often use `#pragma push_macro/pop_macro` to save/restore the preprocessor state once we're done handling the file. Search for it in the other headers in this directory.

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


More information about the cfe-commits mailing list