diff options
author | Kévin Petit <kpet@free.fr> | 2023-02-14 18:26:42 +0000 |
---|---|---|
committer | Kévin Petit <kpet@free.fr> | 2023-02-14 18:26:42 +0000 |
commit | 1da2085a513341f0e8d7578415dcf77d614708e5 (patch) | |
tree | 894ee36093f4903bbf2d3b47eea6ad1f73eff433 /libclc | |
parent | 290308a99e6b9e6f808a9824c8e5a58a65749585 (diff) | |
download | llvm-1da2085a513341f0e8d7578415dcf77d614708e5.zip llvm-1da2085a513341f0e8d7578415dcf77d614708e5.tar.gz llvm-1da2085a513341f0e8d7578415dcf77d614708e5.tar.bz2 |
libclc: add clspv to targets exempt from alwaysinline
https://reviews.llvm.org/D132362
Patch by: Aaron Greig <aaron.greig@codeplay.com>
Diffstat (limited to 'libclc')
-rw-r--r-- | libclc/generic/include/clc/clcfunc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/clcfunc.h b/libclc/generic/include/clc/clcfunc.h index 55b775e..abb5484 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)) |