[clang] 36a0253 - [HIP] add float to fp16 convert functions
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 28 15:17:24 PDT 2022
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);
More information about the cfe-commits
mailing list