summaryrefslogtreecommitdiff
path: root/docs/ProgrammersManual.html
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-12 03:36:33 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-12 03:36:33 +0000
commit53bfebc967c0a68023db8fe95f7319f8ab724998 (patch)
treecfdcc839d84bb9439eba097fcb09233192c1fa28 /docs/ProgrammersManual.html
parentc78f33757d606315c642ec598116cf9db63b97c2 (diff)
downloadllvm-53bfebc967c0a68023db8fe95f7319f8ab724998.tar.gz
llvm-53bfebc967c0a68023db8fe95f7319f8ab724998.tar.bz2
llvm-53bfebc967c0a68023db8fe95f7319f8ab724998.tar.xz
Update for changes in the IR. The ConstantIntegral, ConstantBool, and
ConstantInt classes were merged into just ConstantInt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ProgrammersManual.html')
-rw-r--r--docs/ProgrammersManual.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html
index fae99d6cd7..d98573e253 100644
--- a/docs/ProgrammersManual.html
+++ b/docs/ProgrammersManual.html
@@ -2365,7 +2365,7 @@ provide a name for it (probably based on the name of the translation unit).</p>
<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 @@ the various types of Constants.</p>
<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 @@ the various types of Constants.</p>
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>