| /freebsd-12.1/contrib/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 38 inline APInt operator-(APInt); 1979 inline APInt operator&(APInt a, const APInt &b) { 1984 inline APInt operator&(const APInt &a, APInt &&b) { 1999 inline APInt operator|(APInt a, const APInt &b) { 2019 inline APInt operator^(APInt a, const APInt &b) { 2049 inline APInt operator+(APInt a, const APInt &b) { 2069 inline APInt operator-(APInt a, const APInt &b) { 2130 APInt GreatestCommonDivisor(APInt A, APInt B); 2171 APInt RoundingUDiv(const APInt &A, const APInt &B, APInt::Rounding RM); 2174 APInt RoundingSDiv(const APInt &A, const APInt &B, APInt::Rounding RM); [all …]
|
| H A D | APSInt.h | 46 APSInt &operator=(APInt RHS) { 48 APInt::operator=(std::move(RHS)); 54 APInt::operator=(RHS); 73 using APInt::toString; 190 ++(static_cast<APInt&>(*this)); 194 --(static_cast<APInt&>(*this)); 208 static_cast<APInt&>(*this) += RHS; 213 static_cast<APInt&>(*this) -= RHS; 218 static_cast<APInt&>(*this) *= RHS; 223 static_cast<APInt&>(*this) &= RHS; [all …]
|
| H A D | APFloat.h | 143 typedef APInt::WordType integerPart; 288 APInt bitcastToAPInt() const; 443 const APInt *fill = nullptr); 522 APInt convertHalfAPFloatToAPInt() const; 523 APInt convertFloatAPFloatToAPInt() const; 524 APInt convertDoubleAPFloatToAPInt() const; 529 void initFromHalfAPInt(const APInt &api); 530 void initFromFloatAPInt(const APInt &api); 635 APInt bitcastToAPInt() const; 878 APInt intPayload(64, payload); [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | APInt.cpp | 194 APInt& APInt::operator+=(const APInt& RHS) { in operator +=() 214 APInt& APInt::operator-=(const APInt& RHS) { in operator -=() 231 APInt APInt::operator*(const APInt& RHS) const { in operator *() 256 APInt& APInt::operator*=(const APInt& RHS) { in operator *=() 991 APInt APInt::rotl(const APInt &rotateAmt) const { in rotl() 1002 APInt APInt::rotr(const APInt &rotateAmt) const { in rotr() 1520 APInt APInt::udiv(const APInt &RHS) const { in udiv() 1591 APInt APInt::sdiv(const APInt &RHS) const { in sdiv() 1613 APInt APInt::urem(const APInt &RHS) const { in urem() 1683 APInt APInt::srem(const APInt &RHS) const { in srem() [all …]
|
| H A 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()
|
| H A D | APFloat.cpp | 2211 APInt api = Val; in convertFromAPInt() 2256 APInt api = APInt(width, makeArrayRef(parts, partCount)); in convertFromZeroExtendedInteger() 2406 assert(APInt::tcExtractBit in roundSignificandWithExponent() 2824 return APInt(80, words); in convertF80LongDoubleAPFloatToAPInt() 2873 return APInt(128, words); in convertPPCDoubleDoubleAPFloatToAPInt() 2907 return APInt(128, words); in convertQuadrupleAPFloatToAPInt() 3020 APInt api = bitcastToAPInt(); in convertToFloat() 3027 APInt api = bitcastToAPInt(); in convertToDouble() 3496 APInt ten(precision, 10); in toString() 3497 APInt digit(precision, 0); in toString() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 43 : Lower(Full ? APInt::getMaxValue(BitWidth) : APInt::getMinValue(BitWidth)), in ConstantRange() 49 ConstantRange::ConstantRange(APInt L, APInt U) in ConstantRange() 274 APInt MinValue, MaxValue; in makeGuaranteedNoWrapRegion() 286 APInt Lower, Upper; in makeGuaranteedNoWrapRegion() 595 APInt Min = APInt::getMinValue(BW).zextOrSelf(ResultBitWidth); in castOp() 596 APInt Max = APInt::getMaxValue(BW).zextOrSelf(ResultBitWidth); in castOp() 602 APInt SMin = APInt::getSignedMinValue(BW).sextOrSelf(ResultBitWidth); in castOp() 603 APInt SMax = APInt::getSignedMaxValue(BW).sextOrSelf(ResultBitWidth); in castOp() 683 APInt Adjust = LowerDiv & APInt::getBitsSetFrom(getBitWidth(), DstTySize); in truncate() 860 auto Compare = [](const APInt &A, const APInt &B) { return A.slt(B); }; in multiply() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 48 APInt Lower, Upper; 55 ConstantRange(APInt Value); 60 ConstantRange(APInt Lower, APInt Upper); 150 bool contains(const APInt &Val) const; 156 const APInt *getSingleElement() const { in getSingleElement() 164 const APInt *getSingleMissingElement() const { in getSingleMissingElement() 174 APInt getSetSize() const; 183 APInt getUnsignedMax() const; 186 APInt getUnsignedMin() const; 189 APInt getSignedMax() const; [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 47 const APInt *C; in ShrinkDemandedConstant() 68 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() 468 const APInt *SA; in SimplifyDemandedUseBits() 499 const APInt *SA; in SimplifyDemandedUseBits() 561 APInt HighBits(APInt::getHighBitsSet( in SimplifyDemandedUseBits() 614 APInt Mask2 = LowBits | APInt::getSignMask(BitWidth); in SimplifyDemandedUseBits() 648 APInt AllOnes = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits() 926 APInt BitMask1(APInt::getAllOnesValue(BitWidth)); in simplifyShrShlDemandedBits() 927 APInt BitMask2(APInt::getAllOnesValue(BitWidth)); in simplifyShrShlDemandedBits() 1098 APInt EltMask(APInt::getAllOnesValue(VWidth)); in SimplifyDemandedVectorElts() [all …]
|
| H A D | InstCombineShifts.cpp | 55 const APInt *B; in commonShiftTransforms() 104 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift() 203 const APInt *C1; in foldShiftedShift() 351 const APInt *Op1C; in FoldShiftByConstant() 400 APInt MaskV(APInt::getLowBitsSet(SrcSize, DstSize)); in FoldShiftByConstant() 552 const APInt *C; in FoldShiftByConstant() 571 const APInt *C; in FoldShiftByConstant() 621 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl() 740 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr() 754 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr() [all …]
|
| H A D | InstCombineInternal.h | 54 class APInt; variable 797 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known); 876 const APInt &C); 878 const APInt &C); 880 const APInt &C); 882 const APInt &C); 884 const APInt &C); 886 const APInt &C); 890 const APInt &C); 898 const APInt &C1, const APInt &C2); [all …]
|
| H A D | InstCombineCompares.cpp | 40 static bool addWithOverflow(APInt &Result, const APInt &In1, in addWithOverflow() 53 static bool subWithOverflow(APInt &Result, const APInt &In1, in subWithOverflow() 1105 APInt SMax = APInt::getSignedMaxValue(C.getBitWidth()); in foldICmpAddOpConst() 1554 const APInt *C3; in foldICmpAndShift() 2383 APInt NewC = in foldICmpAddConstant() 2538 const APInt *C; in foldICmpInstWithConstant() 3075 const APInt BitWidth = APInt(XBitWidth, XBitWidth); in foldICmpWithTruncSignExtendedVal() 3082 const APInt ICmpCst = APInt(XBitWidth, 1).shl(KeptBits); in foldICmpWithTruncSignExtendedVal() 3639 APInt CmpVal = APInt::getOneBitSet(TypeBits, ShAmt); in foldICmpEquality() 4033 APInt MaxVal = APInt::getMaxValue(MulWidth); in processUMulZExtIdiom() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | DemandedBits.cpp | 88 const APInt &AOut, APInt &AB, KnownBits &Known, KnownBits &Known2, in determineLiveOperandBits() 153 const APInt *SA; in determineLiveOperandBits() 185 const APInt *ShiftAmtC; in determineLiveOperandBits() 202 const APInt *ShiftAmtC; in determineLiveOperandBits() 216 const APInt *ShiftAmtC; in determineLiveOperandBits() 357 APInt AOut; in performAnalysis() 383 APInt AB = APInt::getAllOnesValue(BitWidth); in performAnalysis() 388 AB = APInt(BitWidth, 0); in performAnalysis() 406 APInt ABPrev(BitWidth, 0); in performAnalysis() 411 APInt ABNew = AB | ABPrev; in performAnalysis() [all …]
|
| H A D | DependenceAnalysis.cpp | 1403 const APInt &Delta, APInt &G, APInt &X, APInt &Y) { in findGCD() 1432 static APInt floorOfQuotient(const APInt &A, const APInt &B) { in floorOfQuotient() 1445 static APInt ceilingOfQuotient(const APInt &A, const APInt &B) { in ceilingOfQuotient() 1460 APInt maxAPInt(APInt A, APInt B) { in maxAPInt() 1466 APInt minAPInt(APInt A, APInt B) { in minAPInt() 1535 APInt TU(APInt::getSignedMaxValue(Bits)); in exactSIVtest() 1536 APInt TL(APInt::getSignedMinValue(Bits)); in exactSIVtest() 1943 APInt TU(APInt::getSignedMaxValue(Bits)); in exactRDIVtest() 1944 APInt TL(APInt::getSignedMinValue(Bits)); in exactRDIVtest() 2327 APInt RunningGCD = APInt::getNullValue(BitWidth); in gcdMIVtest() [all …]
|
| H A D | CmpInstAnalysis.cpp | 69 Value *&X, APInt &Mask, bool LookThruTrunc) { in decomposeBitTestICmp() 72 const APInt *C; in decomposeBitTestICmp() 83 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp() 90 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp() 97 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp() 104 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
|
| /freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Utility/ |
| H A D | Scalar.h | 63 m_integer = llvm::APInt(sizeof(int) * 8, v, true); in Scalar() 66 m_integer = llvm::APInt(sizeof(int) * 8, v); in Scalar() 72 m_integer = llvm::APInt(sizeof(long) * 8, v); in Scalar() 78 m_integer = llvm::APInt(sizeof(long long) * 8, v); in Scalar() 96 m_integer = llvm::APInt(v); in Scalar() 193 Scalar &operator=(llvm::APInt v); 255 llvm::APInt SInt128(llvm::APInt &fail_value) const; 257 llvm::APInt UInt128(const llvm::APInt &fail_value) const; 259 llvm::APInt SInt256(llvm::APInt &fail_value) const; 261 llvm::APInt UInt256(const llvm::APInt &fail_value) const; [all …]
|
| /freebsd-12.1/contrib/llvm/lib/ExecutionEngine/Orc/ |
| H A D | OrcMCJITReplacement.cpp | 55 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()
|
| /freebsd-12.1/contrib/llvm/lib/Target/Hexagon/ |
| H A D | HexagonConstPropagation.cpp | 374 bool evaluateANDii(const APInt &A1, const APInt &A2, APInt &Result); 379 bool evaluateORii(const APInt &A1, const APInt &A2, APInt &Result); 384 bool evaluateXORii(const APInt &A1, const APInt &A2, APInt &Result); 1116 APInt A; in evaluateCMPrr() 1143 APInt A; in evaluateCMPri() 1170 APInt A; in evaluateCMPrp() 1378 APInt A; in evaluateANDrr() 1421 const APInt &A2, APInt &Result) { in evaluateANDii() 1488 const APInt &A2, APInt &Result) { in evaluateORii() 1550 const APInt &A2, APInt &Result) { in evaluateXORii() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/X86/ |
| H A D | X86ShuffleDecodeConstantPool.cpp | 26 APInt &UndefElts, in extractConstantMask() 54 UndefElts = APInt(NumMaskElts, 0); in extractConstantMask() 78 APInt UndefBits(CstSizeInBits, 0); in extractConstantMask() 79 APInt MaskBits(CstSizeInBits, 0); in extractConstantMask() 108 APInt EltBits = MaskBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask() 122 APInt UndefElts; in DecodePSHUFBMask() 161 APInt UndefElts; in DecodeVPERMILPMask() 198 APInt UndefElts; in DecodeVPERMIL2PMask() 252 APInt UndefElts; in DecodeVPPERMMask() 305 APInt UndefElts; in DecodeVPERMVMask() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/CodeView/ |
| H A D | RecordSerialization.cpp | 45 Num = APSInt(APInt(/*numBits=*/16, Short, /*isSigned=*/false), in consume() 55 Num = APSInt(APInt(8, N, true), false); in consume() 62 Num = APSInt(APInt(16, N, true), false); in consume() 69 Num = APSInt(APInt(16, N, false), true); in consume() 76 Num = APSInt(APInt(32, N, true), false); in consume() 83 Num = APSInt(APInt(32, N, FalseVal), true); in consume() 90 Num = APSInt(APInt(64, N, true), false); in consume() 97 Num = APSInt(APInt(64, N, false), true); in consume()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Support/ |
| H A D | CheckedArithmetic.h | 32 llvm::APInt ALHS(/*BitSize=*/sizeof(T) * 8, LHS, Signed); 33 llvm::APInt ARHS(/*BitSize=*/sizeof(T) * 8, RHS, Signed); 35 llvm::APInt Out = (ALHS.*Op)(ARHS, Overflow); 50 return checkedOp(LHS, RHS, &llvm::APInt::sadd_ov); in checkedAdd() 59 return checkedOp(LHS, RHS, &llvm::APInt::smul_ov); in checkedMul() 79 return checkedOp(LHS, RHS, &llvm::APInt::uadd_ov, /*Signed=*/false); in checkedAddUnsigned() 88 return checkedOp(LHS, RHS, &llvm::APInt::umul_ov, /*Signed=*/false); in checkedMulUnsigned()
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Utility/ |
| H A D | Scalar.cpp | 203 llvm::APInt zero_int = llvm::APInt::getNullValue(m_integer.getBitWidth() / 8); in IsZero() 294 m_integer = llvm::APInt(rhs.m_integer); in operator =() 361 Scalar &Scalar::operator=(llvm::APInt rhs) { in operator =() 362 m_integer = llvm::APInt(rhs); in operator =() 1452 llvm::APInt rounded_double = in ULongLong() 1465 llvm::APInt Scalar::SInt128(llvm::APInt &fail_value) const { in SInt128() 1488 llvm::APInt Scalar::UInt128(const llvm::APInt &fail_value) const { in UInt128() 1511 llvm::APInt Scalar::SInt256(llvm::APInt &fail_value) const { in SInt256() 1534 llvm::APInt Scalar::UInt256(const llvm::APInt &fail_value) const { in UInt256() 2493 llvm::APInt sign_bit = llvm::APInt::getSignMask(sign_bit_pos + 1); in SignExtend() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/FuzzMutate/ |
| H A D | OpDescriptor.cpp | 19 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W))); in makeConstantsWithType() 20 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W))); in makeConstantsWithType() 21 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType() 22 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMinValue(W))); in makeConstantsWithType() 23 Cs.push_back(ConstantInt::get(IntTy, APInt::getOneBitSet(W, W / 2))); in makeConstantsWithType()
|
| /freebsd-12.1/contrib/llvm/lib/Target/X86/Utils/ |
| H A D | X86ShuffleDecode.h | 112 void DecodePSHUFBMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 135 void DecodeVPPERMMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 160 ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 165 ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 169 void DecodeVPERMVMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 173 void DecodeVPERMV3Mask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts,
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 1076 APInt Mask = APInt::getLowBitsSet(BitWidth, ExVTBits); in SimplifyDemandedBits() 1252 APInt DemandedSrcElts = APInt::getAllOnesValue(NumSrcElts); in SimplifyDemandedBits() 1498 APInt SrcDemandedElts = APInt::getNullValue(NumSrcElts); in SimplifyDemandedVectorElts() 1929 SDValue Op, const APInt &DemandedElts, APInt &KnownUndef, APInt &KnownZero, in SimplifyDemandedVectorEltsForTargetNode() 1973 APInt CVal; in isConstTrueVal() 3715 APInt t; in BuildExactSDIV() 5179 APInt Imm = APInt::getLowBitsSet(IdxVT.getSizeInBits(), in clampDynamicVectorIndex() 5336 APInt MaxVal = APInt::getMaxValue(BitWidth); in expandAddSubSat() 5341 APInt MinVal = APInt::getMinValue(BitWidth); in expandAddSubSat() 5347 APInt MinVal = APInt::getSignedMinValue(BitWidth); in expandAddSubSat() [all …]
|