aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/APIntTest.cpp
AgeCommit message (Expand)AuthorFilesLines
2025-05-22[APInt] APInt::clearBitsSlowCase - fix cut+paste typo when merging lo/himasks...Simon Pilgrim1-0/+9
2025-05-19[APInt] Added APInt::clearBits() method (#137098)Liam Semeria1-0/+64
2025-01-17add power function to APInt (#122788)Iman Hosseini1-0/+67
2024-10-15[APInt] Fix getAllOnes() with zero width (#112227)Nikita Popov1-0/+1
2024-09-20[UnitTests] Fix APInt signed flags (NFC)Nikita Popov1-89/+91
2024-09-02[APInt] Add default-disabled assertion to APInt constructor (#106524)Nikita Popov1-2/+3
2024-05-13[ADT] Introduce `APInt::clearHighBits` (#91938)Yingwei Zheng1-0/+65
2024-04-22[llvm] Add support for zero-width integers in MathExtras.h (#87193)Théo Degioanni1-0/+3
2024-04-04[APInt] Remove multiplicativeInverse with explicit modulus (#87644)Jay Foad1-15/+4
2024-04-04[APInt] Add a simpler overload of multiplicativeInverse (#87610)Jay Foad1-1/+2
2024-04-02[ADT] Add signed and unsigned mulh to APInt (#84719)Atousa Duprat1-0/+52
2024-03-15[ADT] APIntTest - use APInt::getMaxValue/getSignedMinValue/getSignedMaxValue ...Simon Pilgrim1-3/+3
2024-03-15[ADT][APInt] add sfloordiv_ov APInt's member function (#84720)long.chen1-0/+64
2024-03-14[ADT] Add implementations for avgFloor and avgCeil to APInt (#84431)Atousa Duprat1-0/+86
2024-03-12[ADT] Add APIntOps::abds signed absolute difference and rename absdiff -> abd...Simon Pilgrim1-16/+50
2024-03-05[clang] Use separator for large numeric values in overflow diagnostic (#80939)Atousa Duprat1-0/+35
2024-02-19[APInt] Add APIntOps::absdiff to compute the absolute difference of 2 unsigne...Simon Pilgrim1-0/+34
2023-06-27[Align] Add isAligned taking an APIntGuillaume Chatelet1-0/+20
2023-05-31[APInt] Support zero-width extract in extractBitsAsZExtValue()Nikita Popov1-0/+1
2023-05-19Add control of hex casing in APInt::toStringThomas Preud'homme1-0/+3
2023-02-20Migrate away from the soft-deprecated functions in APInt.h (NFC)Kazu Hirata1-11/+11
2023-02-16[ADT] Provide C++20-style bit functionsKazu Hirata1-311/+311
2023-01-03[APInt] Add APInt::isOneBitSet helper.Simon Pilgrim1-0/+10
2022-12-15[APInt] Fix a bug in the unit testing introduced in 55968109dPeter Rong1-1/+2
2022-12-15[APInt] provide a safe API for zext value and sext value.Peter Rong1-0/+21
2022-12-10[APInt] Convert GetMostSignificantDifferentBit to std::optionalKrzysztof Parzyszek1-1/+2
2022-12-08[SCEV] Convert Optional to std::optionalKrzysztof Parzyszek1-3/+2
2022-12-02[llvm/unittests] Use std::nullopt instead of None (NFC)Kazu Hirata1-4/+4
2022-11-01Fix DenseMap with APInt keysWeverything1-0/+8
2022-07-01[ISel] Match all bits when merge undefs for DAG combineXiang1 Zhang1-0/+9
2022-07-01Revert "[ISel] Match all bits when merge undef(s) for DAG combine"Xiang1 Zhang1-9/+0
2022-07-01[ISel] Match all bits when merge undef(s) for DAG combineXiang1 Zhang1-0/+9
2022-06-25[llvm] Don't use Optional::{hasValue,getValue} (NFC)Kazu Hirata1-2/+2
2022-05-19[APInt] Deprecate truncOrSelf, zextOrSelf and sextOrSelfJay Foad1-3/+0
2022-05-14[APInt] Allow extending and truncating to the same widthJay Foad1-1/+10
2022-02-08Fix signed/unsigned comparison warnings on ppc buildbotsSimon Pilgrim1-6/+6
2022-02-08Fix signed/unsigned comparison warnings on ppc buildbotsSimon Pilgrim1-6/+6
2022-02-08[ADT] Add APInt/MathExtras isShiftedMask variant returning mask offset/lengthSimon Pilgrim1-0/+22
2021-11-30[ADT] Remove 0-width Asserts in APInt.getZExtValueSchuyler Eldridge1-0/+3
2021-10-19[ADT] Add APInt::isNegatedPowerOf2() helperSimon Pilgrim1-0/+26
2021-10-18[ADT] Fix Wshift-overflow gcc warning in isPowerOf2 unit testSimon Pilgrim1-1/+1
2021-10-18[ADT] Add some basic APInt::isPowerOf2() unit test coverageSimon Pilgrim1-0/+20
2021-10-16[APInt] Fix 1-bit edge case in smul_ov()Nikita Popov1-3/+18
2021-10-06[APInt] Fix isAllOnes and extractBits for zero width values.Chris Lattner1-0/+2
2021-10-05[APInt] Make insertBits and concat work with zero width APInts.Chris Lattner1-1/+10
2021-09-13[APInt] Add a concat method, use LLVM_UNLIKELY to help optimizer.Chris Lattner1-0/+12
2021-09-13[APInt] Add APIntOps::ScaleBitMask helperSimon Pilgrim1-0/+20
2021-09-09[APInt] Enable APInt to support zero bit integers.Chris Lattner1-1/+75
2021-09-09[APInt] Normalize naming on keep constructors / predicate methods.Chris Lattner1-11/+11
2021-09-08[APInt.h] Reduce the APInt header file interface a bit. NFCChris Lattner1-20/+0