diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-07-03 12:25:40 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-07-03 12:25:40 +0000 |
commit | 168a4c3d320a8189ce06dfd1ebe774c7589e9cb3 (patch) | |
tree | 6ab2058bac22b1fcfe53a96fd01fb6c47cae864d /docs | |
parent | ce9a04132d1bf85967d6ad062d45dd75f148eef1 (diff) | |
download | external_llvm-168a4c3d320a8189ce06dfd1ebe774c7589e9cb3.zip external_llvm-168a4c3d320a8189ce06dfd1ebe774c7589e9cb3.tar.gz external_llvm-168a4c3d320a8189ce06dfd1ebe774c7589e9cb3.tar.bz2 |
Document the llvm.fabs intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/LangRef.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index ba653db..64154d4 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -257,6 +257,7 @@ <li><a href="#int_exp">'<tt>llvm.exp.*</tt>' Intrinsic</a></li> <li><a href="#int_log">'<tt>llvm.log.*</tt>' Intrinsic</a></li> <li><a href="#int_fma">'<tt>llvm.fma.*</tt>' Intrinsic</a></li> + <li><a href="#int_fabs">'<tt>llvm.fabs.*</tt>' Intrinsic</a></li> </ol> </li> <li><a href="#int_manip">Bit Manipulation Intrinsics</a> @@ -7506,6 +7507,40 @@ LLVM</a>.</p> </div> +<!-- _______________________________________________________________________ --> +<h4> + <a name="int_fabs">'<tt>llvm.fabs.*</tt>' Intrinsic</a> +</h4> + +<div> + +<h5>Syntax:</h5> +<p>This is an overloaded intrinsic. You can use <tt>llvm.fabs</tt> on any + floating point or vector of floating point type. Not all targets support all + types however.</p> + +<pre> + declare float @llvm.fabs.f32(float %Val) + declare double @llvm.fabs.f64(double %Val) + declare x86_fp80 @llvm.fabs.f80(x86_fp80 %Val) + declare fp128 @llvm.fabs.f128(fp128 %Val) + declare ppc_fp128 @llvm.fabs.ppcf128(ppc_fp128 %Val) +</pre> + +<h5>Overview:</h5> +<p>The '<tt>llvm.fabs.*</tt>' intrinsics return the absolute value of + the operand.</p> + +<h5>Arguments:</h5> +<p>The argument and return value are floating point numbers of the same + type.</p> + +<h5>Semantics:</h5> +<p>This function returns the same values as the libm <tt>fabs</tt> functions + would, and handles error conditions in the same way.</p> + +</div> + </div> <!-- ======================================================================= --> |