[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:
Can we merge `INTRINSIC*` and `MINTRINSIC*` macros by providing an additional clobber parameter, which could contain either nothing (e.g `MACRO(something, )` ) or `: "memory"` (`MACRO(something, : "memory" )`). It may look a bit odd, but it appears to work: https://godbolt.org/z/98vqn67qT
https://github.com/llvm/llvm-project/pull/143664
More information about the cfe-commits
mailing list