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