[libclc] [libclc] Move several integer functions to CLC library (PR #116786)
Fraser Cormack via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 22 04:16:11 PST 2025
================
@@ -0,0 +1,21 @@
+#ifndef __CLC_INTEGER_CLC_CLZ_H__
+#define __CLC_INTEGER_CLC_CLZ_H__
+
+#if defined(CLC_CLSPV) || defined(CLC_SPIRV)
+// clspv and spir-v targets provide their own OpenCL-compatible clz
+#define __clc_clz clz
----------------
frasercrmck wrote:
@arsenm I've updated the patch to remove all of the SPIR-V workarounds. All of the CLC integer functions introduced by this patch are built consistently for all targets.
https://github.com/llvm/llvm-project/pull/116786
More information about the cfe-commits
mailing list