aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/APInt.cpp
AgeCommit message (Expand)AuthorFilesLines
2019-07-02[C++2a] Add __builtin_bit_cast, used to implement std::bit_castErik Pilkington1-0/+53
2019-06-29[APInt] Fix getBitsNeeded for INT_MIN valuesDmitry Venikov1-1/+4
2019-06-27[CodeGen] [SelectionDAG] More efficient code for X % C == 0 (UREM case) (try 3)Roman Lebedev1-0/+2
2019-04-19[APInt] Optimize umul_ovFangrui Song1-5/+12
2019-01-19Update the file headers across all of the LLVM projects in the monorepoChandler Carruth1-4/+3
2018-11-20[APInt] Add methods for saturated add and subSanjay Patel1-0/+36
2018-09-08ADT: add <bit> header, implement C++20 bit_cast, useJF Bastien1-14/+7
2018-09-07Revert "ADT: add <bit> header, implement C++20 bit_cast, use"JF Bastien1-7/+14
2018-09-07ADT: add <bit> header, implement C++20 bit_cast, useJF Bastien1-14/+7
2018-08-16[ADT] Replace APInt::WORD_MAX with APInt::WORDTYPE_MAXSimon Pilgrim1-9/+9
2018-08-06Fix modules build with different technique to suppress Knuth debuggingTim Northover1-37/+33
2018-08-02Unbreak build after r338758: specify lambda return type explicitlyKrzysztof Parzyszek1-1/+1
2018-08-02[SCEV] Properly solve quadratic equationsKrzysztof Parzyszek1-0/+191
2018-07-19[APInt] Keep the original bit width in quotient and remainderKrzysztof Parzyszek1-16/+17
2018-06-26Fix MSVC "not all control paths return a value" warnings. NFCI.Simon Pilgrim1-0/+2
2018-06-25[APInt] Add helpers for rounding u/sdivs.Tim Shen1-0/+46
2018-05-14Rename DEBUG macro to LLVM_DEBUG.Nicola Zaghen1-35/+37
2018-05-01Remove @brief commands from doxygen comments, too.Adrian Prantl1-11/+11
2018-04-30IWYU for llvm-config.h in llvm, additions.Nico Weber1-0/+1
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