| /minix3/external/bsd/llvm/dist/llvm/unittests/ADT/ |
| H A D | APIntTest.cpp | 21 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 i65(65, 0, true); in TEST() 67 APInt i65minus(65, 0, true); in TEST() 77 APInt u128max = APInt::getAllOnesValue(128); in TEST() 85 APInt u64max(128, static_cast<uint64_t>(-1), false); in TEST() 94 APInt zero(128, 0, true); in TEST() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 75 class APInt { 100 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {} in APInt() function 138 APInt &clearUnusedBits() { in clearUnusedBits() 182 static void divide(const APInt LHS, unsigned lhsWords, const APInt &RHS, 183 unsigned rhsWords, APInt *Quotient, APInt *Remainder); 192 void initSlowCase(const APInt &that); 195 APInt shlSlowCase(unsigned shiftAmt) const; 198 APInt AndSlowCase(const APInt &RHS) const; 201 APInt OrSlowCase(const APInt &RHS) const; 204 APInt XorSlowCase(const APInt &RHS) const; [all …]
|
| H A D | APSInt.h | 22 class APSInt : public APInt { 31 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {} 33 explicit APSInt(APInt I, bool isUnsigned = true) 34 : APInt(std::move(I)), IsUnsigned(isUnsigned) {} in APInt() function 36 APSInt &operator=(APInt RHS) { 38 APInt::operator=(std::move(RHS)); 44 APInt::operator=(RHS); 56 APInt::toString(Str, Radix, isSigned()); 61 return APInt::toString(Radix, isSigned()); in toString() 63 using APInt::toString; [all …]
|
| H A D | APFloat.h | 195 APFloat(const fltSemantics &, const APInt &); 236 APInt fill(64, type); 245 const APInt *payload = nullptr) { 251 const APInt *payload = nullptr) { 364 opStatus convertFromAPInt(const APInt &, bool, roundingMode); 370 APInt bitcastToAPInt() const; 573 const APInt *fill = nullptr); 575 const APInt *fill); 603 APInt convertHalfAPFloatToAPInt() const; 604 APInt convertFloatAPFloatToAPInt() const; [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/unittests/IR/ |
| H A D | ConstantRangeTest.cpp | 29 ConstantRange ConstantRangeTest::One(APInt(16, 0xa)); 30 ConstantRange ConstantRangeTest::Some(APInt(16, 0xa), APInt(16, 0xaaa)); 31 ConstantRange ConstantRangeTest::Wrap(APInt(16, 0xaaa), APInt(16, 0xa)); 38 EXPECT_TRUE(Full.contains(APInt(16, 0x0))); in TEST_F() 39 EXPECT_TRUE(Full.contains(APInt(16, 0x9))); in TEST_F() 40 EXPECT_TRUE(Full.contains(APInt(16, 0xa))); in TEST_F() 41 EXPECT_TRUE(Full.contains(APInt(16, 0xaa9))); in TEST_F() 42 EXPECT_TRUE(Full.contains(APInt(16, 0xaaa))); in TEST_F() 48 EXPECT_FALSE(Empty.contains(APInt(16, 0x0))); in TEST_F() 49 EXPECT_FALSE(Empty.contains(APInt(16, 0x9))); in TEST_F() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Support/ |
| H A D | APInt.cpp | 77 void APInt::initSlowCase(unsigned numBits, 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 APInt& APInt::AssignSlowCase(const APInt& RHS) { in AssignSlowCase() 155 APInt& APInt::operator=(uint64_t RHS) { in operator =() 166 void APInt::Profile(FoldingSetNodeID& ID) const { in Profile() 197 APInt& APInt::operator++() { in operator ++() [all …]
|
| H A D | APFloat.cpp | 346 lsb = APInt::tcLSB(parts, partCount); in lostFractionThroughTruncation() 354 APInt::tcExtractBit(parts, bits - 1)) in lostFractionThroughTruncation() 368 APInt::tcShiftRight(dst, parts, bits); in shiftRight() 484 APInt::tcFullMultiply(pow5, pow5 - pc, pow5 - pc, pc, pc); in powerOf5() 494 APInt::tcFullMultiply(p2, p1, pow5, result, pc); in powerOf5() 508 APInt::tcAssign(dst, p1, result); in powerOf5() 610 APInt::tcAssign(significandParts(), rhs.significandParts(), in copySignificand() 617 void APFloat::makeNaN(bool SNaN, bool Negative, const APInt *fill) in makeNaN() 627 APInt::tcSet(significand, 0, numParts); in makeNaN() 629 APInt::tcAssign(significand, fill->getRawData(), in makeNaN() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 34 Lower = Upper = APInt::getMaxValue(BitWidth); in ConstantRange() 36 Lower = Upper = APInt::getMinValue(BitWidth); in ConstantRange() 67 APInt UMax(CR.getUnsignedMax()); in makeICmpRegion() 70 return ConstantRange(APInt::getMinValue(W), UMax); in makeICmpRegion() 73 APInt SMax(CR.getSignedMax()); in makeICmpRegion() 76 return ConstantRange(APInt::getSignedMinValue(W), SMax); in makeICmpRegion() 79 APInt UMax(CR.getUnsignedMax()); in makeICmpRegion() 82 return ConstantRange(APInt::getMinValue(W), UMax + 1); in makeICmpRegion() 85 APInt SMax(CR.getSignedMax()); in makeICmpRegion() 88 return ConstantRange(APInt::getSignedMinValue(W), SMax + 1); in makeICmpRegion() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 43 APInt Lower, Upper; 46 typedef APInt APIntMoveTy; 74 const APInt &getLower() const { return Lower; } in getLower() 78 const APInt &getUpper() const { return Upper; } in getUpper() 105 bool contains(const APInt &Val) const; 113 const APInt *getSingleElement() const { in getSingleElement() 125 APInt getSetSize() const; 129 APInt getUnsignedMax() const; 133 APInt getUnsignedMin() const; 137 APInt getSignedMax() const; [all …]
|
| H A D | Constant.h | 20 class APInt; variable 127 const APInt &getUniqueInteger() const; 173 static Constant *getIntegerValue(Type* Ty, const APInt &V);
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 30 APInt Demanded) { in ShrinkDemandedConstant() 70 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits() 71 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() 84 bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask, in SimplifyDemandedBits() 85 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedBits() 117 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits() 118 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedUseBits() 158 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits() 159 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits() 251 DemandedMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits() [all …]
|
| H A D | InstCombineShifts.cpp | 45 Value *A; const APInt *B; in commonShiftTransforms() 95 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && in CanEvaluateShifted() 135 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits, in CanEvaluateShifted() 160 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits, in CanEvaluateShifted() 240 APInt Mask(APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits)); in GetShiftedValue() 280 APInt Mask(APInt::getHighBitsSet(TypeWidth, TypeWidth - NumBits)); in GetShiftedValue() 387 APInt MaskV(APInt::getLowBitsSet(SrcSize, DstSize)); in FoldShiftByConstant() 433 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant() 469 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant() 585 APInt Mask(APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt1)); in FoldShiftByConstant() [all …]
|
| H A D | InstCombine.h | 369 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, 375 bool MaskedValueIsZero(Value *V, const APInt &Mask, 412 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero, 413 APInt &KnownOne, unsigned Depth, 415 bool SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero, 416 APInt &KnownOne, unsigned Depth = 0); 420 APInt DemandedMask, APInt &KnownZero, 421 APInt &KnownOne); 428 Value *SimplifyDemandedVectorElts(Value *V, APInt DemandedElts, 429 APInt &UndefElts, unsigned Depth = 0); [all …]
|
| H A D | InstCombineCompares.cpp | 180 static void ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero, in ComputeSignedMinMaxValuesFromKnownBits() 181 const APInt& KnownOne, in ComputeSignedMinMaxValuesFromKnownBits() 182 APInt& Min, APInt& Max) { in ComputeSignedMinMaxValuesFromKnownBits() 187 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeSignedMinMaxValuesFromKnownBits() 204 static void ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, in ComputeUnsignedMinMaxValuesFromKnownBits() 205 const APInt &KnownOne, in ComputeUnsignedMinMaxValuesFromKnownBits() 206 APInt &Min, APInt &Max) { in ComputeUnsignedMinMaxValuesFromKnownBits() 211 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeUnsignedMinMaxValuesFromKnownBits() 774 APInt::getSignedMaxValue(BitWidth)); in FoldICmpAddOpCst() 802 const APInt &CmpRHSV = CmpRHS->getValue(); in FoldICmpDivCst() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 99 static void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, 103 void llvm::computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, in computeKnownBits() 142 static bool MaskedValueIsZero(Value *V, const APInt &Mask, 146 bool llvm::MaskedValueIsZero(Value *V, const APInt &Mask, const DataLayout *TD, in MaskedValueIsZero() 164 APInt &KnownZero, APInt &KnownOne, in computeKnownBitsAddSub() 165 APInt &KnownZero2, APInt &KnownOne2, in computeKnownBitsAddSub() 177 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1); in computeKnownBitsAddSub() 186 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); in computeKnownBitsAddSub() 196 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in computeKnownBitsAddSub() 201 APInt CarryIn(BitWidth, 0); in computeKnownBitsAddSub() [all …]
|
| H A D | DependenceAnalysis.cpp | 503 APInt Xtop = C1B2_C2B1->getValue()->getValue(); in intersectConstraints() 504 APInt Xbot = A1B2_A2B1->getValue()->getValue(); in intersectConstraints() 505 APInt Ytop = C1A2_C2A1->getValue()->getValue(); in intersectConstraints() 506 APInt Ybot = A2B1_A1B2->getValue()->getValue(); in intersectConstraints() 511 APInt Xq = Xtop; // these need to be initialized, even in intersectConstraints() 512 APInt Xr = Xtop; // though they're just going to be overwritten in intersectConstraints() 513 APInt::sdivrem(Xtop, Xbot, Xq, Xr); in intersectConstraints() 514 APInt Yq = Ytop; in intersectConstraints() 515 APInt Yr = Ytop; in intersectConstraints() 516 APInt::sdivrem(Ytop, Ybot, Yq, Yr); in intersectConstraints() [all …]
|
| /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/ |
| H A D | unused.cpp | 5 class APInt { class 8 class APSInt : public APInt { 15 APInt::operator=(RHS); in operator =()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | SeparateConstOffsetFromGEP.cpp | 228 APInt find(Value *V, bool SignExtended, bool ZeroExtended, bool NonNegative); 230 APInt findInEitherOperand(BinaryOperator *BO, bool SignExtended, 276 void ComputeKnownBits(Value *V, APInt &KnownOne, APInt &KnownZero) const; 462 APInt ConstantOffsetExtractor::findInEitherOperand(BinaryOperator *BO, in findInEitherOperand() 467 APInt ConstantOffset = find(BO->getOperand(0), SignExtended, ZeroExtended, in findInEitherOperand() 484 APInt ConstantOffsetExtractor::find(Value *V, bool SignExtended, in find() 493 if (U == nullptr) return APInt(BitWidth, 0); in find() 495 APInt ConstantOffset(BitWidth, 0); in find() 653 APInt ConstantOffset = in Extract() 671 void ConstantOffsetExtractor::ComputeKnownBits(Value *V, APInt &KnownOne, in ComputeKnownBits() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/Analysis/ |
| H A D | MemoryBuiltins.h | 155 typedef std::pair<APInt, APInt> SizeOffsetType; 166 APInt Zero; 169 APInt align(APInt Size, uint64_t Align); 172 return std::make_pair(APInt(), APInt()); in unknown()
|
| H A D | ValueTracking.h | 24 class APInt; variable 40 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, 48 APInt &KnownZero); 86 bool MaskedValueIsZero(Value *V, const APInt &Mask,
|
| H A D | PtrUseVisitor.h | 120 APInt Offset; 144 APInt Offset; 210 Offset = APInt(IntPtrTy->getBitWidth(), 0); in visitPtr() 253 Offset = APInt(); in visitGetElementPtrInst()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 284 const APInt &Demanded) { in ShrinkDemandedConstant() 324 const APInt &Demanded, in ShrinkDemandedOp() 374 const APInt &DemandedMask, in SimplifyDemandedBits() 375 APInt &KnownZero, in SimplifyDemandedBits() 376 APInt &KnownOne, in SimplifyDemandedBits() 382 APInt NewMask = DemandedMask; in SimplifyDemandedBits() 386 KnownZero = KnownOne = APInt(BitWidth, 0); in SimplifyDemandedBits() 398 NewMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedBits() 408 APInt KnownZero2, KnownOne2, KnownZeroOut, KnownOneOut; in SimplifyDemandedBits() 421 APInt LHSZero, LHSOne; in SimplifyDemandedBits() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/examples/BrainF/ |
| H A D | BrainF.cpp | 81 ConstantInt *val_mem = ConstantInt::get(C, APInt(32, memtotal)); in header() 95 ConstantInt::get(C, APInt(8, 0)), in header() 97 ConstantInt::get(C, APInt(32, 1)), in header() 98 ConstantInt::get(C, APInt(1, 0)) in header() 109 CreateGEP(ptr_arr, ConstantInt::get(C, APInt(32, memtotal)), "arrmax"); in header() 114 ConstantInt::get(C, APInt(32, memtotal/2)), in header() 241 CreateGEP(curhead, ConstantInt::get(C, APInt(32, curvalue)), in readloop() 276 CreateAdd(tape_0, ConstantInt::get(C, APInt(8, curvalue)), tapereg); in readloop() 440 ConstantInt::get(C, APInt(8, 0)), testreg); in readloop()
|
| /minix3/minix/llvm/passes/asr/ |
| H A D | ASRPass.cpp | 229 ConstantInt* const_int32_0 = ConstantInt::get(M.getContext(), APInt(32, StringRef("0"), 10)); in create_padding_func() 230 ConstantInt* const_int32_1 = ConstantInt::get(M.getContext(), APInt(32, StringRef("1"), 10)); in create_padding_func() 509 …nst(IntegerType::get(M.getContext(), 8), ConstantInt::get(M.getContext(), APInt(64, (rand() % max_… in runOnModule() 524 … ConstantInt* max_offset_const = ConstantInt::get(M.getContext(), APInt(32, max_offset, 10)); in runOnModule() 532 … ConstantInt* One = ConstantInt::get(M.getContext(), APInt(32, StringRef("1"), 10)); in runOnModule() 582 …nst(IntegerType::get(M.getContext(), 8), ConstantInt::get(M.getContext(), APInt(64, (rand() % max_… in runOnModule() 604 args.push_back(ConstantInt::get(M.getContext(), APInt(32, 0))); in runOnModule() 605 args.push_back(ConstantInt::get(M.getContext(), APInt(32, 0))); in runOnModule() 607 args.push_back(ConstantInt::get(M.getContext(), APInt(32, 0))); in runOnModule() 620 frameAddrArgs.push_back(ConstantInt::get(M.getContext(), APInt(32, 0))); in runOnModule() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/ExecutionEngine/ |
| H A D | GenericValue.h | 24 class APInt; variable 38 APInt IntVal; // also used for long doubles.
|