================
@@ -207,10 +207,6 @@
     return BUILTIN(x);                                                         
\
   }
 
-#ifdef cl_khr_fp16
-
-#pragma OPENCL EXTENSION cl_khr_fp16 : enable
-
 #define _CLC_DEFINE_UNARY_BUILTIN_FP16(FUNCTION)                               
\
   _CLC_DEF _CLC_OVERLOAD half FUNCTION(half x) {                               
\
     return (half)FUNCTION((float)x);                                           
\
----------------
frasercrmck wrote:

Another thought would be that we make it generic as a macro that calls a 
unary/binary builtin casting type `T` to type `U` and require users to pass 
`half` and `float`.

https://github.com/llvm/llvm-project/pull/122751
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to