We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12d6bed commit f31ef5fCopy full SHA for f31ef5f
libclc/clc/include/clc/clcfunc.h
@@ -11,17 +11,13 @@
11
12
#define _CLC_OVERLOAD __attribute__((overloadable))
13
#define _CLC_DECL
14
-#define _CLC_INLINE __attribute__((always_inline)) inline
+#define _CLC_INLINE inline
15
#define _CLC_CONST __attribute__((const))
16
17
-// avoid inlines for SPIR-V related targets since we'll optimise later in the
18
-// chain
19
-#if defined(CLC_SPIRV)
20
-#define _CLC_DEF
21
-#elif defined(CLC_CLSPV)
+#if defined(CLC_CLSPV)
22
#define _CLC_DEF __attribute__((noinline)) __attribute__((clspv_libclc_builtin))
23
#else
24
-#define _CLC_DEF __attribute__((always_inline))
+#define _CLC_DEF
25
#endif
26
27
#if __OPENCL_C_VERSION__ == CL_VERSION_2_0 || \
0 commit comments