Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
toolchain
/
llvm-project
/
a69bbe02a2352271e8b14542073f177e24c499c1
/
llvm
/
unittests
/
ADT
/
APIntTest.cpp
9d77ad5
[APInt] Introduce APIntOps::GetMostSignificantDifferentBit()
by Roman Lebedev
· 6 years ago
1cc8e1e
[APInt] Add saturating left-shift ops
by Roman Lebedev
· 6 years ago
b2c1844
[APInt] Add saturating multiply ops
by Roman Lebedev
· 6 years ago
1723364
Fix compile-time regression caused by rL371928
by Daniel Sanders
· 6 years ago
42ad452
Fix build when both gtest death tests and LLVM_NODISCARD are available.
by David Blaikie
· 6 years ago
6606815
[APInt] Introduce clearLowBits()
by Roman Lebedev
· 6 years ago
1a5ebe1
[APIntTest] multiplicativeInverse(): clarify test
by Roman Lebedev
· 6 years ago
9e9eb62
[APInt] Fix getBitsNeeded for INT_MIN values
by Dmitry Venikov
· 6 years ago
2adab5a
Silence gcc warning in testcase [NFC]
by Mikael Holmen
· 6 years ago
a59cf87
[NFC][APInt] Add (exhaustive) test for multiplicativeInverse()
by Roman Lebedev
· 6 years ago
a881ffe
[APInt] Add PR40897 test case
by Simon Pilgrim
· 6 years ago
acc7641
[APInt] Optimize umul_ov
by Fangrui Song
· 6 years ago
2946cd7
Update the file headers across all of the LLVM projects in the monorepo
by Chandler Carruth
· 7 years ago
7ef0b31
[APInt] Add methods for saturated add and sub
by Sanjay Patel
· 7 years ago
db3e544
[Unittests] Fix returning string in SolveQuadraticEquationWrap
by Krzysztof Parzyszek
· 7 years ago
90f3249
[SCEV] Properly solve quadratic equations
by Krzysztof Parzyszek
· 7 years ago
55a0dce
[APInt] Keep the original bit width in quotient and remainder
by Krzysztof Parzyszek
· 7 years ago
802c31c
[APInt] Add helpers for rounding u/sdivs.
by Tim Shen
· 7 years ago
5176039
Bring back APInt self-move assignment check for MSVC only
by Reid Kleckner
· 7 years ago
8933775
[APInt] Fix extractBits to correctly handle Result.isSingleWord() case.
by Tim Shen
· 8 years ago
8885f93
[APInt] Add support for dividing or remainder by a uint64_t or int64_t.
by Craig Topper
· 8 years ago
a51941f
[APInt] Add support for multiplying by a uint64_t.
by Craig Topper
· 8 years ago
7f7d120
[APInt] Remove support for wrapping from APInt::setBits.
by Craig Topper
· 8 years ago
8b37326
[APInt] Add ashrInPlace method and rewrite ashr to make a copy and then call ashrInPlace.
by Craig Topper
· 8 years ago
fc03d2d
[APInt] Make behavior of ashr by BitWidth consistent between single and multi word.
by Craig Topper
· 8 years ago
652ca99
[APInt] In sext single word case, use SignExtend64 and let the APInt constructor mask off any excess bits.
by Craig Topper
· 8 years ago
cc4a912
Revert "[APInt] Add ashrInPlace method and implement ashr using it. Also fix a bug in the shift by BitWidth handling."
by Renato Golin
· 8 years ago
26af2a9
[APInt] Add ashrInPlace method and implement ashr using it. Also fix a bug in the shift by BitWidth handling.
by Craig Topper
· 8 years ago
a8129a1
[APInt] Add isSubsetOf method that can check if one APInt is a subset of another without creating temporary APInts
by Craig Topper
· 8 years ago
4db0c69
Recommit "[APInt] Add back the asserts that check that the APInt shift methods aren't called with values larger than BitWidth."
by Craig Topper
· 8 years ago
6fd0a5c
Revert r300811 "[APInt] Add back the asserts that check that the APInt shift methods aren't called with values larger than BitWidth."
by Craig Topper
· 8 years ago
e49252c
[APInt] Add back the asserts that check that the APInt shift methods aren't called with values larger than BitWidth.
by Craig Topper
· 8 years ago
a8a4f0d
[APInt] Make operator<<= shift in place. Improve the implementation of tcShiftLeft and use it to implement operator<<=.
by Craig Topper
· 8 years ago
9575d8f
[APInt] Merge the multiword code from lshrInPlace and tcShiftRight into a single implementation
by Craig Topper
· 8 years ago
7abfbdf
[APInt] Remove self move check from move assignment operator
by Craig Topper
· 8 years ago
9edfb08
[APInt] Fix a bug in lshr by a value more than 64 bits above the bit width.
by Craig Topper
· 8 years ago
55bd375
Remove all allocation and divisions from GreatestCommonDivisor
by Richard Smith
· 8 years ago
d33ee1b
[APInt] Move isMask and isShiftedMask out of APIntOps and into the APInt class. Implement them without memory allocation for multiword
by Craig Topper
· 8 years ago
55229b7
[APInt] Add a public typedef for the internal type of APInt use it instead of integerPart. Make APINT_BITS_PER_WORD and APINT_WORD_SIZE public.
by Craig Topper
· 8 years ago
47fd2de
[APInt] Fix bugs in isShiftedMask to match behavior of the similar function in MathExtras.h
by Craig Topper
· 8 years ago
e7e3560
[APInt] Rewrite getLoBits in a way that will do one less memory allocation in the multiword case. Rewrite getHiBits to use the class method version of lshr instead of the one in APIntOps. NFCI
by Craig Topper
· 8 years ago
a4f660b
[APInt] Add unittests that demonstrate how very broken APIntOps::isShiftedMask is.
by Craig Topper
· 8 years ago
e4c4668
[APInt] Use memset in setAllBits.
by Craig Topper
· 9 years ago
e9313ba
Fix signed/unsigned comparison warnings
by Simon Pilgrim
· 9 years ago
b02667c
[APInt] Add APInt::insertBits() method to insert an APInt into a larger APInt
by Simon Pilgrim
· 9 years ago
7f81c3d
Strip trailing whitespace.
by Simon Pilgrim
· 9 years ago
b60a46f
[APInt] Add rvalue reference support to and, or, xor operations to allow their memory allocation to be reused when possible
by Craig Topper
· 9 years ago
06ec03c
[APInt] Fix test names in unittest to match functions being tested. NFC
by Craig Topper
· 9 years ago
bf1c9ab
[APInt] Add getBitsSetFrom and setBitsFrom to set upper bits starting at a bit
by Craig Topper
· 9 years ago
dfd9131
[APInt] Implement getLowBitsSet/getHighBitsSet/getBitsSet using setLowBits/setHighBits/setBits
by Craig Topper
· 9 years ago
bafdd03
[APInt] Add setLowBits/setHighBits methods to APInt.
by Craig Topper
· 9 years ago
a97f927
[APInt] Move operator~ out of line to make it better able to reused memory allocation from temporary objects
by Craig Topper
· 9 years ago
7d7b6d7
[APInt] Use UINT64_MAX instead of ~0ULL. NFC
by Craig Topper
· 9 years ago
a8b26b8
[APInt] Remove unnecessary early out from getLowBitsSet. The same case is handled equally well by the next check.
by Craig Topper
· 9 years ago
0f5fb5f
[APInt] Add APInt::extractBits() method to extract APInt subrange (reapplied)
by Simon Pilgrim
· 9 years ago
cdf2bd6
Revert: r296141 [APInt] Add APInt::extractBits() method to extract APInt subrange
by Simon Pilgrim
· 9 years ago
bd9fb2a
[APInt] Add APInt::extractBits() method to extract APInt subrange
by Simon Pilgrim
· 9 years ago
4f8a443
Fix signed/unsigned comparison warnings
by Simon Pilgrim
· 9 years ago
aed3522
[APInt] Add APInt::setBits() method to set all bits in range
by Simon Pilgrim
· 9 years ago
51c0ae5
[APInt] Fix rotl/rotr when the shift amount is greater than the total bit width.
by Joey Gouly
· 9 years ago
fb1756b
[APInt] Add integer API bor bitwise operations.
by Amaury Sechet
· 9 years ago
9028f05
[APInt] Remove calls to clearUnusedBits from XorSlowCase and operator^=
by Craig Topper
· 9 years ago
851b79d
Fix UB in APInt::ashr
by Jonathan Roelofs
· 9 years ago
fae1cf4
Remove obsolete XFAIL for a test that used to sometimes miscompile under
by Dimitry Andric
· 9 years ago
fea2139
Use RValue refs in APInt add/sub methods.
by Pete Cooper
· 9 years ago
d6e6bf1
Don't allocate in APInt::slt. NFC.
by Pete Cooper
· 9 years ago
47b292d
Remove some unneeded headers and replace some headers with forward class declarations (NFC)
by Mehdi Amini
· 9 years ago
c394357
APInt: Add overload of isMask
by Matt Arsenault
· 9 years ago
155dda9
Implement constant folding for bitreverse
by Matt Arsenault
· 10 years ago
55f5e65
Fix APInt value initialization to give a zero value as any sane integer type
by Richard Smith
· 10 years ago
ea46a66
Change APInt comparison with uint64_t.
by Pawel Bylica
· 10 years ago
0dda164
Add missing <array> include.
by Pawel Bylica
· 10 years ago
8bebed9
Express APInt::{s,u}{l,g}e(uint64_t) in terms of APInt::{s,u}{l,g}t(uint64_t). NFC.
by Pawel Bylica
· 10 years ago
886461e
[APInt] Remove special case for i1.
by Benjamin Kramer
· 10 years ago
86ac447
Fix APInt long division algorithm
by Pawel Bylica
· 10 years ago
61ad9d8
Another test to exercise APInt divide step D6.
by Yaron Keren
· 10 years ago
39fc5a6
Fix rare case where APInt divide algorithm applied un-needed transformation.
by Yaron Keren
· 11 years ago
b4b5150
[APInt] Add an isSplat helper and use it in some places.
by Benjamin Kramer
· 11 years ago
a64949d
Disable -Wunknown-pragmas in a test so that Clang without -Wself-move will not
by Richard Trieu
· 11 years ago
8bd9897
Silence warnings about unknown pragmas for compilers that are not Clang. NFC.
by Aaron Ballman
· 11 years ago
5dc76a5
Disable a warning for self move since the test is checking for this behavior.
by Richard Trieu
· 11 years ago
e1d1294
Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created.
by Craig Topper
· 11 years ago
1508a65
Fix -Wsign-compare warnings
by David Blaikie
· 11 years ago
3d4eae7
APInt: Make self-move-assignment a no-op to fix stage3 clang-cl
by Reid Kleckner
· 11 years ago
c47069b
Clean up whitespace
by Duncan P. N. Exon Smith
· 12 years ago
84fcbde
[APInt] Fix nearestLogBase2 to return correct answers for very large APInt and APInt with a bitwidth of 1.
by Michael Gottesman
· 12 years ago
073af74
[APInt] Fixed bug where APInt(UINT32_MAX, 0) would blow up when being constructed.
by Michael Gottesman
· 12 years ago
e1fad2b
Remove APInt::extractBit since it is already implemented via operator[]. Change tests for extractBit to test operator[].
by Michael Gottesman
· 12 years ago
f6d58ff
[block-freq] Add the method APInt::nearestLogBase2().
by Michael Gottesman
· 12 years ago
4497d96
[block-freq] Add the APInt method extractBit.
by Michael Gottesman
· 12 years ago
9d406f4
[APInt] Implement tcDecrement as a counterpart to tcIncrement. This is for use in APFloat IEEE-754R 2008 nextUp/nextDown function.
by Michael Gottesman
· 12 years ago
5c3e21b
Move the SplatByte helper to APInt and generalize it a bit.
by Benjamin Kramer
· 13 years ago
32dc724
ADT: Correct APInt::getActiveWords for zero values
by Meador Inge
· 13 years ago
130cec2
Sort the #include lines for unittest/...
by Chandler Carruth
· 13 years ago
61b7fa2
fix the quotient returned by sdivrem() for the case when LHS is negative and RHS is positive
by Nuno Lopes
· 13 years ago
47ddf60
Add a unittest for rotating a really big APInt.
by Benjamin Kramer
· 14 years ago
f70c862
Some unittests for APInt rotates; patch by Cameron McInally.
by Eli Friedman
· 14 years ago
1c419ff
APInt: update asserts for base-36
by Dylan Noblesmith
· 14 years ago
1954641
Fix APInt::operator*= so that it computes the correct result for large integers where there is unsigned overflow. Fix APFloat::toString so that it doesn't depend on the incorrect behavior in common cases (and computes the correct result in some rare cases). Fixes PR11086.
by Eli Friedman
· 14 years ago
663c068
Add APInt support for converting to/from hexatridecimal strings
by Douglas Gregor
· 14 years ago
Next »