/external/llvm/unittests/ADT/ |
APIntTest.cpp | 1 //===- llvm/unittest/ADT/APInt.cpp - APInt unit tests ---------------------===// 12 #include "llvm/ADT/APInt.h" 19 // Test that APInt shift left works when bitwidth > 64 and shiftamt == 0 21 APInt One = APInt::getNullValue(65) + 1; 22 APInt Shl = One.shl(0); 28 APInt Minus3(128, static_cast<uint64_t>(-3), true); 32 APInt Minus1(128, static_cast<uint64_t>(-1), true); 46 APInt i33minus2(33, static_cast<uint64_t>(-2), true) [all...] |
/external/clang/test/SemaCXX/ |
unused.cpp | 3 class APInt { 6 class APSInt : public APInt { 13 APInt::operator=(RHS);
|
/external/llvm/include/llvm/ADT/ |
APInt.h | 1 //===-- llvm/ADT/APInt.h - For Arbitrary Precision Integer -----*- C++ -*--===// 45 // APInt Class 48 /// APInt - This class represents arbitrary precision constant integral values. 52 /// than 64-bits of precision. APInt provides a variety of arithmetic operators 61 /// * All binary operators must be on APInt instances of the same bit width. 74 class APInt { 75 unsigned BitWidth; ///< The number of bits in this APInt. 84 /// This enum is used to hold the constants we needed for APInt. 96 APInt(uint64_t* val, unsigned bits) : BitWidth(bits), pVal(val) { } 99 /// @brief Determine if this APInt just has one word to store value [all...] |
APSInt.h | 18 #include "llvm/ADT/APInt.h" 22 class APSInt : public APInt { 25 /// Default constructor that creates an uninitialized APInt. 31 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {} 33 explicit APSInt(const APInt &I, bool isUnsigned = true) 34 : APInt(I), IsUnsigned(isUnsigned) {} 37 APInt::operator=(RHS); 42 APSInt &operator=(const APInt &RHS) { 44 APInt::operator=(RHS); 50 APInt::operator=(RHS) [all...] |
APFloat.h | 17 arithmetic as provided by static functions in the APInt class. 103 // APInt contains static functions implementing bignum arithmetic. 104 #include "llvm/ADT/APInt.h" 189 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; 400 const APInt *fill) [all...] |
/external/llvm/unittests/Support/ |
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))); 40 EXPECT_TRUE(Full.contains(APInt(16, 0x9))); 41 EXPECT_TRUE(Full.contains(APInt(16, 0xa))); 42 EXPECT_TRUE(Full.contains(APInt(16, 0xaa9))); 43 EXPECT_TRUE(Full.contains(APInt(16, 0xaaa))) [all...] |
/external/llvm/include/llvm/Support/ |
ConstantRange.h | 35 #include "llvm/ADT/APInt.h" 43 APInt Lower, Upper; 52 ConstantRange(const APInt &Value); 56 /// assert out if the two APInt's are not the same bit width. 57 ConstantRange(const APInt &Lower, const APInt &Upper); 71 const APInt &getLower() const { return Lower; } 75 const APInt &getUpper() const { return Upper; } 102 bool contains(const APInt &Val) const; 111 const APInt *getSingleElement() const [all...] |
MDBuilder.h | 22 #include "llvm/ADT/APInt.h" 58 MDNode *createRange(const APInt &Lo, const APInt &Hi) {
|
/external/llvm/lib/Support/ |
APSInt.cpp | 22 APInt::Profile(ID);
|
APInt.cpp | 1 //===-- APInt.cpp - Implement APInt class ---------------------------------===// 15 #define DEBUG_TYPE "apint" 16 #include "llvm/ADT/APInt.h" 35 assert(result && "APInt memory allocation fails!"); 44 assert(result && "APInt memory allocation fails!"); 76 void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) { 84 void APInt::initSlowCase(const APInt& that) { 89 void APInt::initFromArray(ArrayRef<uint64_t> bigVal) [all...] |
ConstantRange.cpp | 34 Lower = Upper = APInt::getMaxValue(BitWidth); 36 Lower = Upper = APInt::getMinValue(BitWidth); 41 ConstantRange::ConstantRange(const APInt &V) : Lower(V), Upper(V + 1) {} 43 ConstantRange::ConstantRange(const APInt &L, const APInt &U) : 66 APInt UMax(CR.getUnsignedMax()); 69 return ConstantRange(APInt::getMinValue(W), UMax); 72 APInt SMax(CR.getSignedMax()); 75 return ConstantRange(APInt::getSignedMinValue(W), SMax); 78 APInt UMax(CR.getUnsignedMax()) [all...] |
APFloat.cpp | 359 lsb = APInt::tcLSB(parts, partCount); 367 APInt::tcExtractBit(parts, bits - 1)) 381 APInt::tcShiftRight(dst, parts, bits); 497 APInt::tcFullMultiply(pow5, pow5 - pc, pow5 - pc, pc, pc); 507 APInt::tcFullMultiply(p2, p1, pow5, result, pc); 521 APInt::tcAssign(dst, p1, result); 625 APInt::tcAssign(significandParts(), rhs.significandParts(), 632 void APFloat::makeNaN(bool SNaN, bool Negative, const APInt *fill) 642 APInt::tcSet(significand, 0, numParts); 644 APInt::tcAssign(significand, fill->getRawData() [all...] |
/external/llvm/include/llvm/ExecutionEngine/ |
GenericValue.h | 18 #include "llvm/ADT/APInt.h" 24 class APInt; 34 APInt IntVal; // also used for long doubles
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineSimplifyDemanded.cpp | 28 APInt Demanded) { 54 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 55 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); 68 bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask, 69 APInt &KnownZero, APInt &KnownOne, 100 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, 101 APInt &KnownZero, APInt &KnownOne [all...] |
InstCombineShifts.cpp | 43 Value *A; const APInt *B; 93 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && 133 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits)) 157 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits)) 234 APInt Mask(APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits)); 274 APInt Mask(APInt::getHighBitsSet(TypeWidth, TypeWidth - NumBits)); 380 APInt MaskV(APInt::getLowBitsSet(SrcSize, DstSize)) [all...] |
InstCombine.h | 294 void ComputeMaskedBits(Value *V, APInt &KnownZero, 295 APInt &KnownOne, unsigned Depth = 0) const { 299 bool MaskedValueIsZero(Value *V, const APInt &Mask, 322 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, 323 APInt& KnownZero, APInt& KnownOne, 325 bool SimplifyDemandedBits(Use &U, APInt DemandedMask, 326 APInt& KnownZero, APInt& KnownOne, 334 Value *SimplifyDemandedVectorElts(Value *V, APInt DemandedElts [all...] |
InstCombineMulDivRem.cpp | 80 APInt LHSExt = C1->getValue(), RHSExt = C2->getValue(); 89 APInt MulExt = LHSExt * RHSExt; 92 return MulExt.ugt(APInt::getLowBitsSet(W * 2, W)); 94 APInt Min = APInt::getSignedMinValue(W).sext(W * 2); 95 APInt Max = APInt::getSignedMaxValue(W).sext(W * 2); 121 const APInt &Val = CI->getValue(); 143 const APInt & Val = CI->getValue(); 144 const APInt &PosVal = Val.abs() [all...] |
/external/llvm/include/llvm/Analysis/ |
ValueTracking.h | 24 class APInt; 39 void ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne, 41 void computeMaskedBitsLoad(const MDNode &Ranges, APInt &KnownZero); 71 bool MaskedValueIsZero(Value *V, const APInt &Mask,
|
/external/llvm/lib/Analysis/ |
ValueTracking.cpp | 47 APInt &KnownZero, APInt &KnownOne, 48 APInt &KnownZero2, APInt &KnownOne2, 59 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1); 68 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); 80 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); 94 APInt Mask = APInt::getLowBitsSet(BitWidth, LHSKnownZeroOut) [all...] |
/external/llvm/lib/ExecutionEngine/MCJIT/ |
MCJIT.cpp | 147 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), 160 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), 170 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue())); 185 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); 187 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); 189 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); 191 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); 193 rv.IntVal = APInt(BitWidth, ((int64_t(*)())(intptr_t)FPtr)()); 199 rv.IntVal = APInt(32, ((int(*)())(intptr_t)FPtr)());
|
/external/llvm/include/llvm/ |
Constant.h | 20 class APInt; 147 static Constant *getIntegerValue(Type* Ty, const APInt &V);
|
/external/llvm/examples/BrainF/ |
BrainF.cpp | 81 ConstantInt *val_mem = ConstantInt::get(C, APInt(32, memtotal)); 95 ConstantInt::get(C, APInt(8, 0)), 97 ConstantInt::get(C, APInt(32, 1)), 98 ConstantInt::get(C, APInt(1, 0)) 109 CreateGEP(ptr_arr, ConstantInt::get(C, APInt(32, memtotal)), "arrmax"); 114 ConstantInt::get(C, APInt(32, memtotal/2)), 241 CreateGEP(curhead, ConstantInt::get(C, APInt(32, curvalue)), 276 CreateAdd(tape_0, ConstantInt::get(C, APInt(8, curvalue)), tapereg); 440 ConstantInt::get(C, APInt(8, 0)), testreg);
|
/external/llvm/include/llvm/CodeGen/ |
FunctionLoweringInfo.h | 20 #include "llvm/ADT/APInt.h" 106 APInt KnownOne, KnownZero; 171 const APInt &KnownZero, const APInt &KnownOne) {
|
/external/llvm/lib/Target/Sparc/ |
SparcISelLowering.h | 53 APInt &KnownZero, 54 APInt &KnownOne,
|
/external/llvm/lib/Object/ |
Archive.cpp | 15 #include "llvm/ADT/APInt.h" 50 APInt ret; 112 APInt offset; 128 APInt name_size; 146 APInt name_size; 158 APInt name_size;
|