History log of /external/llvm/include/llvm/ADT/APSInt.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd81d94322a39503e4a3e87b6ee03d4fcb3465fb 21-Jul-2014 Stephen Hines <srhines@google.com> Update LLVM for rebase to r212749.

Includes a cherry-pick of:
r212948 - fixes a small issue with atomic calls

Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
/external/llvm/include/llvm/ADT/APSInt.h
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/include/llvm/ADT/APSInt.h
b69143c6a9bfc969e7c95bbd48b83bb962086070 16-Nov-2013 Benjamin Kramer <benny.kra@googlemail.com> Annotate APInt methods where it's not clear whether they are in place with warn_unused_result.

Fix ScalarEvolution bugs uncovered by this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194928 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
2adf8ccbf0611df6393c30737d87faaf38cdcd0c 21-Mar-2013 Jakub Staszak <kubastaszak@gmail.com> Use pre-inc, pre-dec when possible.
They are generally faster (at least not slower) than post-inc, post-dec.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177608 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
674be02d525d4e24bc6943ed9274958c580bcfbc 10-Jan-2013 Jakub Staszak <kubastaszak@gmail.com> Fix include guards so they exactly match file names.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172025 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
e8ce626308eb047d226847660e7dceed1169038f 20-Dec-2012 Richard Smith <richard-llvm@metafoo.co.uk> Don't leave IsUnsigned uninitialized in a default-constructed APSInt. Copying
such a structure has undefined behavior. Caught by -fsanitize=bool.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170652 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
5e31044e119c75899b91ca97eb4d8ba786afc01c 23-Jul-2012 Richard Trieu <rtrieu@google.com> Add operator== to APSInt. This will compare the signed bit before doing
the comparison. This prevents large unsigned integers from being equal to
signed negative integers of the same bit width.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160642 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
5449a1db40b75586c1daf70a14396295e7b3fe24 15-Jul-2012 Eric Christopher <echristo@apple.com> Move IsSameValue from clang's ASTImporter to be methods on the
APInt/APSInt classes.

Part of rdar://11875995

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160223 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
40f8f6264d5af2c38e797e0dc59827cd231e8ff7 07-Dec-2010 Jay Foad <jay.foad@gmail.com> PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() and
zextOrTrunc(), and APSInt methods extend(), extOrTrunc() and new method
trunc(), to be const and to return a new value instead of modifying the
object in place.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121120 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
3c172a29598aabf76ddaf02f4fd7ab85df74ecd0 16-Feb-2009 Ted Kremenek <kremenek@apple.com> Fix bug where APSInt::operator-- incremented instead of decremented.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64687 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
af9b6b264f2bf4315c25b286a1c24331038545e0 09-Feb-2009 Bill Wendling <isanbard@gmail.com> These function return 'void'. Don't have 'return' return anything.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64136 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
072e99ef9bd7e731c06716d8a21f630e429ddd82 30-Jan-2009 Chris Lattner <sabre@nondot.org> Fix a bug in getMaxValue/getMinValue to pass the right signedness the
the constructed APSInt, patch suggested by Ben Laurie!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63362 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
3a54b3dc87a581c203b18050b4f787b4ca28a12c 09-Jan-2009 Misha Brukman <brukman+llvm@gmail.com> Removed trailing whitespace.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62000 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
ed871805f718f6bd0f9f32888b82c66545fc1157 19-Sep-2008 Ted Kremenek <kremenek@apple.com> Added static methods to APSInt: getMinValue and getMaxValue.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56355 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
944fac71e082cc2664cc71b4d3f6c72bab7143fb 24-Aug-2008 Chris Lattner <sabre@nondot.org> Switch the asmprinter (.ll) and all the stuff it requires over to
use raw_ostream instead of std::ostream. Among other goodness,
this speeds up llvm-dis of kc++ with a release build from 0.85s
to 0.49s (88% faster).

Other interesting changes:
1) This makes Value::print be non-virtual.
2) AP[S]Int and ConstantRange can no longer print to ostream directly,
use raw_ostream instead.
3) This fixes a bug in raw_os_ostream where it didn't flush itself
when destroyed.
4) This adds a new SDNode::print method, instead of only allowing "dump".


A lot of APIs have both std::ostream and raw_ostream versions, it would
be useful to go through and systematically anihilate the std::ostream
versions.

This passes dejagnu, but there may be minor fallout, plz let me know if
so and I'll fix it.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
fad86b003a839cef40ec8ce8408322f4913368ca 17-Aug-2008 Chris Lattner <sabre@nondot.org> Rework the routines that convert AP[S]Int into a string. Now, instead of
returning an std::string by value, it fills in a SmallString/SmallVector
passed in. This significantly reduces string thrashing in some cases.

More specifically, this:
- Adds an operator<< and a print method for APInt that allows you to
directly send them to an ostream.
- Reimplements APInt::toString to be much simpler and more efficient
algorithmically in addition to not thrashing strings quite as much.

This speeds up llvm-dis on kc++ by 7%, and may also slightly speed up the
asmprinter. This also fixes a bug I introduced into the asmwriter in a
previous patch w.r.t. alias printing.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54873 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
7fb842420a87d984196454b3e43fc54267f79edc 13-Aug-2008 Daniel Dunbar <daniel@zuster.org> Add default constructor to APSInt
- Creates uninitialized APInt.
- Prevents need for embedding arbitrary constants when used as an out
parameter, for example.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54757 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
86383e1f7cc8c31eafc6e3d8a67ce6f23d1bce63 08-Feb-2008 Ted Kremenek <kremenek@apple.com> Constified operator<< in APSInt.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46882 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
d9719495c376873abddbe13a9675bb3e7103dba7 04-Feb-2008 Ted Kremenek <kremenek@apple.com> constified operator~().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46707 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
d25c9cd3ff5786655201c550ae76f1b89815e1c7 29-Jan-2008 Ted Kremenek <kremenek@apple.com> Altered ctor for APSInt to accept an optional "isUnsigned" flag. Default
behavior is unchanged.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46521 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
cadf873c83ad7ea7c638e6d98fc5f20752702b03 24-Jan-2008 Ted Kremenek <kremenek@apple.com> Added additional overloaded operators for APSInt to match the operators of
APInt.

While some operators were already specifically overloaded for APSInt, others
resulted in using the overloaded operator methods in APInt, which would result
in the signedness bit being lost.

Modified the APSInt(APInt&) constructor to be "explicit" and to take an
extra (optional) flag to indicate the signedness. Making the ctor explicit
will catch any implicit conversations between APSInt -> APInt -> APSInt that
results in the signedness flag being lost.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46316 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
4048a082847cea72431aa8235f54941ed064913b 19-Jan-2008 Ted Kremenek <kremenek@apple.com> Added FoldingSet style 'profiling' support for APSInt.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46189 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
7ed47a13356daed2a34cd2209a31f92552e3bdd8 29-Dec-2007 Chris Lattner <sabre@nondot.org> Don't attribute in file headers anymore. See llvmdev for the
discussion of this change. Boy are my fingers tired. ;-)



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45411 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
7f46734b66306bb81720fbe617c15b1184b13807 26-Oct-2007 Ted Kremenek <kremenek@apple.com> Fixed incorrect "path name" in preamble (comment) of header file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43402 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
efd4a5144b03f61ebfd53d0245176f95e1170fb8 17-Oct-2007 Hartmut Kaiser <hartmut.kaiser@gmail.com> Updated VC++ build system.
Silenced some VC warnings.

I'm getting linker errors, though: unresolved externals:

llvm::Split<class llvm::BasicBlock *,struct llvm::GraphTraits<class llvm::BasicBlock *> >(class llvm::DominatorTreeBase<class llvm::BasicBlock> &,class llvm::BasicBlock *)

and

llvm::Split<struct llvm::Inverse<class llvm::BasicBlock *>,struct llvm::GraphTraits<struct llvm::Inverse<class llvm::BasicBlock *> > >(class llvm::DominatorTreeBase<class llvm::BasicBlock> &,class llvm::BasicBlock *)

Where are these defined?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43073 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
006f5a3c66cfd4bb648a4fe5f4c9bb0b86ccf940 23-Aug-2007 Chris Lattner <sabre@nondot.org> default this to radix 10 like the toString(Un)Signed methods.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41311 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
028760fd88081964ace51e4205e28ff52fc1f47a 23-Aug-2007 Chris Lattner <sabre@nondot.org> Avoid hiding issues.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41310 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
9132a2b81842b0e2b77703fab3e6fe7467f859bb 23-Aug-2007 Chris Lattner <sabre@nondot.org> rename APInt::toString -> toStringUnsigned for symmetry with toStringSigned()

Add an APSInt::toString() method.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41309 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
bfbfcdafbeb70d45a7fb9c983dbd724775c1281a 02-Aug-2007 Anders Carlsson <andersca@mac.com> Fix bug spotted by Chris.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40725 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
7ccd9ec4f40d1cdf740c98dab8e212943a4b4863 02-Aug-2007 Anders Carlsson <andersca@mac.com> Add extend and extOrTrunc methods that do sign or zero extension depending on whether the integer is signed or not

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40724 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
f7b71c64cfe805d0a48d18d55a739ce8a7e6851a 16-Jul-2007 Chris Lattner <sabre@nondot.org> add a helper method.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39885 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
403949ea93d78796fcd803e75c97b68e53e331a9 10-Apr-2007 Chris Lattner <sabre@nondot.org> add missing methods, mark stuff const


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35862 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h
db8918a98ff001d0c37abf41bc62364595340035 05-Apr-2007 Chris Lattner <sabre@nondot.org> Add a helper class (APSInt) which can represent an APInt along with sign
information. This is useful when a value does have a sign associated with
it. This shouldn't be used generally in LLVM for mid-level optimizer stuff.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35681 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APSInt.h