Author: Yaxun (Sam) Liu Date: 2022-10-28T18:17:05-04:00 New Revision: 36a025366215d27bcb6e6ccbe08651593acc2cd9
URL: https://github.com/llvm/llvm-project/commit/36a025366215d27bcb6e6ccbe08651593acc2cd9 DIFF: https://github.com/llvm/llvm-project/commit/36a025366215d27bcb6e6ccbe08651593acc2cd9.diff LOG: [HIP] add float to fp16 convert functions Reviewed by: Brian Sumner, Artem Belevich Differential Revision: https://reviews.llvm.org/D136981 Added: Modified: clang/lib/Headers/__clang_hip_libdevice_declares.h Removed: ################################################################################ diff --git a/clang/lib/Headers/__clang_hip_libdevice_declares.h b/clang/lib/Headers/__clang_hip_libdevice_declares.h index 79aba9db0e7f..be25f4b4a050 100644 --- a/clang/lib/Headers/__clang_hip_libdevice_declares.h +++ b/clang/lib/Headers/__clang_hip_libdevice_declares.h @@ -288,6 +288,9 @@ __llvm_amdgcn_rsq_f64(double __x) { __device__ __attribute__((const)) _Float16 __ocml_ceil_f16(_Float16); __device__ _Float16 __ocml_cos_f16(_Float16); +__device__ __attribute__((const)) _Float16 __ocml_cvtrtn_f16_f32(float); +__device__ __attribute__((const)) _Float16 __ocml_cvtrtp_f16_f32(float); +__device__ __attribute__((const)) _Float16 __ocml_cvtrtz_f16_f32(float); __device__ __attribute__((pure)) _Float16 __ocml_exp_f16(_Float16); __device__ __attribute__((pure)) _Float16 __ocml_exp10_f16(_Float16); __device__ __attribute__((pure)) _Float16 __ocml_exp2_f16(_Float16); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits