/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++ -*--===// 44 // APInt Class 47 /// APInt - This class represents arbitrary precision constant integral values. 51 /// than 64-bits of precision. APInt provides a variety of arithmetic operators 60 /// * All binary operators must be on APInt instances of the same bit width. 73 class APInt { 74 unsigned BitWidth; ///< The number of bits in this APInt. 83 /// This enum is used to hold the constants we needed for APInt. 95 APInt(uint64_t* val, unsigned bits) : BitWidth(bits), pVal(val) { } 98 /// @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; 391 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...] |
/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" 34 assert(result && "APInt memory allocation fails!"); 43 assert(result && "APInt memory allocation fails!"); 75 void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) { 83 void APInt::initSlowCase(const APInt& that) { 88 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 | 358 lsb = APInt::tcLSB(parts, partCount); 366 APInt::tcExtractBit(parts, bits - 1)) 380 APInt::tcShiftRight(dst, parts, bits); 496 APInt::tcFullMultiply(pow5, pow5 - pc, pow5 - pc, pc, pc); 506 APInt::tcFullMultiply(p2, p1, pow5, result, pc); 520 APInt::tcAssign(dst, p1, result); 624 APInt::tcAssign(significandParts(), rhs.significandParts(), 631 void APFloat::makeNaN(bool SNaN, bool Negative, const APInt *fill) 641 APInt::tcSet(significand, 0, numParts); 643 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/clang/unittests/AST/ |
APValueTest.cpp | 63 EXPECT_EQ("5", GetDiagnosticOutput(APValue(APSInt(APInt(16, 5))))); 68 GetDiagnosticOutput(APValue(APSInt(APInt(16, 3)), 69 APSInt(APInt(16, 4))))); 75 APValue(APSInt(APInt(16, 3))), 76 APValue(APSInt(APInt(16, 4))), 77 APValue(APSInt(APInt(16, 5)))
|
/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)) 233 APInt Mask(APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits)); 273 APInt Mask(APInt::getHighBitsSet(TypeWidth, TypeWidth - NumBits)); 379 APInt MaskV(APInt::getLowBitsSet(SrcSize, DstSize)) [all...] |
InstCombine.h | 290 void ComputeMaskedBits(Value *V, const APInt &Mask, APInt &KnownZero, 291 APInt &KnownOne, unsigned Depth = 0) const { 295 bool MaskedValueIsZero(Value *V, const APInt &Mask, 318 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, 319 APInt& KnownZero, APInt& KnownOne, 321 bool SimplifyDemandedBits(Use &U, APInt DemandedMask, 322 APInt& KnownZero, APInt& KnownOne [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 | 26 class APInt; 39 void ComputeMaskedBits(Value *V, const APInt &Mask, APInt &KnownZero, 40 APInt &KnownOne, const TargetData *TD = 0, 69 bool MaskedValueIsZero(Value *V, const APInt &Mask,
|
/external/llvm/lib/Analysis/ |
ValueTracking.cpp | 60 void llvm::ComputeMaskedBits(Value *V, const APInt &Mask, 61 APInt &KnownZero, APInt &KnownOne, 94 APInt KnownZero2(BitWidth, 0), KnownOne2(BitWidth, 0); 116 KnownZero = Mask & APInt::getLowBitsSet(BitWidth, 139 KnownZero = Mask & APInt::getLowBitsSet(BitWidth, 153 APInt KnownZero2(KnownZero), KnownOne2(KnownOne); 159 APInt Mask2(Mask & ~KnownZero); 173 APInt Mask2(Mask & ~KnownOne); 193 APInt KnownZeroOut = (KnownZero & KnownZero2) | (KnownOne & KnownOne2) [all...] |
/external/llvm/include/llvm/ |
Constant.h | 20 class APInt; 144 static Constant *getIntegerValue(Type* Ty, const APInt &V);
|
/external/llvm/lib/Target/Sparc/ |
SparcISelLowering.h | 53 const APInt &Mask, 54 APInt &KnownZero, 55 APInt &KnownOne,
|
/external/llvm/lib/ExecutionEngine/MCJIT/ |
MCJIT.cpp | 150 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), 163 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), 173 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue())); 188 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); 190 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); 192 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); 194 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); 196 rv.IntVal = APInt(BitWidth, ((int64_t(*)())(intptr_t)FPtr)()); 202 rv.IntVal = APInt(32, ((int(*)())(intptr_t)FPtr)());
|
/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)), 240 CreateGEP(curhead, ConstantInt::get(C, APInt(32, curvalue)), 275 CreateAdd(tape_0, ConstantInt::get(C, APInt(8, curvalue)), tapereg); 439 ConstantInt::get(C, APInt(8, 0)), testreg);
|
/external/llvm/include/llvm/CodeGen/ |
FunctionLoweringInfo.h | 20 #include "llvm/ADT/APInt.h" 108 APInt KnownOne, KnownZero; 173 const APInt &KnownZero, const APInt &KnownOne) {
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
TargetLowering.cpp | [all...] |