Home
last modified time | relevance | path

Searched refs:APInt (Results 1 – 25 of 419) sorted by relevance

12345678910>>...17

/external/swiftshader/third_party/LLVM/unittests/ADT/
DAPIntTest.cpp21 APInt One = APInt::getNullValue(65) + 1; in TEST()
22 APInt Shl = One.shl(0); in TEST()
28 APInt Minus3(128, static_cast<uint64_t>(-3), true); in TEST()
32 APInt Minus1(128, static_cast<uint64_t>(-1), true); in TEST()
46 APInt i33minus2(33, static_cast<uint64_t>(-2), true); in TEST()
59 APInt i65minus(65, 0, true); in TEST()
69 APInt u128max = APInt::getAllOnesValue(128); in TEST()
77 APInt u64max(128, static_cast<uint64_t>(-1), false); in TEST()
86 APInt zero(128, 0, true); in TEST()
96 APInt one(128, 1, true); in TEST()
[all …]
/external/llvm/unittests/ADT/
DAPIntTest.cpp21 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/llvm/include/llvm/ADT/
DAPInt.h73 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 …]
DAPSInt.h22 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 …]
DAPFloat.h200 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/include/llvm/ADT/
DAPInt.h73 class APInt {
95 APInt(uint64_t* val, unsigned bits) : BitWidth(bits), pVal(val) { } in APInt() function
130 APInt& clearUnusedBits() { in clearUnusedBits()
173 static void divide(const APInt LHS, unsigned lhsWords,
174 const APInt &RHS, unsigned rhsWords,
175 APInt *Quotient, APInt *Remainder);
184 void initSlowCase(const APInt& that);
187 APInt shlSlowCase(unsigned shiftAmt) const;
190 APInt AndSlowCase(const APInt& RHS) const;
193 APInt OrSlowCase(const APInt& RHS) const;
[all …]
DAPSInt.h22 class APSInt : public APInt {
31 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {}
33 explicit APSInt(const APInt &I, bool isUnsigned = true)
34 : APInt(I), IsUnsigned(isUnsigned) {} in APInt() function
37 APInt::operator=(RHS);
42 APSInt &operator=(const APInt &RHS) {
44 APInt::operator=(RHS);
50 APInt::operator=(RHS);
62 APInt::toString(Str, Radix, isSigned());
67 return APInt::toString(Radix, isSigned()); in toString()
[all …]
DAPFloat.h189 explicit APFloat(const APInt &, bool isIEEE = false);
209 APInt fill(64, type);
219 const APInt *payload = 0) {
226 const APInt *payload = 0) {
288 opStatus convertFromAPInt(const APInt &,
295 APInt bitcastToAPInt() const;
391 const APInt *fill);
392 void makeNaN(bool SNaN = false, bool Neg = false, const APInt *fill = 0);
409 APInt convertHalfAPFloatToAPInt() const;
410 APInt convertFloatAPFloatToAPInt() const;
[all …]
/external/llvm/unittests/IR/
DConstantRangeTest.cpp30 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/unittests/Support/
DConstantRangeTest.cpp30 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/llvm/lib/Support/
DAPInt.cpp78 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 …]
DAPFloat.cpp350 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/lib/Support/
DAPInt.cpp75 void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) { in initSlowCase()
83 void APInt::initSlowCase(const APInt& that) { in initSlowCase()
88 void APInt::initFromArray(ArrayRef<uint64_t> bigVal) { in initFromArray()
105 APInt::APInt(unsigned numBits, ArrayRef<uint64_t> bigVal) in APInt() function in APInt
110 APInt::APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]) in APInt() function in APInt
115 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix) in APInt() function in APInt
121 APInt& APInt::AssignSlowCase(const APInt& RHS) { in AssignSlowCase()
153 APInt& APInt::operator=(uint64_t RHS) { in operator =()
164 void APInt::Profile(FoldingSetNodeID& ID) const { in Profile()
195 APInt& APInt::operator++() { in operator ++()
[all …]
DConstantRange.cpp34 Lower = Upper = APInt::getMaxValue(BitWidth); in ConstantRange()
36 Lower = Upper = APInt::getMinValue(BitWidth); in ConstantRange()
41 ConstantRange::ConstantRange(const APInt &V) : Lower(V), Upper(V + 1) {} in ConstantRange()
43 ConstantRange::ConstantRange(const APInt &L, const APInt &U) : in ConstantRange()
66 APInt UMax(CR.getUnsignedMax()); in makeICmpRegion()
69 return ConstantRange(APInt::getMinValue(W), UMax); in makeICmpRegion()
72 APInt SMax(CR.getSignedMax()); in makeICmpRegion()
75 return ConstantRange(APInt::getSignedMinValue(W), SMax); in makeICmpRegion()
78 APInt UMax(CR.getUnsignedMax()); in makeICmpRegion()
81 return ConstantRange(APInt::getMinValue(W), UMax + 1); in makeICmpRegion()
[all …]
DAPFloat.cpp358 lsb = APInt::tcLSB(parts, partCount); in lostFractionThroughTruncation()
366 APInt::tcExtractBit(parts, bits - 1)) in lostFractionThroughTruncation()
380 APInt::tcShiftRight(dst, parts, bits); in shiftRight()
496 APInt::tcFullMultiply(pow5, pow5 - pc, pow5 - pc, pc, pc); in powerOf5()
506 APInt::tcFullMultiply(p2, p1, pow5, result, pc); in powerOf5()
520 APInt::tcAssign(dst, p1, result); in powerOf5()
624 APInt::tcAssign(significandParts(), rhs.significandParts(), in copySignificand()
631 void APFloat::makeNaN(bool SNaN, bool Negative, const APInt *fill) in makeNaN()
641 APInt::tcSet(significand, 0, numParts); in makeNaN()
643 APInt::tcAssign(significand, fill->getRawData(), in makeNaN()
[all …]
/external/llvm/lib/IR/
DConstantRange.cpp36 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/llvm/lib/Analysis/
DDemandedBits.cpp75 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 …]
DValueTracking.cpp122 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/swiftshader/third_party/LLVM/include/llvm/Support/
DConstantRange.h43 APInt Lower, Upper;
52 ConstantRange(const APInt &Value);
57 ConstantRange(const APInt &Lower, const APInt &Upper);
71 const APInt &getLower() const { return Lower; } in getLower()
75 const APInt &getUpper() const { return Upper; } in getUpper()
102 bool contains(const APInt &Val) const;
111 const APInt *getSingleElement() const { in getSingleElement()
123 APInt getSetSize() const;
128 APInt getUnsignedMax() const;
133 APInt getUnsignedMin() const;
[all …]
/external/llvm/include/llvm/IR/
DConstantRange.h44 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/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp60 void llvm::ComputeMaskedBits(Value *V, const APInt &Mask, in ComputeMaskedBits()
61 APInt &KnownZero, APInt &KnownOne, in ComputeMaskedBits()
94 APInt KnownZero2(BitWidth, 0), KnownOne2(BitWidth, 0); in ComputeMaskedBits()
116 KnownZero = Mask & APInt::getLowBitsSet(BitWidth, in ComputeMaskedBits()
139 KnownZero = Mask & APInt::getLowBitsSet(BitWidth, in ComputeMaskedBits()
153 APInt KnownZero2(KnownZero), KnownOne2(KnownOne); in ComputeMaskedBits()
159 APInt Mask2(Mask & ~KnownZero); in ComputeMaskedBits()
173 APInt Mask2(Mask & ~KnownOne); in ComputeMaskedBits()
193 APInt KnownZeroOut = (KnownZero & KnownZero2) | (KnownOne & KnownOne2); in ComputeMaskedBits()
200 APInt Mask2 = APInt::getAllOnesValue(BitWidth); in ComputeMaskedBits()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp28 APInt Demanded) { in ShrinkDemandedConstant()
54 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits()
55 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits()
68 bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask, in SimplifyDemandedBits()
69 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedBits()
100 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits()
101 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedUseBits()
140 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
141 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
218 DemandedMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp29 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/llvm/include/llvm/Analysis/
DDemandedBits.h45 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;
/external/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.cpp55 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction()
68 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction()
77 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue())); in runFunction()
93 rv.IntVal = APInt(BitWidth, ((bool (*)())(intptr_t)FPtr)()); in runFunction()
95 rv.IntVal = APInt(BitWidth, ((char (*)())(intptr_t)FPtr)()); in runFunction()
97 rv.IntVal = APInt(BitWidth, ((short (*)())(intptr_t)FPtr)()); in runFunction()
99 rv.IntVal = APInt(BitWidth, ((int (*)())(intptr_t)FPtr)()); in runFunction()
101 rv.IntVal = APInt(BitWidth, ((int64_t (*)())(intptr_t)FPtr)()); in runFunction()
107 rv.IntVal = APInt(32, ((int (*)())(intptr_t)FPtr)()); in runFunction()

12345678910>>...17