aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/APInt.cpp
AgeCommit message (Expand)Author
2011-07-18Add APInt(numBits, ArrayRef<uint64_t> bigVal) constructor to prevent future a...Jeffrey Yasskin
2011-06-15add option for literal formatting to APInt::toString()Ted Kremenek
2011-05-22fix a bug for hosts without round, PR8893.Chris Lattner
2011-04-15Fix a ton of comment typos found by codespell. Patch byChris Lattner
2011-03-27Constant folding support for calls to umul.with.overflow(), basically identic...Frits van Bommel
2011-03-17Add an argument to APInt's magic udiv calculation to specify the number of bi...Benjamin Kramer
2011-02-21The signed version of our "magic number" computation for the integer approxim...Cameron Zwarich
2010-12-07PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() andJay Foad
2010-12-04APInt: microoptimize a few methods.Benjamin Kramer
2010-12-01PR5207: Rename overloaded APInt methods set(), clear(), flip() toJay Foad
2010-11-30PR5207: Make APInt::set(), APInt::clear() and APInt::flip() return void.Jay Foad
2010-11-18Bounds-check APInt's operator[].Dan Gohman
2010-10-14fix a bug I introduced, no idea how this didn't repro right.Chris Lattner
2010-10-14add uadd_ov/usub_ov to apint, consolidate constant foldingChris Lattner
2010-10-13constify these methods.Chris Lattner
2010-10-13add a few operations for signed operations that also Chris Lattner
2010-08-18stomp some more undefined behavior, PR7775.Chris Lattner
2010-07-14Don't pass StringRef by reference.Benjamin Kramer
2010-05-15improve portability to systems that don't have round, patch byChris Lattner
2010-03-26improve portability to minix, patch by Chris Lattner
2010-03-24Fix minor style issues.Dan Gohman
2010-02-28Teach APFloat how to create both QNaNs and SNaNs and with arbitrary-widthJohn McCall
2010-02-10Fix "the the" and similar typos.Dan Gohman
2010-02-03Make APInt::countLeadingZerosSlowCase() treat the contents of padding bitsJohn McCall
2010-01-05Change errs() to dbgs().David Greene
2009-12-24Set Remainder before Quotient in case Quotient and LHS alias. The newJohn McCall
2009-09-20Tabs -> spaces, and remove trailing whitespace.Daniel Dunbar
2009-09-06Remove some unused variables and methods warned about byDuncan Sands
2009-08-23remove the dead std::ostream APInt inserterChris Lattner
2009-08-21Clean up the APInt function getDigit.Erick Tryzelaar
2009-08-21Update error messages for '+'. Fix grammar and make the twoEric Christopher
2009-08-21Fix trailing whitespace and 80-col violation.Eric Christopher
2009-08-21Fix bug with APInt::getBitsNeeded with for base 10 numbers 0-9.Erick Tryzelaar
2009-08-21Allow '+' to appear in APInt strings, and add more unit tests.Erick Tryzelaar
2009-08-19Switch to SmallString::str from SmallString::c_str, and removeDaniel Dunbar
2009-08-13Convert APint::{fromString,APInt,getBitsNeeded} to use StringRef.Daniel Dunbar
2009-08-12Add attempted idiotproofing comment per review.Dale Johannesen
2009-08-12Fix a nondeterministic bug in APInt::roundToDouble;Dale Johannesen
2009-07-14llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.Torok Edwin
2009-07-13Switch to raw_ostream.Daniel Dunbar
2009-07-11assert(0) -> LLVM_UNREACHABLE.Torok Edwin
2009-06-30Reapply 74494, this time removing the conflicting definition of operator<<Dan Gohman
2009-06-30Temporarily revert r74494. It was causing failures in the unit tests.Bill Wendling
2009-06-30Define an operator<< for APInt to be used with std::ostream.Dan Gohman
2009-05-2180 column violation.Evan Cheng
2009-05-13Fix whitespacing (space after switch).Mike Stump
2009-04-30Move helper functions for optimizing division by constant into the APIntJay Foad
2009-04-25Fix PR4040: APInt's string constructor is too strictChris Lattner
2009-04-01Use CHAR_BIT instead of hard-coding 8 in several places where itDan Gohman
2009-03-19Fix comment typo.Duncan Sands