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

Reid Spencer reid at x10sys.com
Thu Jan 11 19:36:48 PST 2007



Changes in directory llvm/docs:

ProgrammersManual.html updated: 1.102 -> 1.103
---
Log message:

Update for changes in the IR. The ConstantIntegral, ConstantBool, and
ConstantInt classes were merged into just ConstantInt.


---
Diffs of the changes:  (+7 -4)

 ProgrammersManual.html |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)


Index: llvm/docs/ProgrammersManual.html
diff -u llvm/docs/ProgrammersManual.html:1.102 llvm/docs/ProgrammersManual.html:1.103
--- llvm/docs/ProgrammersManual.html:1.102	Sat Jan  6 18:41:39 2007
+++ llvm/docs/ProgrammersManual.html	Thu Jan 11 21:36:33 2007
@@ -2365,7 +2365,7 @@
 <div class="doc_text">
 
 <p>Constant represents a base class for different types of constants. It
-is subclassed by ConstantBool, ConstantInt, ConstantArray etc for representing 
+is subclassed by  ConstantInt, ConstantArray, etc. for representing 
 the various types of Constants.</p>
 
 </div>
@@ -2381,12 +2381,16 @@
 <div class="doc_subsubsection">Important Subclasses of Constant </div>
 <div class="doc_text">
 <ul>
-  <li>ConstantInt : This subclass of Constant represents an integer constant.
+  <li>ConstantInt : This subclass of Constant represents an integer constant of
+  any width, including boolean (1 bit integer).
     <ul>
       <li><tt>int64_t getSExtValue() const</tt>: Returns the underlying value of
       this constant as a sign extended signed integer value.</li>
       <li><tt>uint64_t getZExtValue() const</tt>: Returns the underlying value 
       of this constant as a zero extended unsigned integer value.</li>
+      <li><tt>static ConstantInt* get(const Type *Ty, uint64_t Val)</tt>: 
+      Returns the ConstantInt object that represents the value provided by 
+      <tt>Val</tt> for integer type <tt>Ty</tt>.</li>
     </ul>
   </li>
   <li>ConstantFP : This class represents a floating point constant.
@@ -2395,7 +2399,6 @@
       this constant. </li>
     </ul>
   </li>
-  <li>ConstantBool : This represents a boolean constant.
     <ul>
       <li><tt>bool getValue() const</tt>: Returns the underlying value of this 
       constant. </li>
@@ -2519,7 +2522,7 @@
   <a href="mailto:dhurjati at cs.uiuc.edu">Dinakar Dhurjati</a> and
   <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/07 00:41:39 $
+  Last modified: $Date: 2007/01/12 03:36:33 $
 </address>
 
 </body>






More information about the llvm-commits mailing list