aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/KnownBitsTest.cpp
AgeCommit message (Expand)AuthorFilesLines
2024-11-05[KnownBits] Make `{s,u}{add,sub}_sat` optimal (#113096)goldsteinn1-8/+4
2024-10-22[KnownBits] Check that mul is optimal for low order bits (#113316)Jay Foad1-0/+34
2024-10-01[KnownBits] Make `avg{Ceil,Floor}S` optimal (#110688)Jay Foad1-4/+3
2024-09-30[KnownBitsTest] Add optimality tests to some optimal impls; NFCNoah Goldstein1-10/+7
2024-08-12[KnownBits] Add KnownBits::add and KnownBits::sub helper wrappers. (#99468)Simon Pilgrim1-0/+14
2024-06-10[KnownBits] re-introduce RefinePosionToZero in unittest (#94848)c8ef1-17/+24
2024-06-07[KnownBits] Remove `hasConflict()` assertions (#94568)c8ef1-31/+46
2024-05-19[llvm] Add KnownBits implementations for avgFloor and avgCeil (#86445)Nhat Nguyen1-0/+12
2024-04-22[KnownBitsTest] Standardize variable names in exhaustive testsJay Foad1-41/+41
2024-04-22[KnownBitsTest] Print name of function when exhaustive tests fail (#89588)Jay Foad1-38/+68
2024-04-22[KnownBitsTest] Common up isCorrect and isOptimal. NFC. (#89585)Jay Foad1-40/+25
2024-04-19[KnownBits] Simplify optimality checking in unit tests. NFC. (#89368)Jay Foad1-43/+29
2024-04-18[KnownBits] Make abdu and abds optimal (#89081)Jay Foad1-56/+2
2024-04-02[ADT] Add signed and unsigned mulh to APInt (#84719)Atousa Duprat1-8/+2
2024-03-19[KnownBits] Remove useless lambdas from unit testJay Foad1-12/+4
2024-03-14[Support] KnownBitsTest - don't bother creating lambdas in testBinaryOpExhaus...Simon Pilgrim1-46/+12
2024-03-12[Support] Add KnownBits::abds signed absolute difference and rename absdiff -...Simon Pilgrim1-6/+38
2024-03-12[ADT] Add APIntOps::abds signed absolute difference and rename absdiff -> abd...Simon Pilgrim1-3/+1
2024-03-11[KnownBits] Implement knownbits `lshr`/`ashr` with exact flagNoah Goldstein1-0/+26
2024-03-05[KnownBits] Make `nuw` and `nsw` support in `computeForAddSub` optimalNoah Goldstein1-12/+62
2024-03-05[KnownBits] Add API for `nuw` flag in `computeForAddSub`; NFCNoah Goldstein1-3/+3
2024-03-01[unittest] Fix -Wsign-compare warnings in KnownBits.cpp after #82354Fangrui Song1-4/+4
2024-03-01[KnownBits] Add KnownBits::absdiff to compute the absolute difference of 2 un...Simon Pilgrim1-1/+34
2023-10-18[Support] Add KnownBits::computeForSubBorrow (#67788)Christian Kissig1-0/+31
2023-05-31[KnownBits] Also test 1-bit values in exhaustive tests (NFC)Nikita Popov1-45/+48
2023-05-25[KnownBits] Check functions that return zero for poison resultsJay Foad1-14/+27
2023-05-25[KnownBits] Add support for nuw/nsw on shiftsNikita Popov1-0/+35
2023-05-24[KnownBits] Check for conflict-freedom in exhaustive testsNikita Popov1-0/+2
2023-05-23[KnownBits] Add implementations for saturating add/sub functionsNoah Goldstein1-1/+32
2023-05-23[KnownBits] Improve implementation of `KnownBits::abs`Noah Goldstein1-14/+9
2023-05-16[KnownBits] Improve `KnownBits::udiv`Noah Goldstein1-0/+10
2023-05-16[KnownBits] Add implementation for `KnownBits::sdiv`Noah Goldstein1-0/+21
2023-05-16[KnownBits] Handle shifts over wide typesNikita Popov1-0/+14
2023-05-16[KnownBits] Make shl/lshr/ashr implementations optimalNikita Popov1-10/+0
2023-05-15[KnownBitsTest] Remove stray semicolonsJay Foad1-2/+2
2023-05-15[KnownBitsTest] Align with ConstantRange test infrastructure (NFC)Nikita Popov1-222/+257
2023-02-18[KnownBits] Add blsi and blsmskJay Foad1-0/+20
2022-12-16std::optional::value => operator*/operator->Fangrui Song1-21/+21
2022-12-16[Support] llvm::Optional => std::optionalFangrui Song1-10/+10
2022-07-29[Support] Add KnownBits::concat methodSimon Pilgrim1-0/+25
2022-07-13[llvm] Use value instead of getValue (NFC)Kazu Hirata1-21/+21
2022-07-12[llvm] Use has_value instead of hasValue (NFC)Kazu Hirata1-32/+32
2022-06-25Revert "Don't use Optional::hasValue (NFC)"Kazu Hirata1-32/+32
2022-06-25Don't use Optional::hasValue (NFC)Kazu Hirata1-32/+32
2022-05-17[KnownBits] Add operator==Nikita Popov1-24/+14
2022-01-03[ValueTracking][SelectionDAG] Rename ComputeMinSignedBits->ComputeMaxSignific...Craig Topper1-3/+3
2022-01-02[Support] Add KnownBits::countMaxSignedBits(). Make KnownBits::countMinSignBi...Craig Topper1-0/+11
2021-10-11[KnownBits] Introduce `countMaxActiveBits()` and use it in a few placesRoman Lebedev1-0/+11
2021-10-04[APInt] Stop using soft-deprecated constructors and methods in llvm. NFC.Jay Foad1-1/+1
2021-09-09[APInt] Normalize naming on keep constructors / predicate methods.Chris Lattner1-2/+2