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

Chris Lattner lattner at cs.uiuc.edu
Sun May 15 12:39:42 PDT 2005



Changes in directory llvm/docs:

LangRef.html updated: 1.106 -> 1.107
---
Log message:

ctlz = most signficant bits, cttz = least sig


---
Diffs of the changes:  (+19 -16)

 LangRef.html |   35 +++++++++++++++++++----------------
 1 files changed, 19 insertions(+), 16 deletions(-)


Index: llvm/docs/LangRef.html
diff -u llvm/docs/LangRef.html:1.106 llvm/docs/LangRef.html:1.107
--- llvm/docs/LangRef.html:1.106	Fri May 13 17:25:59 2005
+++ llvm/docs/LangRef.html	Sun May 15 14:39:26 2005
@@ -149,8 +149,8 @@
       <li><a href="#int_count">Bit counting Intrinsics</a>
         <ol>
           <li><a href="#int_ctpop">'<tt>llvm.ctpop</tt>' Intrinsic </a></li>
-          <li><a href="#int_cttz">'<tt>llvm.cttz</tt>' Intrinsic </a></li>
           <li><a href="#int_ctlz">'<tt>llvm.ctlz</tt>' Intrinsic </a></li>
+          <li><a href="#int_cttz">'<tt>llvm.cttz</tt>' Intrinsic </a></li>
         </ol>
       </li>
       <li><a href="#int_debugger">Debugger intrinsics</a></li>
@@ -3205,74 +3205,77 @@
 
 <!-- _______________________________________________________________________ -->
 <div class="doc_subsubsection">
-  <a name="int_cttz">'<tt>llvm.cttz</tt>' Intrinsic</a>
+  <a name="int_ctlz">'<tt>llvm.ctlz</tt>' Intrinsic</a>
 </div>
 
 <div class="doc_text">
 
 <h5>Syntax:</h5>
 <pre>
-  declare int %llvm.cttz(int <src>)
+  declare int %llvm.ctlz(int <src>)
 
 </pre>
 
 <h5>Overview:</h5>
 
 <p>
-The '<tt>llvm.cttz</tt>' intrinsic counts the number of trailing zeros.
+The '<tt>llvm.ctlz</tt>' intrinsic counts the number of leading zeros in a
+variable.
 </p>
 
 <h5>Arguments:</h5>
 
 <p>
 The only argument is the value to be counted.  The argument may be of any
-integer type.  The return type must match the argument type.
+integer type. The return type must match the argument type.
 </p>
 
 <h5>Semantics:</h5>
 
 <p>
-The '<tt>llvm.cttz</tt>' intrinsic counts the trailing zeros in a variable.  If
-the src == 0 then the result is the size in bits of the type of src.
+The '<tt>llvm.ctlz</tt>' intrinsic counts the leading (most significant) zeros
+in a variable.  If the src == 0 then the result is the size in bits of the type
+of src. For example, <tt>llvm.cttz(int 2) = 30</tt>.
 </p>
 </div>
 
+
+
 <!-- _______________________________________________________________________ -->
 <div class="doc_subsubsection">
-  <a name="int_ctlz">'<tt>llvm.ctlz</tt>' Intrinsic</a>
+  <a name="int_cttz">'<tt>llvm.cttz</tt>' Intrinsic</a>
 </div>
 
 <div class="doc_text">
 
 <h5>Syntax:</h5>
 <pre>
-  declare int %llvm.ctlz(int <src>)
+  declare int %llvm.cttz(int <src>)
 
 </pre>
 
 <h5>Overview:</h5>
 
 <p>
-The '<tt>llvm.ctlz</tt>' intrinsic counts the number of leading zeros in a
-variable.
+The '<tt>llvm.cttz</tt>' intrinsic counts the number of trailing zeros.
 </p>
 
 <h5>Arguments:</h5>
 
 <p>
 The only argument is the value to be counted.  The argument may be of any
-integer type. The return type must match the argument type.
+integer type.  The return type must match the argument type.
 </p>
 
 <h5>Semantics:</h5>
 
 <p>
-The '<tt>llvm.ctlz</tt>' intrinsic counts the leading zeros in a variable.  If
-the src == 0 then the result is the size in bits of the type of src.
+The '<tt>llvm.cttz</tt>' intrinsic counts the trailing (least significant) zeros
+in a variable.  If the src == 0 then the result is the size in bits of the type
+of src.  For example, <tt>llvm.cttz(2) = 1</tt>.
 </p>
 </div>
 
-
 <!-- ======================================================================= -->
 <div class="doc_subsection">
   <a name="int_debugger">Debugger Intrinsics</a>
@@ -3298,7 +3301,7 @@
 
   <a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
   <a href="http://llvm.cs.uiuc.edu">The LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2005/05/13 22:25:59 $
+  Last modified: $Date: 2005/05/15 19:39:26 $
 </address>
 </body>
 </html>






More information about the llvm-commits mailing list