Skip to content

Commit cbf56c6

Browse files
author
Reid Spencer
committed
Merge arbitrary precision integer documentation from mainline.
llvm-svn: 37110
1 parent 407e888 commit cbf56c6

File tree

1 file changed

+48
-8
lines changed

1 file changed

+48
-8
lines changed

llvm/docs/LangRef.html

Lines changed: 48 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -908,9 +908,6 @@ <h5>Syntax:</h5>
908908
<tbody>
909909
<tr><th>Type</th><th>Description</th></tr>
910910
<tr><td><tt><a name="t_void">void</a></tt></td><td>No value</td></tr>
911-
<tr><td><tt>i8</tt></td><td>8-bit value</td></tr>
912-
<tr><td><tt>i32</tt></td><td>32-bit value</td></tr>
913-
<tr><td><tt>float</tt></td><td>32-bit floating point value</td></tr>
914911
<tr><td><tt>label</tt></td><td>Branch destination</td></tr>
915912
</tbody>
916913
</table>
@@ -919,9 +916,7 @@ <h5>Syntax:</h5>
919916
<table>
920917
<tbody>
921918
<tr><th>Type</th><th>Description</th></tr>
922-
<tr><td><tt>i1</tt></td><td>True or False value</td></tr>
923-
<tr><td><tt>i16</tt></td><td>16-bit value</td></tr>
924-
<tr><td><tt>i64</tt></td><td>64-bit value</td></tr>
919+
<tr><td><tt>float</tt></td><td>32-bit floating point value</td></tr>
925920
<tr><td><tt>double</tt></td><td>64-bit floating point value</td></tr>
926921
</tbody>
927922
</table>
@@ -942,15 +937,15 @@ <h5>Syntax:</h5>
942937
<tr><th>Classification</th><th>Types</th></tr>
943938
<tr>
944939
<td><a name="t_integer">integer</a></td>
945-
<td><tt>i1, i8, i16, i32, i64</tt></td>
940+
<td><tt>i1, i2, i3, ... i8, ... i16, ... i32, ... i64, ... </tt></td>
946941
</tr>
947942
<tr>
948943
<td><a name="t_floating">floating point</a></td>
949944
<td><tt>float, double</tt></td>
950945
</tr>
951946
<tr>
952947
<td><a name="t_firstclass">first class</a></td>
953-
<td><tt>i1, i8, i16, i32, i64, float, double, <br/>
948+
<td><tt>i1, ..., float, double, <br/>
954949
<a href="#t_pointer">pointer</a>,<a href="#t_vector">vector</a></tt>
955950
</td>
956951
</tr>
@@ -976,6 +971,51 @@ <h5>Syntax:</h5>
976971

977972
</div>
978973

974+
<!-- _______________________________________________________________________ -->
975+
<div class="doc_subsubsection"> <a name="t_integer">Integer Type</a> </div>
976+
977+
<div class="doc_text">
978+
979+
<h5>Overview:</h5>
980+
<p>The integer type is a very simple derived type that simply specifies an
981+
arbitrary bit width for the integer type desired. Any bit width from 1 bit to
982+
2^23-1 (about 8 million) can be specified.</p>
983+
984+
<h5>Syntax:</h5>
985+
986+
<pre>
987+
iN
988+
</pre>
989+
990+
<p>The number of bits the integer will occupy is specified by the <tt>N</tt>
991+
value.</p>
992+
993+
<h5>Examples:</h5>
994+
<table class="layout">
995+
<tr class="layout">
996+
<td class="left">
997+
<tt>i1</tt><br/>
998+
<tt>i4</tt><br/>
999+
<tt>i8</tt><br/>
1000+
<tt>i16</tt><br/>
1001+
<tt>i32</tt><br/>
1002+
<tt>i42</tt><br/>
1003+
<tt>i64</tt><br/>
1004+
<tt>i1942652</tt><br/>
1005+
</td>
1006+
<td class="left">
1007+
A boolean integer of 1 bit<br/>
1008+
A nibble sized integer of 4 bits.<br/>
1009+
A byte sized integer of 8 bits.<br/>
1010+
A half word sized integer of 16 bits.<br/>
1011+
A word sized integer of 32 bits.<br/>
1012+
An integer whose bit width is the answer. <br/>
1013+
A double word sized integer of 64 bits.<br/>
1014+
A really big integer of over 1 million bits.<br/>
1015+
</td>
1016+
</tr>
1017+
</table>
1018+
9791019
<!-- _______________________________________________________________________ -->
9801020
<div class="doc_subsubsection"> <a name="t_array">Array Type</a> </div>
9811021

0 commit comments

Comments
 (0)