[libclc] [libclc] Move several integer functions to CLC library (PR #116786)

Karol Herbst via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 5 11:21:08 PST 2024


================
@@ -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
----------------
karolherbst wrote:

similar here

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


More information about the cfe-commits mailing list