diff options
| author | Jan Vesely <jan.vesely@rutgers.edu> | 2019-03-13 07:05:58 +0000 |
|---|---|---|
| committer | Jan Vesely <jan.vesely@rutgers.edu> | 2019-03-13 07:05:58 +0000 |
| commit | 54eb4d3a6d863fbe1ca92e4e741ed1c842a2cfa0 (patch) | |
| tree | eda7a52585b5ae09afff15f545d24ac084e91683 /libclc | |
| parent | 82c6c846af23bf75420f435bd2fb896d7ea258af (diff) | |
| download | bcm5719-llvm-54eb4d3a6d863fbe1ca92e4e741ed1c842a2cfa0.tar.gz bcm5719-llvm-54eb4d3a6d863fbe1ca92e4e741ed1c842a2cfa0.zip | |
ceil: Remove llvm intrinsic from the header.
Reviewer: Aaron Watry
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 356013
Diffstat (limited to 'libclc')
| -rw-r--r-- | libclc/generic/include/clc/math/ceil.h | 11 | ||||
| -rw-r--r-- | libclc/generic/lib/SOURCES | 1 | ||||
| -rw-r--r-- | libclc/generic/lib/math/ceil.cl | 11 |
3 files changed, 18 insertions, 5 deletions
diff --git a/libclc/generic/include/clc/math/ceil.h b/libclc/generic/include/clc/math/ceil.h index 5b40abf97c2..b444c486845 100644 --- a/libclc/generic/include/clc/math/ceil.h +++ b/libclc/generic/include/clc/math/ceil.h @@ -1,6 +1,7 @@ -#undef ceil -#define ceil __clc_ceil +#define __CLC_BODY <clc/math/unary_decl.inc> +#define __CLC_FUNCTION ceil -#define __CLC_FUNCTION __clc_ceil -#define __CLC_INTRINSIC "llvm.ceil" -#include <clc/math/unary_intrin.inc> +#include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff --git a/libclc/generic/lib/SOURCES b/libclc/generic/lib/SOURCES index 788aee6cd3b..03a047972ac 100644 --- a/libclc/generic/lib/SOURCES +++ b/libclc/generic/lib/SOURCES @@ -89,6 +89,7 @@ math/atan2pi.cl math/atanh.cl math/atanpi.cl math/cbrt.cl +math/ceil.cl math/copysign.cl math/cos.cl math/cosh.cl diff --git a/libclc/generic/lib/math/ceil.cl b/libclc/generic/lib/math/ceil.cl new file mode 100644 index 00000000000..3402f6fa8a9 --- /dev/null +++ b/libclc/generic/lib/math/ceil.cl @@ -0,0 +1,11 @@ +#include <clc/clc.h> +#include "../clcmacro.h" + +// Map the llvm intrinsic to an OpenCL function. +#define __CLC_FUNCTION __clc_ceil +#define __CLC_INTRINSIC "llvm.ceil" +#include <clc/math/unary_intrin.inc> + +#undef __CLC_FUNCTION +#define __CLC_FUNCTION ceil +#include "unary_builtin.inc" |

