diff options
| author | Nate Begeman <natebegeman@mac.com> | 2006-01-13 23:02:51 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2006-01-13 23:02:51 +0000 |
| commit | 611ecc07b60b5ee25f5cb1261c5233eccce4ea89 (patch) | |
| tree | fb7dce773fb8a0a69df05a3d5e6fdba615742b8e | |
| parent | a83529678e2a5e811901bf6ba9b3f15c07f58e41 (diff) | |
| download | bcm5719-llvm-611ecc07b60b5ee25f5cb1261c5233eccce4ea89.tar.gz bcm5719-llvm-611ecc07b60b5ee25f5cb1261c5233eccce4ea89.zip | |
Add documentation for the upcoming bswap intrinsics!
llvm-svn: 25300
| -rw-r--r-- | llvm/docs/LangRef.html | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index 751efa1b855..67eb21ee975 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/docs/LangRef.html @@ -125,6 +125,9 @@ </li> <li><a href="#int_codegen">Code Generator Intrinsics</a> <ol> + <li><a href="#i_bswap_i16">'<tt>llvm.bswap.i16</tt>' Intrinsic</a></li> + <li><a href="#i_bswap_i32">'<tt>llvm.bswap.i32</tt>' Intrinsic</a></li> + <li><a href="#i_bswap_i64">'<tt>llvm.bswap.i64</tt>' Intrinsic</a></li> <li><a href="#i_returnaddress">'<tt>llvm.returnaddress</tt>' Intrinsic</a></li> <li><a href="#i_frameaddress">'<tt>llvm.frameaddress</tt>' Intrinsic</a></li> <li><a href="#i_stacksave">'<tt>llvm.stacksave</tt>' Intrinsic</a></li> @@ -2704,6 +2707,93 @@ be implemented with code generator support. <!-- _______________________________________________________________________ --> <div class="doc_subsubsection"> + <a name="i_bswap_i16">'<tt>llvm.bswap.i16</tt>' Intrinsic</a> +</div> + +<div class="doc_text"> + +<h5>Syntax:</h5> +<pre> + declare ushort %llvm.bswap.i16( ushort <id> ) +</pre> + +<h5>Overview:</h5> + +<p> +The '<tt>llvm.bwsap.i16</tt>' intrinsic is used to byteswap a 16 bit quantity. +This is useful for performing operations on data that is not in the target's +native byte order. +</p> + +<h5>Semantics:</h5> + +<p> +This intrinsic returns a ushort value that has the two bytes of the input ushort +swapped. +</p> + +</div> + +<!-- _______________________________________________________________________ --> +<div class="doc_subsubsection"> + <a name="i_bswap_i32">'<tt>llvm.bswap.i32</tt>' Intrinsic</a> +</div> + +<div class="doc_text"> + +<h5>Syntax:</h5> +<pre> + declare uint %llvm.bswap.i32( uint <id> ) +</pre> + +<h5>Overview:</h5> + +<p> +The '<tt>llvm.bwsap.i32</tt>' intrinsic is used to byteswap a 32 bit quantity. +This is useful for performing operations on data that is not in the target's +native byte order. +</p> + +<h5>Semantics:</h5> + +<p> +This intrinsic returns a uint value that has the four bytes of the input uint +swapped, so that if the input bytes are numbered 0, 1, 2, 3 then the returned +uint will have its bytes in 3, 2, 1, 0 order. +</p> + +</div> + +<!-- _______________________________________________________________________ --> +<div class="doc_subsubsection"> + <a name="i_bswap_i64">'<tt>llvm.bswap.i64</tt>' Intrinsic</a> +</div> + +<div class="doc_text"> + +<h5>Syntax:</h5> +<pre> + declare ulong %llvm.bswap.i64( ulong <id> ) +</pre> + +<h5>Overview:</h5> + +<p> +The '<tt>llvm.bwsap.i64</tt>' intrinsic is used to byteswap a 64 bit quantity. +This is useful for performing operations on data that is not in the target's +native byte order. +</p> + +<h5>Semantics:</h5> + +<p> +See the description for <a href="#i_bswap_i32"><tt>llvm.bswap.i32</tt></a>. +</p> + +</div> + +<!-- _______________________________________________________________________ --> +<div class="doc_subsubsection"> <a name="i_returnaddress">'<tt>llvm.returnaddress</tt>' Intrinsic</a> </div> |

