summaryrefslogtreecommitdiff
path: root/llvm/lib/Support/APInt.cpp
AgeCommit message (Expand)Author
2017-11-24Revert 318963 "[APInt] Don't print debug messages from the APInt knuth divisi...Craig Topper
2017-11-24[APInt] Don't print debug messages from the APInt knuth division algorithm by...Craig Topper
2017-10-15Reverting r315590; it did not include changes for llvm-tblgen, which is causi...Aaron Ballman
2017-10-12[dump] Remove NDEBUG from test to enable dump methods [NFC]Don Hinton
2017-06-23[APInt] Move the single word cases of countTrailingZeros and countLeadingOnes...Craig Topper
2017-05-24[APInt] Use std::end to avoid mentioning the size of a local buffer repeatedly.Craig Topper
2017-05-19[APInt] Add support for dividing or remainder by a uint64_t or int64_t.Craig Topper
2017-05-15[APInt] Simplify a for loop initialization based on the fact that 'n' is know...Craig Topper
2017-05-13[APInt] Use Lo_32/Hi_32/Make_64 in a few more places in the divide code. NFCICraig Topper
2017-05-13[APInt] Fix typo in comment. NFCCraig Topper
2017-05-12[APInt] Add early outs for a division by 1 to udiv/urem/udivremCraig Topper
2017-05-12[APInt] In udivrem, remember the bit width in a local variable so we don't re...Craig Topper
2017-05-12[APInt] Add an assert to check for divide by zero in udivrem. NFCCraig Topper
2017-05-12[APInt] Remove unnecessary checks of rhsWords==1 with lhsWords==1 from udiv a...Craig Topper
2017-05-12[APInt] Fix a case where udivrem might delete and create a new allocation ins...Craig Topper
2017-05-12[APInt] Add a utility method to change the bit width and storage size of an A...Craig Topper
2017-05-11[APInt] Remove an APInt copy from the return of APInt::multiplicativeInverse.Craig Topper
2017-05-11[APInt] Fix typo in comment. NFCCraig Topper
2017-05-11[APInt] Remove an unneeded extra temporary APInt from toString.Craig Topper
2017-05-11[APInt] Use negate() instead of copying an APInt to negate it and then writin...Craig Topper
2017-05-10[APInt] Add negate helper method to implement twos complement. Use it to shor...Craig Topper
2017-05-10[APInt] Make toString use udivrem instead of calling the divide helper method...Craig Topper
2017-05-10[APInt] Use uint32_t instead of unsigned for the storage type throughout the ...Craig Topper
2017-05-10[APInt] Use getRawData to slightly simplify some code.Craig Topper
2017-05-10[APInt] Remove check for single word since single word was handled earlier in...Craig Topper
2017-05-10[APInt] Fix indentation of tcDivide. Combine variable declaration and initial...Craig Topper
2017-05-10[APInt] Use getNumWords function in udiv/urem/udivrem instead of reimplementi...Craig Topper
2017-05-09[APInt] Remove return value from tcFullMultiply.Craig Topper
2017-05-08[APInt] Use default constructor instead of explicitly creating a 1-bit APInt ...Craig Topper
2017-05-08[APInt] Remove 'else' after 'return' in udiv and urem. NFCCraig Topper
2017-05-08[APInt] Modify tcMultiplyPart's overflow detection to not depend on 'i' from ...Craig Topper
2017-05-08[APInt] Use std::min instead of writing the same thing with the ternary opera...Craig Topper
2017-05-08[APInt] Remove 'else' after 'return' in tcMultiply methods. NFCCraig Topper
2017-05-08[APInt] Take advantage of new operator*=(uint64_t) to remove a temporary APInt.Craig Topper
2017-05-08[APInt] Add support for multiplying by a uint64_t.Craig Topper
2017-05-04[APInt] Reduce number of allocations involved in multiplying. Reduce worst ca...Craig Topper
2017-05-03[APInt] Give the value union a name so we can remove assumptions on VAL being...Craig Topper
2017-05-02[APInt] Move APInt::getSplat out of line.Craig Topper
2017-05-02[APInt] Move the setBit and clearBit methods inline.Craig Topper
2017-04-28[APInt] Use inplace shift methods where possible. NFCICraig Topper
2017-04-24[APInt] Simplify the zext and sext methodsCraig Topper
2017-04-24[APInt] Add ashrInPlace method and rewrite ashr to make a copy and then call ...Craig Topper
2017-04-24[APInt] Fix repeated word in comments. NFCCraig Topper
2017-04-24[APInt] Make behavior of ashr by BitWidth consistent between single and multi...Craig Topper
2017-04-23[APInt] In sext single word case, use SignExtend64 and let the APInt construc...Craig Topper
2017-04-23Revert "[APInt] Fix a few places that use APInt::getRawData to operate within...Renato Golin
2017-04-23Revert "[APInt] Add ashrInPlace method and implement ashr using it. Also fix ...Renato Golin
2017-04-23[APInt] Use operator<<= instead of shl where possible. NFCCraig Topper
2017-04-22[APInt] Add ashrInPlace method and implement ashr using it. Also fix a bug in...Craig Topper
2017-04-22[APInt] Remove unnecessary min with BitWidth from countTrailingOnesSlowCase.Craig Topper