File tree Expand file tree Collapse file tree 8 files changed +7
-101
lines changed Expand file tree Collapse file tree 8 files changed +7
-101
lines changed Original file line number Diff line number Diff line change @@ -360,12 +360,6 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
360360
361361 set ( clc_build_flags ${build_flags} -DCLC_INTERNAL )
362362
363- # clspv and spir-v targets remap some CLC functions to OpenCL builtins.
364- # Automatically provide those declarations to the compiler for CLC builtins.
365- if ( ARCH STREQUAL spirv OR ARCH STREQUAL spirv64 OR ARCH STREQUAL clspv OR ARCH STREQUAL clspv64 )
366- list ( APPEND clc_build_flags -Xclang -fdeclare-opencl-builtins )
367- endif ()
368-
369363 add_libclc_builtin_set(
370364 CLC_INTERNAL
371365 ARCH ${ARCH}
Original file line number Diff line number Diff line change 11#ifndef __CLC_COMMON_CLC_SIGN_H__
22#define __CLC_COMMON_CLC_SIGN_H__
33
4- #if defined(CLC_CLSPV )
5- // clspv targets provide their own OpenCL-compatible sign
6- #define __clc_sign sign
7- #else
8-
94#define __CLC_FUNCTION __clc_sign
105#define __CLC_BODY <clc/math/unary_decl.inc>
116#include <clc/math/gentype.inc>
127#undef __CLC_FUNCTION
138#undef __CLC_BODY
149
15- #endif
16-
1710#endif // __CLC_COMMON_CLC_SIGN_H__
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44#define __CLC_FUNCTION (x ) __CLC_CONCAT(__clc_, x)
55#endif
66
7- _CLC_OVERLOAD _CLC_DEF __CLC_FLOATN FUNCTION (__CLC_FLOATN a) {
7+ _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE FUNCTION (__CLC_GENTYPE a) {
88 return __CLC_FUNCTION (FUNCTION)(a);
99}
Original file line number Diff line number Diff line change 1+ ../generic/common/clc_sign.cl
12../generic/math/clc_ceil.cl
23../generic/math/clc_copysign.cl
34../generic/math/clc_fabs.cl
67../generic/math/clc_nextafter.cl
78../generic/math/clc_rint.cl
89../generic/math/clc_trunc.cl
10+ ../generic/relational/clc_isnan.cl
911../generic/relational/clc_select.cl
1012../generic/shared/clc_clamp.cl
Original file line number Diff line number Diff line change 1111../generic/math/clc_nextafter.cl
1212../generic/math/clc_rint.cl
1313../generic/math/clc_trunc.cl
14+ ../generic/relational/clc_isnan.cl
1415../generic/relational/clc_select.cl
1516../generic/shared/clc_clamp.cl
Original file line number Diff line number Diff line change 1111../generic/math/clc_nextafter.cl
1212../generic/math/clc_rint.cl
1313../generic/math/clc_trunc.cl
14+ ../generic/relational/clc_isnan.cl
1415../generic/relational/clc_select.cl
1516../generic/shared/clc_clamp.cl
Original file line number Diff line number Diff line change 33#include <clc/common/clc_sign.h>
44
55#define FUNCTION sign
6- #define __CLC_BODY " unary_def.inc"
6+ #define __CLC_BODY <clc/shared/ unary_def.inc>
77
8- #include <clc/common/floatn .inc>
8+ #include <clc/math/gentype .inc>
You can’t perform that action at this time.
0 commit comments