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

Andrew Lenharth alenhar2 at cs.uiuc.edu
Tue May 3 11:02:05 PDT 2005



Changes in directory llvm/docs:

LangRef.html updated: 1.96 -> 1.97
---
Log message:

initial descriptions of count intrinsics

---
Diffs of the changes:  (+118 -1)

 LangRef.html |  119 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 118 insertions(+), 1 deletion(-)


Index: llvm/docs/LangRef.html
diff -u llvm/docs/LangRef.html:1.96 llvm/docs/LangRef.html:1.97
--- llvm/docs/LangRef.html:1.96	Sun May  1 17:22:57 2005
+++ llvm/docs/LangRef.html	Tue May  3 13:01:48 2005
@@ -145,6 +145,13 @@
           <li><a href="#i_isunordered">'<tt>llvm.isunordered</tt>' Intrinsic</a></li>
         </ol>
       </li>
+      <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>
+        </ol>
+      </li>
       <li><a href="#int_debugger">Debugger intrinsics</a></li>
     </ol>
   </li>
@@ -3029,6 +3036,116 @@
 </div>
 
 
+<!-- ======================================================================= -->
+<div class="doc_subsection">
+  <a name="int_count">Bit Counting Intrinsics</a>
+</div>
+
+<div class="doc_text">
+<p>
+LLVM provides intrinsics for a few important bit counting operations.
+These allow efficient code generation for some algorithms.
+</p>
+
+</div>
+
+<!-- _______________________________________________________________________ -->
+<div class="doc_subsubsection">
+  <a name="int_ctpop">'<tt>llvm.ctpop</tt>' Intrinsic</a>
+</div>
+
+<div class="doc_text">
+
+<h5>Syntax:</h5>
+<pre>
+  declare int %llvm.ctpop(int <src>)
+
+</pre>
+
+<h5>Overview:</h5>
+
+<p>
+The '<tt>llvm.ctpop</tt>' intrinsic counts the number of ones in a variable.
+</p>
+
+<h5>Arguments:</h5>
+
+<p>
+The only argument is the value to be counted.
+</p>
+
+<h5>Semantics:</h5>
+
+<p>
+The '<tt>llvm.ctpop</tt>' intrinsic counts the 1's in a variable.
+</p>
+</div>
+
+<!-- _______________________________________________________________________ -->
+<div class="doc_subsubsection">
+  <a name="int_cttz">'<tt>llvm.cttz</tt>' Intrinsic</a>
+</div>
+
+<div class="doc_text">
+
+<h5>Syntax:</h5>
+<pre>
+  declare int %llvm.cttz(int <src>)
+
+</pre>
+
+<h5>Overview:</h5>
+
+<p>
+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.
+</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.
+</p>
+</div>
+
+<!-- _______________________________________________________________________ -->
+<div class="doc_subsubsection">
+  <a name="int_ctlz">'<tt>llvm.ctlz</tt>' Intrinsic</a>
+</div>
+
+<div class="doc_text">
+
+<h5>Syntax:</h5>
+<pre>
+  declare int %llvm.ctlz(int <src>)
+
+</pre>
+
+<h5>Overview:</h5>
+
+<p>
+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.
+</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.
+</p>
+</div>
 
 
 <!-- ======================================================================= -->
@@ -3056,7 +3173,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/01 22:22:57 $
+  Last modified: $Date: 2005/05/03 18:01:48 $
 </address>
 </body>
 </html>






More information about the llvm-commits mailing list