summaryrefslogtreecommitdiffstats
path: root/lib/Support/APInt.cpp
Commit message (Expand)AuthorAgeFilesLines
* [APInt] Move the single word cases of countTrailingZeros and countLeadingOnes...Craig Topper2017-06-231-7/+2
* [APInt] Use std::end to avoid mentioning the size of a local buffer repeatedly.Craig Topper2017-05-241-2/+2
* [APInt] Add support for dividing or remainder by a uint64_t or int64_t.Craig Topper2017-05-191-56/+197
* [APInt] Simplify a for loop initialization based on the fact that 'n' is know...Craig Topper2017-05-151-1/+1
* [APInt] Use Lo_32/Hi_32/Make_64 in a few more places in the divide code. NFCICraig Topper2017-05-131-6/+6
* [APInt] Fix typo in comment. NFCCraig Topper2017-05-131-1/+1
* [APInt] Add early outs for a division by 1 to udiv/urem/udivremCraig Topper2017-05-121-4/+18
* [APInt] In udivrem, remember the bit width in a local variable so we don't re...Craig Topper2017-05-121-4/+5
* [APInt] Add an assert to check for divide by zero in udivrem. NFCCraig Topper2017-05-121-0/+1
* [APInt] Remove unnecessary checks of rhsWords==1 with lhsWords==1 from udiv a...Craig Topper2017-05-121-2/+2
* [APInt] Fix a case where udivrem might delete and create a new allocation ins...Craig Topper2017-05-121-2/+5
* [APInt] Add a utility method to change the bit width and storage size of an A...Craig Topper2017-05-121-42/+31
* [APInt] Remove an APInt copy from the return of APInt::multiplicativeInverse.Craig Topper2017-05-111-1/+4
* [APInt] Fix typo in comment. NFCCraig Topper2017-05-111-1/+1
* [APInt] Remove an unneeded extra temporary APInt from toString.Craig Topper2017-05-111-5/+1
* [APInt] Use negate() instead of copying an APInt to negate it and then writin...Craig Topper2017-05-111-3/+3
* [APInt] Add negate helper method to implement twos complement. Use it to shor...Craig Topper2017-05-101-6/+3
* [APInt] Make toString use udivrem instead of calling the divide helper method...Craig Topper2017-05-101-8/+9
* [APInt] Use uint32_t instead of unsigned for the storage type throughout the ...Craig Topper2017-05-101-39/+34
* [APInt] Use getRawData to slightly simplify some code.Craig Topper2017-05-101-2/+2
* [APInt] Remove check for single word since single word was handled earlier in...Craig Topper2017-05-101-2/+2
* [APInt] Fix indentation of tcDivide. Combine variable declaration and initial...Craig Topper2017-05-101-15/+13
* [APInt] Use getNumWords function in udiv/urem/udivrem instead of reimplementi...Craig Topper2017-05-101-12/+6
* [APInt] Remove return value from tcFullMultiply.Craig Topper2017-05-091-11/+5
* [APInt] Use default constructor instead of explicitly creating a 1-bit APInt ...Craig Topper2017-05-081-2/+2
* [APInt] Remove 'else' after 'return' in udiv and urem. NFCCraig Topper2017-05-081-9/+7
* [APInt] Modify tcMultiplyPart's overflow detection to not depend on 'i' from ...Craig Topper2017-05-081-6/+5
* [APInt] Use std::min instead of writing the same thing with the ternary opera...Craig Topper2017-05-081-1/+1
* [APInt] Remove 'else' after 'return' in tcMultiply methods. NFCCraig Topper2017-05-081-24/+23
* [APInt] Take advantage of new operator*=(uint64_t) to remove a temporary APInt.Craig Topper2017-05-081-5/+1
* [APInt] Add support for multiplying by a uint64_t.Craig Topper2017-05-081-0/+10
* [APInt] Reduce number of allocations involved in multiplying. Reduce worst ca...Craig Topper2017-05-041-110/+10
* [APInt] Give the value union a name so we can remove assumptions on VAL being...Craig Topper2017-05-031-145/+144
* [APInt] Move APInt::getSplat out of line.Craig Topper2017-05-021-0/+11
* [APInt] Move the setBit and clearBit methods inline.Craig Topper2017-05-021-16/+0
* [APInt] Use inplace shift methods where possible. NFCICraig Topper2017-04-281-3/+4
* [APInt] Simplify the zext and sext methodsCraig Topper2017-04-241-33/+18
* [APInt] Add ashrInPlace method and rewrite ashr to make a copy and then call ...Craig Topper2017-04-241-76/+36
* [APInt] Fix repeated word in comments. NFCCraig Topper2017-04-241-2/+2
* [APInt] Make behavior of ashr by BitWidth consistent between single and multi...Craig Topper2017-04-241-1/+3
* [APInt] In sext single word case, use SignExtend64 and let the APInt construc...Craig Topper2017-04-231-5/+2
* Revert "[APInt] Fix a few places that use APInt::getRawData to operate within...Renato Golin2017-04-231-4/+3
* Revert "[APInt] Add ashrInPlace method and implement ashr using it. Also fix ...Renato Golin2017-04-231-26/+73
* [APInt] Use operator<<= instead of shl where possible. NFCCraig Topper2017-04-231-3/+4
* [APInt] Add ashrInPlace method and implement ashr using it. Also fix a bug in...Craig Topper2017-04-221-73/+26
* [APInt] Remove unnecessary min with BitWidth from countTrailingOnesSlowCase.Craig Topper2017-04-221-1/+2
* [APInt] Add WORD_MAX constant and use it instead of UINT64_MAX. NFCCraig Topper2017-04-221-15/+15
* [APInt] Add compare/compareSigned methods that return -1, 0, 1. Reimplement s...Craig Topper2017-04-211-35/+9
* [APInt] Add isSubsetOf method that can check if one APInt is a subset of anot...Craig Topper2017-04-201-0/+8
* [APInt] Implement APInt::intersects without creating a temporary APInt in the...Craig Topper2017-04-201-0/+8