Skip to content

Commit f31ef5f

Browse files
committed
remove __attribute__((always_inline)) from _CLC_DEF and _CLC_INLINE
1 parent 12d6bed commit f31ef5f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

libclc/clc/include/clc/clcfunc.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@
1111

1212
#define _CLC_OVERLOAD __attribute__((overloadable))
1313
#define _CLC_DECL
14-
#define _CLC_INLINE __attribute__((always_inline)) inline
14+
#define _CLC_INLINE inline
1515
#define _CLC_CONST __attribute__((const))
1616

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)
17+
#if defined(CLC_CLSPV)
2218
#define _CLC_DEF __attribute__((noinline)) __attribute__((clspv_libclc_builtin))
2319
#else
24-
#define _CLC_DEF __attribute__((always_inline))
20+
#define _CLC_DEF
2521
#endif
2622

2723
#if __OPENCL_C_VERSION__ == CL_VERSION_2_0 || \

0 commit comments

Comments
 (0)