libclc: add clspv to targets exempt from alwaysinline

https://reviews.llvm.org/D132362

Patch by: Aaron Greig <aaron.greig@codeplay.com>
This commit is contained in:
Kévin Petit 2023-02-14 18:26:42 +00:00
parent 290308a99e
commit 1da2085a51

View File

@ -2,8 +2,10 @@
#define _CLC_DECL #define _CLC_DECL
#define _CLC_INLINE __attribute__((always_inline)) inline #define _CLC_INLINE __attribute__((always_inline)) inline
/* avoid inlines for SPIR-V since we'll optimise later in the chain */ // avoid inlines for SPIR-V related targets since we'll optimise later in the
#if defined(CLC_SPIRV) || defined(CLC_SPIRV64) // chain
#if defined(CLC_SPIRV) || defined(CLC_SPIRV64) || defined(CLC_CLSPV) || \
defined(CLC_CLSPV64)
#define _CLC_DEF #define _CLC_DEF
#else #else
#define _CLC_DEF __attribute__((always_inline)) #define _CLC_DEF __attribute__((always_inline))