From 1da2085a513341f0e8d7578415dcf77d614708e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Tue, 14 Feb 2023 18:26:42 +0000 Subject: libclc: add clspv to targets exempt from alwaysinline https://reviews.llvm.org/D132362 Patch by: Aaron Greig --- libclc/generic/include/clc/clcfunc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libclc') diff --git a/libclc/generic/include/clc/clcfunc.h b/libclc/generic/include/clc/clcfunc.h index 55b775ea3935..abb5484d6248 100644 --- a/libclc/generic/include/clc/clcfunc.h +++ b/libclc/generic/include/clc/clcfunc.h @@ -2,8 +2,10 @@ #define _CLC_DECL #define _CLC_INLINE __attribute__((always_inline)) inline -/* avoid inlines for SPIR-V since we'll optimise later in the chain */ -#if defined(CLC_SPIRV) || defined(CLC_SPIRV64) +// avoid inlines for SPIR-V related targets since we'll optimise later in the +// chain +#if defined(CLC_SPIRV) || defined(CLC_SPIRV64) || defined(CLC_CLSPV) || \ + defined(CLC_CLSPV64) #define _CLC_DEF #else #define _CLC_DEF __attribute__((always_inline)) -- cgit v1.2.1