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