Add initial support for half precision builtins
authorJan Vesely <jan.vesely@rutgers.edu>
Thu, 17 May 2018 22:55:30 +0000 (22:55 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Thu, 17 May 2018 22:55:30 +0000 (22:55 +0000)
commit70a270da5f4a27b670cba1cb8148fcce5c094f4f
treeba5043901fab059f1a5ccfb2578156c62ec4c027
parentc762666e8747841ab7dd785415e1354a1682e954
Add initial support for half precision builtins

v2: fix fmax implementation
    use consistent checks for __CLC_FP_SIZE
    add missing TODOs
    fix whitespace in definitions.h
v3: undef ZERO in modf.inc

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
reviewer: Jeroen Ketema <j.ketema@xs4all.nl>
Reviewed-by: Aaron Watry <awatry@gmail.com>
Tested-by: Aaron Watry <awatry@gmail.com>
llvm-svn: 332677
57 files changed:
libclc/amdgcn/lib/math/fmax.cl
libclc/amdgcn/lib/math/fmin.cl
libclc/amdgpu/lib/math/nextafter.cl
libclc/amdgpu/lib/math/sqrt.cl
libclc/generic/include/clc/as_type.h
libclc/generic/include/clc/async/gentype.inc
libclc/generic/include/clc/float/definitions.h
libclc/generic/include/clc/geometric/floatn.inc
libclc/generic/include/clc/math/binary_intrin.inc
libclc/generic/include/clc/math/gentype.inc
libclc/generic/include/clc/math/nan.inc
libclc/generic/include/clc/math/ternary_intrin.inc
libclc/generic/include/clc/math/unary_intrin.inc
libclc/generic/include/clc/relational/floatn.inc
libclc/generic/include/clc/relational/isequal.h
libclc/generic/include/clc/relational/isinf.h
libclc/generic/include/clc/relational/isnan.h
libclc/generic/include/math/clc_ldexp.h
libclc/generic/lib/geometric/dot.cl
libclc/generic/lib/geometric/length.cl
libclc/generic/lib/math/acos.inc
libclc/generic/lib/math/asin.inc
libclc/generic/lib/math/clc_nextafter.cl
libclc/generic/lib/math/clc_sqrt_impl.inc
libclc/generic/lib/math/clc_sw_binary.inc
libclc/generic/lib/math/clc_sw_unary.inc
libclc/generic/lib/math/copysign.cl
libclc/generic/lib/math/fmax.cl
libclc/generic/lib/math/fmax.inc
libclc/generic/lib/math/fmin.cl
libclc/generic/lib/math/fmin.inc
libclc/generic/lib/math/fract.inc
libclc/generic/lib/math/ldexp.cl
libclc/generic/lib/math/ldexp.inc
libclc/generic/lib/math/lgamma_r.inc
libclc/generic/lib/math/modf.inc
libclc/generic/lib/math/nan.inc
libclc/generic/lib/math/pown.inc
libclc/generic/lib/math/remquo.inc
libclc/generic/lib/math/rootn.inc
libclc/generic/lib/math/sincos.inc
libclc/generic/lib/math/sqrt.cl
libclc/generic/lib/relational/isequal.cl
libclc/generic/lib/relational/isfinite.cl
libclc/generic/lib/relational/isgreater.cl
libclc/generic/lib/relational/isgreaterequal.cl
libclc/generic/lib/relational/isinf.cl
libclc/generic/lib/relational/isless.cl
libclc/generic/lib/relational/islessequal.cl
libclc/generic/lib/relational/islessgreater.cl
libclc/generic/lib/relational/isnan.cl
libclc/generic/lib/relational/isnormal.cl
libclc/generic/lib/relational/isnotequal.cl
libclc/generic/lib/relational/isordered.cl
libclc/generic/lib/relational/isunordered.cl
libclc/generic/lib/relational/signbit.cl
libclc/generic/lib/shared/vstore_half.inc