From 0cec9c85ee0cf2a2eea34792424bf9b6874a0b63 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 15 Mar 2010 04:12:21 +0000 Subject: [PATCH] various cleanups from daniel git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98528 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 9d2d226ddc6..b1bc1687c47 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -6619,16 +6619,16 @@ LLVM.

-

Half precision floating point is storage-only format. This means that it is - an encoding (typically for density in memory) but typically does not support - computation in the format.

+

Half precision floating point is a storage-only format. This means that it is + a dense encoding (in memory) but does not support computation in the + format.

-

This means that you code must first load the half-precision floating point +

This means that code must first load the half-precision floating point value as an i16, then convert it to float with llvm.convert.from.fp16. Computation can then be performed on the float value (including extending to - double etc). When the value is ready to be stored back to memory, this is - done by converting to float if needed, then converting to i16 with + double etc). To store the value back to memory, it is first converted to + float if needed, then converted to i16 with llvm.convert.to.fp16, then storing as an i16 value.

@@ -6657,7 +6657,7 @@ LLVM.

Semantics:

The 'llvm.convert.to.fp16' intrinsic function performs a conversion from single precision floating point format to half precision - floating point format. The return value is just an i16 which + floating point format. The return value is an i16 which contains the converted number.

Examples:
@@ -6691,7 +6691,7 @@ LLVM.

Semantics:

The 'llvm.convert.from.fp16' intrinsic function performs a - conversion from half single precision floating point format to signgle + conversion from half single precision floating point format to single precision floating point format. The input half-float value is represented by an i16 value.