Replace llvm.AMDGPU.ldexp with llvm.amdgcn.ldexp
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 18 Jul 2016 16:42:50 +0000 (16:42 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 18 Jul 2016 16:42:50 +0000 (16:42 +0000)
It didn't really work on r600 to begin with, which should
get its own intrinsic.

llvm-svn: 275813

libclc/amdgcn/lib/SOURCES
libclc/amdgcn/lib/math/ldexp.cl [moved from libclc/amdgpu/lib/math/ldexp.cl with 94% similarity]
libclc/amdgpu/lib/SOURCES

index 49c8dd5..ada06d2 100644 (file)
@@ -1,3 +1,4 @@
+math/ldexp.cl
 synchronization/barrier_impl.ll
 workitem/get_group_id.ll
 workitem/get_local_id.ll
similarity index 94%
rename from libclc/amdgpu/lib/math/ldexp.cl
rename to libclc/amdgcn/lib/math/ldexp.cl
index 80439ce..9713e4d 100644 (file)
@@ -25,7 +25,7 @@
 #include "../../../generic/lib/clcmacro.h"
 
 #ifdef __HAS_LDEXPF__
-#define BUILTINF __builtin_amdgpu_ldexpf
+#define BUILTINF __builtin_amdgcn_ldexpf
 #else
 #include "math/clc_ldexp.h"
 #define BUILTINF __clc_ldexp
@@ -37,7 +37,7 @@ _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);
+  _CLC_DEFINE_BINARY_BUILTIN(double, ldexp, __builtin_amdgcn_ldexp, double, int);
 #endif
 
 // This defines all the ldexp(GENTYPE, int);
index 0f99fe1..39287bf 100644 (file)
@@ -1,5 +1,4 @@
 atomic/atomic.cl
-math/ldexp.cl
 math/nextafter.cl
 math/sqrt.cl
 workitem/get_num_groups.ll