/external/llvm/unittests/ADT/ |
D | APIntTest.cpp | 21 APInt Zero = APInt(); in TEST() 29 APInt One = APInt::getNullValue(65) + 1; in TEST() 30 APInt Shl = One.shl(0); in TEST() 36 APInt Minus3(128, static_cast<uint64_t>(-3), true); in TEST() 40 APInt Minus1(128, static_cast<uint64_t>(-1), true); in TEST() 54 APInt i33minus2(33, static_cast<uint64_t>(-2), true); in TEST() 67 APInt i65(65, 0, true); in TEST() 75 APInt i65minus(65, 0, true); in TEST() 85 APInt u128max = APInt::getAllOnesValue(128); in TEST() 93 APInt u64max(128, static_cast<uint64_t>(-1), false); in TEST() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APInt.h | 43 class APInt; variable 45 inline APInt operator-(APInt); 77 class LLVM_NODISCARD APInt { 102 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {} in APInt() function 140 APInt &clearUnusedBits() { in clearUnusedBits() 184 static void divide(const APInt &LHS, unsigned lhsWords, const APInt &RHS, 185 unsigned rhsWords, APInt *Quotient, APInt *Remainder); 194 void initSlowCase(const APInt &that); 197 APInt shlSlowCase(unsigned shiftAmt) const; 200 APInt AndSlowCase(const APInt &RHS) const; [all …]
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 73 class APInt { 98 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {} in APInt() function 136 APInt &clearUnusedBits() { in clearUnusedBits() 180 static void divide(const APInt &LHS, unsigned lhsWords, const APInt &RHS, 181 unsigned rhsWords, APInt *Quotient, APInt *Remainder); 190 void initSlowCase(const APInt &that); 193 APInt shlSlowCase(unsigned shiftAmt) const; 196 APInt AndSlowCase(const APInt &RHS) const; 199 APInt OrSlowCase(const APInt &RHS) const; 202 APInt XorSlowCase(const APInt &RHS) const; [all …]
|
D | APSInt.h | 22 class APSInt : public APInt { 32 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {} 34 explicit APSInt(APInt I, bool isUnsigned = true) 35 : APInt(std::move(I)), IsUnsigned(isUnsigned) {} in APInt() function 46 APSInt &operator=(APInt RHS) { 48 APInt::operator=(std::move(RHS)); 54 APInt::operator=(RHS); 66 APInt::toString(Str, Radix, isSigned()); 71 return APInt::toString(Radix, isSigned()); in toString() 73 using APInt::toString; [all …]
|
D | APFloat.h | 200 APFloat(const fltSemantics &, const APInt &); 241 APInt fill(64, type); 250 const APInt *payload = nullptr) { 256 const APInt *payload = nullptr) { 367 opStatus convertFromAPInt(const APInt &, bool, roundingMode); 373 APInt bitcastToAPInt() const; 572 const APInt *fill = nullptr); 574 const APInt *fill); 603 APInt convertHalfAPFloatToAPInt() const; 604 APInt convertFloatAPFloatToAPInt() const; [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | ConstantRangeTest.cpp | 30 ConstantRange ConstantRangeTest::One(APInt(16, 0xa)); 31 ConstantRange ConstantRangeTest::Some(APInt(16, 0xa), APInt(16, 0xaaa)); 32 ConstantRange ConstantRangeTest::Wrap(APInt(16, 0xaaa), APInt(16, 0xa)); 39 EXPECT_TRUE(Full.contains(APInt(16, 0x0))); in TEST_F() 40 EXPECT_TRUE(Full.contains(APInt(16, 0x9))); in TEST_F() 41 EXPECT_TRUE(Full.contains(APInt(16, 0xa))); in TEST_F() 42 EXPECT_TRUE(Full.contains(APInt(16, 0xaa9))); in TEST_F() 43 EXPECT_TRUE(Full.contains(APInt(16, 0xaaa))); in TEST_F() 49 EXPECT_FALSE(Empty.contains(APInt(16, 0x0))); in TEST_F() 50 EXPECT_FALSE(Empty.contains(APInt(16, 0x9))); in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | APIntTest.cpp | 21 APInt Zero = APInt(); in TEST() 29 APInt One = APInt::getNullValue(65) + 1; in TEST() 30 APInt Shl = One.shl(0); in TEST() 36 const APInt neg_one(64, static_cast<uint64_t>(-1), true); in TEST() 41 APInt Minus3(128, static_cast<uint64_t>(-3), true); in TEST() 45 APInt Minus1(128, static_cast<uint64_t>(-1), true); in TEST() 56 APInt i33minus2(33, static_cast<uint64_t>(-2), true); in TEST() 67 APInt i61(61, 1 << 15); in TEST() 87 APInt i65(65, 0, true); in TEST() 95 APInt i65minus(65, 0, true); in TEST() [all …]
|
/external/llvm/unittests/IR/ |
D | ConstantRangeTest.cpp | 30 ConstantRange ConstantRangeTest::One(APInt(16, 0xa)); 31 ConstantRange ConstantRangeTest::Some(APInt(16, 0xa), APInt(16, 0xaaa)); 32 ConstantRange ConstantRangeTest::Wrap(APInt(16, 0xaaa), APInt(16, 0xa)); 39 EXPECT_TRUE(Full.contains(APInt(16, 0x0))); in TEST_F() 40 EXPECT_TRUE(Full.contains(APInt(16, 0x9))); in TEST_F() 41 EXPECT_TRUE(Full.contains(APInt(16, 0xa))); in TEST_F() 42 EXPECT_TRUE(Full.contains(APInt(16, 0xaa9))); in TEST_F() 43 EXPECT_TRUE(Full.contains(APInt(16, 0xaaa))); in TEST_F() 49 EXPECT_FALSE(Empty.contains(APInt(16, 0x0))); in TEST_F() 50 EXPECT_FALSE(Empty.contains(APInt(16, 0x9))); in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | APInt.h | 35 class APInt; variable 37 inline APInt operator-(APInt); 69 class LLVM_NODISCARD APInt { 107 APInt(uint64_t *val, unsigned bits) : BitWidth(bits) { in APInt() function 147 APInt &clearUnusedBits() { in clearUnusedBits() 202 void initSlowCase(const APInt &that); 214 void AssignSlowCase(const APInt &RHS); 217 bool EqualSlowCase(const APInt &RHS) const LLVM_READONLY; 235 bool intersectsSlowCase(const APInt &RHS) const LLVM_READONLY; 238 bool isSubsetOfSlowCase(const APInt &RHS) const LLVM_READONLY; [all …]
|
D | APSInt.h | 22 class LLVM_NODISCARD APSInt : public APInt { 32 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {} 34 explicit APSInt(APInt I, bool isUnsigned = true) 35 : APInt(std::move(I)), IsUnsigned(isUnsigned) {} in APInt() function 46 APSInt &operator=(APInt RHS) { 48 APInt::operator=(std::move(RHS)); 54 APInt::operator=(RHS); 66 APInt::toString(Str, Radix, isSigned()); 71 return APInt::toString(Radix, isSigned()); in toString() 73 using APInt::toString; [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | APInt.cpp | 76 void APInt::initSlowCase(uint64_t val, bool isSigned) { in initSlowCase() 85 void APInt::initSlowCase(const APInt& that) { in initSlowCase() 90 void APInt::initFromArray(ArrayRef<uint64_t> bigVal) { in initFromArray() 107 APInt::APInt(unsigned numBits, ArrayRef<uint64_t> bigVal) in APInt() function in APInt 112 APInt::APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]) in APInt() function in APInt 117 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix) in APInt() function in APInt 123 void APInt::reallocate(unsigned NewBitWidth) { in reallocate() 142 void APInt::AssignSlowCase(const APInt& RHS) { in AssignSlowCase() 158 void APInt::Profile(FoldingSetNodeID& ID) const { in Profile() 172 APInt& APInt::operator++() { in operator ++() [all …]
|
D | KnownBits.cpp | 29 APInt PossibleSumZero = ~LHS.Zero + ~RHS.Zero + CarryIn; in computeForAddSub() 30 APInt PossibleSumOne = LHS.One + RHS.One + CarryIn; in computeForAddSub() 33 APInt CarryKnownZero = ~(PossibleSumZero ^ LHS.Zero ^ RHS.Zero); in computeForAddSub() 34 APInt CarryKnownOne = PossibleSumOne ^ LHS.One ^ RHS.One; in computeForAddSub() 37 APInt LHSKnownUnion = LHS.Zero | LHS.One; in computeForAddSub() 38 APInt RHSKnownUnion = RHS.Zero | RHS.One; in computeForAddSub() 39 APInt CarryKnownUnion = std::move(CarryKnownZero) | CarryKnownOne; in computeForAddSub() 40 APInt Known = std::move(LHSKnownUnion) & RHSKnownUnion & CarryKnownUnion; in computeForAddSub()
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 78 void APInt::initSlowCase(uint64_t val, bool isSigned) { in initSlowCase() 86 void APInt::initSlowCase(const APInt& that) { in initSlowCase() 91 void APInt::initFromArray(ArrayRef<uint64_t> bigVal) { in initFromArray() 108 APInt::APInt(unsigned numBits, ArrayRef<uint64_t> bigVal) in APInt() function in APInt 113 APInt::APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]) in APInt() function in APInt 118 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix) in APInt() function in APInt 124 APInt& APInt::AssignSlowCase(const APInt& RHS) { in AssignSlowCase() 156 APInt& APInt::operator=(uint64_t RHS) { in operator =() 167 void APInt::Profile(FoldingSetNodeID& ID) const { in Profile() 198 APInt& APInt::operator++() { in operator ++() [all …]
|
D | APFloat.cpp | 350 lsb = APInt::tcLSB(parts, partCount); in lostFractionThroughTruncation() 358 APInt::tcExtractBit(parts, bits - 1)) in lostFractionThroughTruncation() 372 APInt::tcShiftRight(dst, parts, bits); in shiftRight() 488 APInt::tcFullMultiply(pow5, pow5 - pc, pow5 - pc, pc, pc); in powerOf5() 498 APInt::tcFullMultiply(p2, p1, pow5, result, pc); in powerOf5() 514 APInt::tcAssign(dst, p1, result); in powerOf5() 616 APInt::tcAssign(significandParts(), rhs.significandParts(), in copySignificand() 623 void APFloat::makeNaN(bool SNaN, bool Negative, const APInt *fill) in makeNaN() 633 APInt::tcSet(significand, 0, numParts); in makeNaN() 635 APInt::tcAssign(significand, fill->getRawData(), in makeNaN() [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | APInt.cpp | 78 void APInt::initSlowCase(uint64_t val, bool isSigned) { in initSlowCase() 86 void APInt::initSlowCase(const APInt& that) { in initSlowCase() 91 void APInt::initFromArray(ArrayRef<uint64_t> bigVal) { in initFromArray() 108 APInt::APInt(unsigned numBits, ArrayRef<uint64_t> bigVal) in APInt() function in APInt 113 APInt::APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]) in APInt() function in APInt 118 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix) in APInt() function in APInt 124 APInt& APInt::AssignSlowCase(const APInt& RHS) { in AssignSlowCase() 156 APInt& APInt::operator=(uint64_t RHS) { in operator =() 167 void APInt::Profile(FoldingSetNodeID& ID) const { in Profile() 198 APInt& APInt::operator++() { in operator ++() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | ConstantRange.cpp | 43 : Lower(Full ? APInt::getMaxValue(BitWidth) : APInt::getMinValue(BitWidth)), in ConstantRange() 46 ConstantRange::ConstantRange(APInt V) in ConstantRange() 49 ConstantRange::ConstantRange(APInt L, APInt U) in ConstantRange() 73 APInt UMax(CR.getUnsignedMax()); in makeAllowedICmpRegion() 76 return ConstantRange(APInt::getMinValue(W), std::move(UMax)); in makeAllowedICmpRegion() 79 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() 82 return ConstantRange(APInt::getSignedMinValue(W), std::move(SMax)); in makeAllowedICmpRegion() 85 APInt UMax(CR.getUnsignedMax()); in makeAllowedICmpRegion() 88 return ConstantRange(APInt::getMinValue(W), std::move(UMax) + 1); in makeAllowedICmpRegion() 91 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() [all …]
|
/external/llvm/lib/IR/ |
D | ConstantRange.cpp | 36 Lower = Upper = APInt::getMaxValue(BitWidth); in ConstantRange() 38 Lower = Upper = APInt::getMinValue(BitWidth); in ConstantRange() 70 APInt UMax(CR.getUnsignedMax()); in makeAllowedICmpRegion() 73 return ConstantRange(APInt::getMinValue(W), UMax); in makeAllowedICmpRegion() 76 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() 79 return ConstantRange(APInt::getSignedMinValue(W), SMax); in makeAllowedICmpRegion() 82 APInt UMax(CR.getUnsignedMax()); in makeAllowedICmpRegion() 85 return ConstantRange(APInt::getMinValue(W), UMax + 1); in makeAllowedICmpRegion() 88 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() 91 return ConstantRange(APInt::getSignedMinValue(W), SMax + 1); in makeAllowedICmpRegion() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | ConstantRange.h | 48 APInt Lower, Upper; 55 ConstantRange(APInt Value); 60 ConstantRange(APInt Lower, APInt Upper); 92 const APInt &Other); 123 bool getEquivalentICmp(CmpInst::Predicate &Pred, APInt &RHS) const; 126 const APInt &getLower() const { return Lower; } in getLower() 129 const APInt &getUpper() const { return Upper; } in getUpper() 150 bool contains(const APInt &Val) const; 156 const APInt *getSingleElement() const { in getSingleElement() 164 const APInt *getSingleMissingElement() const { in getSingleMissingElement() [all …]
|
/external/llvm/lib/Analysis/ |
D | DemandedBits.cpp | 75 const APInt &AOut, APInt &AB, APInt &KnownZero, APInt &KnownOne, in determineLiveOperandBits() 76 APInt &KnownZero2, APInt &KnownOne2) { in determineLiveOperandBits() 88 KnownZero = APInt(BitWidth, 0); in determineLiveOperandBits() 89 KnownOne = APInt(BitWidth, 0); in determineLiveOperandBits() 94 KnownZero2 = APInt(BitWidth, 0); in determineLiveOperandBits() 95 KnownOne2 = APInt(BitWidth, 0); in determineLiveOperandBits() 119 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits() 129 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits() 141 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits() 154 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1); in determineLiveOperandBits() [all …]
|
D | ValueTracking.cpp | 122 static void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, 125 void llvm::computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, in computeKnownBits() 141 APInt LHSKnownZero(IT->getBitWidth(), 0), LHSKnownOne(IT->getBitWidth(), 0); in haveNoCommonBitsSet() 142 APInt RHSKnownZero(IT->getBitWidth(), 0), RHSKnownOne(IT->getBitWidth(), 0); in haveNoCommonBitsSet() 216 static bool MaskedValueIsZero(Value *V, const APInt &Mask, unsigned Depth, 219 bool llvm::MaskedValueIsZero(Value *V, const APInt &Mask, const DataLayout &DL, in MaskedValueIsZero() 236 APInt &KnownZero, APInt &KnownOne, in computeKnownBitsAddSub() 237 APInt &KnownZero2, APInt &KnownOne2, in computeKnownBitsAddSub() 248 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1); in computeKnownBitsAddSub() 257 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); in computeKnownBitsAddSub() [all …]
|
/external/llvm/include/llvm/IR/ |
D | ConstantRange.h | 44 APInt Lower, Upper; 47 typedef APInt APIntMoveTy; 93 const APInt &Other); 120 bool getEquivalentICmp(CmpInst::Predicate &Pred, APInt &RHS) const; 124 const APInt &getLower() const { return Lower; } in getLower() 128 const APInt &getUpper() const { return Upper; } in getUpper() 155 bool contains(const APInt &Val) const; 163 const APInt *getSingleElement() const { in getSingleElement() 175 APInt getSetSize() const; 179 APInt getUnsignedMax() const; [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 29 APInt Demanded) { in ShrinkDemandedConstant() 55 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits() 56 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() 69 bool InstCombiner::SimplifyDemandedBits(Use &U, const APInt &DemandedMask, in SimplifyDemandedBits() 70 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedBits() 103 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits() 104 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedUseBits() 141 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits() 142 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits() 234 DemandedMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | DemandedBits.cpp | 87 const APInt &AOut, APInt &AB, KnownBits &Known, KnownBits &Known2) { in determineLiveOperandBits() 131 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits() 141 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits() 153 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits() 165 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1); in determineLiveOperandBits() 167 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits() 179 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits() 190 if ((AOut & APInt::getHighBitsSet(BitWidth, ShiftAmt)) in determineLiveOperandBits() 197 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits() 247 if ((AOut & APInt::getHighBitsSet(AOut.getBitWidth(), in determineLiveOperandBits() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 41 const APInt &Demanded) { in ShrinkDemandedConstant() 47 const APInt *C; in ShrinkDemandedConstant() 68 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() 82 const APInt &DemandedMask, in SimplifyDemandedBits() 117 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits() 176 APInt IKnownZero = RHSKnown.Zero | LHSKnown.Zero; in SimplifyDemandedUseBits() 178 APInt IKnownOne = RHSKnown.One & LHSKnown.One; in SimplifyDemandedUseBits() 210 APInt IKnownZero = RHSKnown.Zero & LHSKnown.Zero; in SimplifyDemandedUseBits() 212 APInt IKnownOne = RHSKnown.One | LHSKnown.One; in SimplifyDemandedUseBits() 242 APInt IKnownZero = (RHSKnown.Zero & LHSKnown.Zero) | in SimplifyDemandedUseBits() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | DemandedBits.h | 45 APInt getDemandedBits(Instruction *I); 60 const APInt &AOut, APInt &AB, 61 APInt &KnownZero, APInt &KnownOne, 62 APInt &KnownZero2, APInt &KnownOne2); 68 DenseMap<Instruction *, APInt> AliveBits;
|