[libclc] [libclc] Support the generic address space (PR #137183)
Fraser Cormack via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 28 08:05:08 PDT 2025
================
@@ -12,3 +12,7 @@ _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE x,
local __CLC_INTN *iptr);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE x,
private __CLC_INTN *iptr);
+#if _CLC_DISTINCT_GENERIC_AS_SUPPORTED
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE x,
+ generic __CLC_INTN *iptr);
----------------
frasercrmck wrote:
True, good spot. We do still need to guard them with the generic address space being available, so I'll make that switch. I think I'll use the centrally defined macro `_CLC_GENERIC_AS_SUPPORTED` as opposed to repeating the more unwieldy `#if version == 2.0 || (version >= 3.0 && defined __opencl_c_generic_address_space)`.
https://github.com/llvm/llvm-project/pull/137183
More information about the cfe-commits
mailing list