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

Reid Spencer reid at x10sys.com
Thu Oct 19 13:59:08 PDT 2006



Changes in directory llvm/docs:

ProgrammersManual.html updated: 1.94 -> 1.94.2.1
Stacker.html updated: 1.20 -> 1.20.6.1
---
Log message:

Adjust documentation for Constant[SU]Int -> ConstantInt.


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

 ProgrammersManual.html |   21 ++++++++-------------
 Stacker.html           |   12 ++++++------
 2 files changed, 14 insertions(+), 19 deletions(-)


Index: llvm/docs/ProgrammersManual.html
diff -u llvm/docs/ProgrammersManual.html:1.94 llvm/docs/ProgrammersManual.html:1.94.2.1
--- llvm/docs/ProgrammersManual.html:1.94	Wed Oct 11 13:00:22 2006
+++ llvm/docs/ProgrammersManual.html	Thu Oct 19 15:58:53 2006
@@ -2390,8 +2390,8 @@
 <div class="doc_text">
 
 <p>Constant represents a base class for different types of constants. It
-is subclassed by ConstantBool, ConstantInt, ConstantSInt, ConstantUInt,
-ConstantArray etc for representing the various types of Constants.</p>
+is subclassed by ConstantBool, ConstantInt, ConstantArray etc for representing 
+the various types of Constants.</p>
 
 </div>
 
@@ -2406,17 +2406,12 @@
 <div class="doc_subsubsection">Important Subclasses of Constant </div>
 <div class="doc_text">
 <ul>
-  <li>ConstantSInt : This subclass of Constant represents a signed integer 
-  constant.
+  <li>ConstantInt : This subclass of Constant represents an integer constant.
     <ul>
-      <li><tt>int64_t getValue() const</tt>: Returns the underlying value of
-      this constant. </li>
-    </ul>
-  </li>
-  <li>ConstantUInt : This class represents an unsigned integer.
-    <ul>
-      <li><tt>uint64_t getValue() const</tt>: Returns the underlying value of 
-      this constant. </li>
+      <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>
     </ul>
   </li>
   <li>ConstantFP : This class represents a floating point constant.
@@ -2559,7 +2554,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: 2006/10/11 18:00:22 $
+  Last modified: $Date: 2006/10/19 20:58:53 $
 </address>
 
 </body>


Index: llvm/docs/Stacker.html
diff -u llvm/docs/Stacker.html:1.20 llvm/docs/Stacker.html:1.20.6.1
--- llvm/docs/Stacker.html:1.20	Mon Mar 13 23:39:39 2006
+++ llvm/docs/Stacker.html	Thu Oct 19 15:58:53 2006
@@ -139,7 +139,7 @@
 Value* 
 expression(BasicBlock* bb, Value* a, Value* b, Value* x, Value* y )
 {
-    ConstantSInt* one = ConstantSInt::get(Type::IntTy, 1);
+    ConstantInt* one = ConstantInt::get(Type::IntTy, 1);
     BinaryOperator* or1 = BinaryOperator::createOr(a, b, "", bb);
     BinaryOperator* add1 = BinaryOperator::createAdd(x, one, "", bb);
     BinaryOperator* add2 = BinaryOperator::createAdd(y, one, "", bb);
@@ -308,7 +308,7 @@
 </p>
 <pre>
 std::vector<Value*> index_vector;
-index_vector.push_back( ConstantSInt::get( Type::LongTy, 0 );
+index_vector.push_back( ConstantInt::get( Type::LongTy, 0 );
 // ... push other indices ...
 GetElementPtrInst* gep = new GetElementPtrInst( ptr, index_vector );
 </pre>
@@ -367,9 +367,9 @@
 <ul>
  <li>Constants are Values like anything else and can be operands of instructions</li>
  <li>Integer constants, frequently needed, can be created using the static "get"
- methods of the ConstantInt, ConstantSInt, and ConstantUInt classes. The nice thing
- about these is that you can "get" any kind of integer quickly.</li>
- <li>There's a special method on Constant class which allows you to get the null 
+ methods of the ConstantInt class. The nice thing about these is that you can 
+ "get" any kind of integer quickly.</li>
+ <li>There's a special method on Constant class which allows you to get the null
  constant for <em>any</em> type. This is really handy for initializing large 
  arrays or structures, etc.</li>
 </ul>
@@ -1405,7 +1405,7 @@
 
   <a href="mailto:rspencer at x10sys.com">Reid Spencer</a><br>
   <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2006/03/14 05:39:39 $
+  Last modified: $Date: 2006/10/19 20:58:53 $
 </address>
 
 </body>






More information about the llvm-commits mailing list