diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-07-18 16:42:50 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-07-18 16:42:50 +0000 |
commit | b456c6dd569991d2900656c03fb5d7ce60e0af11 (patch) | |
tree | 171beedd1037840f9a52eec003d9ceec08eb7cc5 /libclc/amdgpu | |
parent | d6ba0bf831ef6ec020537857f3e054156558e312 (diff) | |
download | llvm-b456c6dd569991d2900656c03fb5d7ce60e0af11.zip llvm-b456c6dd569991d2900656c03fb5d7ce60e0af11.tar.gz llvm-b456c6dd569991d2900656c03fb5d7ce60e0af11.tar.bz2 |
Replace llvm.AMDGPU.ldexp with llvm.amdgcn.ldexp
It didn't really work on r600 to begin with, which should
get its own intrinsic.
llvm-svn: 275813
Diffstat (limited to 'libclc/amdgpu')
-rw-r--r-- | libclc/amdgpu/lib/SOURCES | 1 | ||||
-rw-r--r-- | libclc/amdgpu/lib/math/ldexp.cl | 47 |
2 files changed, 0 insertions, 48 deletions
diff --git a/libclc/amdgpu/lib/SOURCES b/libclc/amdgpu/lib/SOURCES index 0f99fe1..39287bf 100644 --- a/libclc/amdgpu/lib/SOURCES +++ b/libclc/amdgpu/lib/SOURCES @@ -1,5 +1,4 @@ atomic/atomic.cl -math/ldexp.cl math/nextafter.cl math/sqrt.cl workitem/get_num_groups.ll diff --git a/libclc/amdgpu/lib/math/ldexp.cl b/libclc/amdgpu/lib/math/ldexp.cl deleted file mode 100644 index 80439ce..0000000 --- a/libclc/amdgpu/lib/math/ldexp.cl +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2014 Advanced Micro Devices, Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ - -#include <clc/clc.h> - -#include "../../../generic/lib/clcmacro.h" - -#ifdef __HAS_LDEXPF__ -#define BUILTINF __builtin_amdgpu_ldexpf -#else -#include "math/clc_ldexp.h" -#define BUILTINF __clc_ldexp -#endif - -// This defines all the ldexp(floatN, intN) variants. -_CLC_DEFINE_BINARY_BUILTIN(float, ldexp, BUILTINF, float, int); - -#ifdef cl_khr_fp64 - #pragma OPENCL EXTENSION cl_khr_fp64 : enable - // This defines all the ldexp(doubleN, intN) variants. - _CLC_DEFINE_BINARY_BUILTIN(double, ldexp, __builtin_amdgpu_ldexp, double, int); -#endif - -// This defines all the ldexp(GENTYPE, int); -#define __CLC_BODY <../../../generic/lib/math/ldexp.inc> -#include <clc/math/gentype.inc> - -#undef BUILTINF |