mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
ceil: Remove llvm intrinsic from the header.
Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356013
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
11
libclc/generic/lib/math/ceil.cl
Normal file
11
libclc/generic/lib/math/ceil.cl
Normal file
@@ -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"
|
||||
Reference in New Issue
Block a user