diff options
author | Dan Gohman <gohman@apple.com> | 2011-05-23 21:13:03 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2011-05-23 21:13:03 +0000 |
commit | 4e9011cbaccdf081c1af98d5c2f60679c8f7eed5 (patch) | |
tree | ecb5de67cda8d00a34c45dae15a1844f12079762 /docs/LangRef.html | |
parent | 1b58d4536a561f28bf935dcb29b483c52a6bf4c6 (diff) | |
download | llvm-4e9011cbaccdf081c1af98d5c2f60679c8f7eed5.tar.gz llvm-4e9011cbaccdf081c1af98d5c2f60679c8f7eed5.tar.bz2 llvm-4e9011cbaccdf081c1af98d5c2f60679c8f7eed5.tar.xz |
Document llvm.exp and llvm.pow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r-- | docs/LangRef.html | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 91298accf7..95b89fcc4e 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -239,6 +239,8 @@ <li><a href="#int_sin">'<tt>llvm.sin.*</tt>' Intrinsic</a></li> <li><a href="#int_cos">'<tt>llvm.cos.*</tt>' Intrinsic</a></li> <li><a href="#int_pow">'<tt>llvm.pow.*</tt>' Intrinsic</a></li> + <li><a href="#int_pow">'<tt>llvm.exp.*</tt>' Intrinsic</a></li> + <li><a href="#int_pow">'<tt>llvm.log.*</tt>' Intrinsic</a></li> </ol> </li> <li><a href="#int_manip">Bit Manipulation Intrinsics</a> @@ -6497,6 +6499,72 @@ LLVM</a>.</p> </div> +<!-- _______________________________________________________________________ --> +<h4> + <a name="int_exp">'<tt>llvm.exp.*</tt>' Intrinsic</a> +</h4> + +<div> + +<h5>Syntax:</h5> +<p>This is an overloaded intrinsic. You can use <tt>llvm.exp</tt> on any + floating point or vector of floating point type. Not all targets support all + types however.</p> + +<pre> + declare float @llvm.exp.f32(float %Val) + declare double @llvm.exp.f64(double %Val) + declare x86_fp80 @llvm.exp.f80(x86_fp80 %Val) + declare fp128 @llvm.exp.f128(fp128 %Val) + declare ppc_fp128 @llvm.exp.ppcf128(ppc_fp128 %Val) +</pre> + +<h5>Overview:</h5> +<p>The '<tt>llvm.exp.*</tt>' intrinsics perform the exp function.</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>exp</tt> functions + would, and handles error conditions in the same way.</p> + +</div> + +<!-- _______________________________________________________________________ --> +<h4> + <a name="int_log">'<tt>llvm.log.*</tt>' Intrinsic</a> +</h4> + +<div> + +<h5>Syntax:</h5> +<p>This is an overloaded intrinsic. You can use <tt>llvm.log</tt> on any + floating point or vector of floating point type. Not all targets support all + types however.</p> + +<pre> + declare float @llvm.log.f32(float %Val) + declare double @llvm.log.f64(double %Val) + declare x86_fp80 @llvm.log.f80(x86_fp80 %Val) + declare fp128 @llvm.log.f128(fp128 %Val) + declare ppc_fp128 @llvm.log.ppcf128(ppc_fp128 %Val) +</pre> + +<h5>Overview:</h5> +<p>The '<tt>llvm.log.*</tt>' intrinsics perform the log function.</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>log</tt> functions + would, and handles error conditions in the same way.</p> + +</div> + <!-- ======================================================================= --> <h3> <a name="int_manip">Bit Manipulation Intrinsics</a> |