[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libclc / generic / include / clc / clcfunc.h
blobad9eb23f2933315d2c219a97d192f77d1d43385d
1 #define _CLC_OVERLOAD __attribute__((overloadable))
2 #define _CLC_DECL
3 #define _CLC_INLINE __attribute__((always_inline)) inline
5 // avoid inlines for SPIR-V related targets since we'll optimise later in the
6 // chain
7 #if defined(CLC_SPIRV) || defined(CLC_SPIRV64)
8 #define _CLC_DEF
9 #elif defined(CLC_CLSPV) || defined(CLC_CLSPV64)
10 #define _CLC_DEF \
11 __attribute__((noinline)) __attribute__((assume("clspv_libclc_builtin")))
12 #else
13 #define _CLC_DEF __attribute__((always_inline))
14 #endif