Files
clang-p2996/libclc/generic/include/clc/clcfunc.h
Dave Airlie c37145cab1 libclc: Add Mesa/SPIR-V target
Add targets to emit SPIR-V targeted to Mesa's OpenCL support, using
SPIR-V 1.1.

Substantially based on Dave Airlie's earlier work.

libclc: spirv: remove step/smoothstep apis not defined for SPIR-V

libclc: disable inlines for SPIR-V builds

Reviewed By: jvesely, tstellar, jenatali

Differential Revision: https://reviews.llvm.org/D77589
2020-08-17 14:01:46 -07:00

11 lines
325 B
C

#define _CLC_OVERLOAD __attribute__((overloadable))
#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)
#define _CLC_DEF
#else
#define _CLC_DEF __attribute__((always_inline))
#endif