[llvm-commits] CVS: llvm/docs/LangRef.html

Reid Spencer reid at x10sys.com
Thu Jan 4 08:43:38 PST 2007



Changes in directory llvm/docs:

LangRef.html updated: 1.185 -> 1.186
---
Log message:

Clean up usage of "unsigned" and "signed" in the documentation to indicate
only that specific instructions regard their operands as signed and 
unsigned not that the operands *are* signed or unsigned.


---
Diffs of the changes:  (+22 -21)

 LangRef.html |   43 ++++++++++++++++++++++---------------------
 1 files changed, 22 insertions(+), 21 deletions(-)


Index: llvm/docs/LangRef.html
diff -u llvm/docs/LangRef.html:1.185 llvm/docs/LangRef.html:1.186
--- llvm/docs/LangRef.html:1.185	Wed Jan  3 23:19:58 2007
+++ llvm/docs/LangRef.html	Thu Jan  4 10:43:23 2007
@@ -857,12 +857,12 @@
     <td class="left">
       <tt>[40 x i32 ]</tt><br/>
       <tt>[41 x i32 ]</tt><br/>
-      <tt>[40 x i32]</tt><br/>
+      <tt>[40 x i8]</tt><br/>
     </td>
     <td class="left">
-      Array of 40 integer values.<br/>
-      Array of 41 integer values.<br/>
-      Array of 40 unsigned integer values.<br/>
+      Array of 40 32-bit integer values.<br/>
+      Array of 41 32-bit integer values.<br/>
+      Array of 40 8-bit integer values.<br/>
     </td>
   </tr>
 </table>
@@ -872,12 +872,12 @@
     <td class="left">
       <tt>[3 x [4 x i32]]</tt><br/>
       <tt>[12 x [10 x float]]</tt><br/>
-      <tt>[2 x [3 x [4 x i32]]]</tt><br/>
+      <tt>[2 x [3 x [4 x i16]]]</tt><br/>
     </td>
     <td class="left">
-      3x4 array of integer values.<br/>
+      3x4 array of 32-bit integer values.<br/>
       12x10 array of single precision floating point values.<br/>
-      2x3x4 array of unsigned integer values.<br/>
+      2x3x4 array of 16-bit integer  values.<br/>
     </td>
   </tr>
 </table>
@@ -927,7 +927,7 @@
   </tr><tr class="layout">
     <td class="left"><tt>i32 (i8*, ...)</tt></td>
     <td class="left">A vararg function that takes at least one 
-      <a href="#t_pointer">pointer</a> to <tt>i8 </tt> (signed char in C), 
+      <a href="#t_pointer">pointer</a> to <tt>i8 </tt> (char in C), 
       which returns an integer.  This is the signature for <tt>printf</tt> in 
       LLVM.
     </td>
@@ -1054,12 +1054,12 @@
     <td class="left">
       <tt><4 x i32></tt><br/>
       <tt><8 x float></tt><br/>
-      <tt><2 x i32></tt><br/>
+      <tt><2 x i64></tt><br/>
     </td>
     <td class="left">
-      Packed vector of 4 integer values.<br/>
+      Packed vector of 4 32-bit integer values.<br/>
       Packed vector of 8 floating-point values.<br/>
-      Packed vector of 2 unsigned integer values.<br/>
+      Packed vector of 2 64-bit integer values.<br/>
     </td>
   </tr>
 </table>
@@ -1123,7 +1123,7 @@
   <dt><b>Integer constants</b></dt>
 
   <dd>Standard integers (such as '4') are constants of the <a
-  href="#t_integer">integer</a> type.  Negative numbers may be used with signed
+  href="#t_integer">integer</a> type.  Negative numbers may be used with 
   integer types.
   </dd>
 
@@ -1770,8 +1770,9 @@
 <h5>Semantics:</h5>
 <p>The value produced is the integer or floating point product of the
 two operands.</p>
-<p>There is no signed vs unsigned multiplication.  The appropriate
-action is taken based on the type of the operand.</p>
+<p>Because the operands are the same width, the result of an integer
+multiplication is the same whether the operands should be deemed unsigned or
+signed.</p>
 <h5>Example:</h5>
 <pre>  <result> = mul i32 4, %var          <i>; yields {i32}:result = 4 * %var</i>
 </pre>
@@ -2127,9 +2128,9 @@
  href="#t_integer">integer</a> type.  The second argument must be an '<tt>i8</tt>' type.</p>
 
 <h5>Semantics:</h5>
-<p>This instruction always performs a logical shift right operation, regardless
-of whether the arguments are unsigned or not. The <tt>var2</tt> most significant
-bits will be filled with zero bits after the shift.</p>
+<p>This instruction always performs a logical shift right operation. The 
+<tt>var2</tt> most significant bits will be filled with zero bits after the 
+shift.</p>
 
 <h5>Example:</h5>
 <pre>
@@ -4387,7 +4388,7 @@
 
 <p>
 The only argument is the value to be counted.  The argument may be of any
-unsigned integer type.  The return type must match the argument type.
+integer type.  The return type must match the argument type.
 </p>
 
 <h5>Semantics:</h5>
@@ -4423,7 +4424,7 @@
 
 <p>
 The only argument is the value to be counted.  The argument may be of any
-unsigned integer type. The return type must match the argument type.
+integer type. The return type must match the argument type.
 </p>
 
 <h5>Semantics:</h5>
@@ -4463,7 +4464,7 @@
 
 <p>
 The only argument is the value to be counted.  The argument may be of any
-unsigned integer type.  The return type must match the argument type.
+integer type.  The return type must match the argument type.
 </p>
 
 <h5>Semantics:</h5>
@@ -4500,7 +4501,7 @@
 
   <a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
   <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2007/01/04 05:19:58 $
+  Last modified: $Date: 2007/01/04 16:43:23 $
 </address>
 </body>
 </html>






More information about the llvm-commits mailing list