aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Intrinsics.td
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-03-14 18:41:50 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-03-14 18:41:50 +0000
commit676f968fec3532effc90a449b34dd44bb2b78bd2 (patch)
tree2c4d3211e44a7f42ad56dded67c11128cf79b663 /include/llvm/Intrinsics.td
parent314a11318404569efaee74b7208d4b8ab1f64510 (diff)
downloadexternal_llvm-676f968fec3532effc90a449b34dd44bb2b78bd2.zip
external_llvm-676f968fec3532effc90a449b34dd44bb2b78bd2.tar.gz
external_llvm-676f968fec3532effc90a449b34dd44bb2b78bd2.tar.bz2
Add intrinsics to represent fp16 <-> fp32 conversions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Intrinsics.td')
-rw-r--r--include/llvm/Intrinsics.td8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td
index 3a0da9c..c348828 100644
--- a/include/llvm/Intrinsics.td
+++ b/include/llvm/Intrinsics.td
@@ -450,6 +450,14 @@ def int_flt_rounds : Intrinsic<[llvm_i32_ty]>,
def int_trap : Intrinsic<[llvm_void_ty]>,
GCCBuiltin<"__builtin_trap">;
+// Intrisics to support half precision floating point format
+def int_convert_to_fp16 : Intrinsic<[llvm_i16_ty],
+ [llvm_float_ty]>,
+ GCCBuiltin<"__gnu_f2h_ieee">;
+def int_convert_from_fp16 : Intrinsic<[llvm_float_ty],
+ [llvm_i16_ty]>,
+ GCCBuiltin<"__gnu_h2f_ieee">;
+
// These convert intrinsics are to support various conversions between
// various types with rounding and saturation. NOTE: avoid using these
// intrinsics as they might be removed sometime in the future and