diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-10-20 07:07:24 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-10-20 07:07:24 +0000 |
commit | b83eb6447ba155342598f0fabe1f08f5baa9164a (patch) | |
tree | a5822f5fdac89033b7b16ba8e5aaf1ae10833b1c /docs/ProgrammersManual.html | |
parent | 6e7dd9db6bf677c9161a6ecc12f90651cf1231e0 (diff) | |
download | llvm-b83eb6447ba155342598f0fabe1f08f5baa9164a.tar.gz llvm-b83eb6447ba155342598f0fabe1f08f5baa9164a.tar.bz2 llvm-b83eb6447ba155342598f0fabe1f08f5baa9164a.tar.xz |
For PR950:
This patch implements the first increment for the Signless Types feature.
All changes pertain to removing the ConstantSInt and ConstantUInt classes
in favor of just using ConstantInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ProgrammersManual.html')
-rw-r--r-- | docs/ProgrammersManual.html | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index bd79747626..950c937824 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -2390,8 +2390,8 @@ 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, 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 @@ ConstantArray etc for representing the various types of Constants.</p> <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. |