| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 39 inline APInt operator-(APInt); 2046 inline APInt operator&(APInt a, const APInt &b) { 2051 inline APInt operator&(const APInt &a, APInt &&b) { 2066 inline APInt operator|(APInt a, const APInt &b) { 2086 inline APInt operator^(APInt a, const APInt &b) { 2116 inline APInt operator+(APInt a, const APInt &b) { 2136 inline APInt operator-(APInt a, const APInt &b) { 2196 APInt GreatestCommonDivisor(APInt A, APInt B); 2237 APInt RoundingUDiv(const APInt &A, const APInt &B, APInt::Rounding RM); 2240 APInt RoundingSDiv(const APInt &A, const APInt &B, APInt::Rounding RM); [all …]
|
| H A D | APSInt.h | 23 class [[nodiscard]] APSInt : public APInt { 64 APSInt &operator=(APInt RHS) { 66 APInt::operator=(std::move(RHS)); 72 APInt::operator=(RHS); 86 using APInt::toString; 223 ++(static_cast<APInt &>(*this)); 227 --(static_cast<APInt &>(*this)); 241 static_cast<APInt &>(*this) += RHS; 246 static_cast<APInt &>(*this) -= RHS; 251 static_cast<APInt &>(*this) *= RHS; [all …]
|
| H A D | APFloat.h | 143 typedef APInt::WordType integerPart; 355 APInt bitcastToAPInt() const; 526 const APInt *fill = nullptr); 613 APInt convertHalfAPFloatToAPInt() const; 614 APInt convertBFloatAPFloatToAPInt() const; 615 APInt convertFloatAPFloatToAPInt() const; 616 APInt convertDoubleAPFloatToAPInt() const; 628 void initFromHalfAPInt(const APInt &api); 734 APInt bitcastToAPInt() const; 980 APInt intPayload(64, payload); [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | APInt.cpp | 197 APInt& APInt::operator+=(const APInt& RHS) { in operator +=() 217 APInt& APInt::operator-=(const APInt& RHS) { in operator -=() 234 APInt APInt::operator*(const APInt& RHS) const { in operator *() 263 APInt &APInt::operator*=(const APInt &RHS) { in operator *=() 1579 APInt APInt::udiv(const APInt &RHS) const { in udiv() 1650 APInt APInt::sdiv(const APInt &RHS) const { in sdiv() 1672 APInt APInt::urem(const APInt &RHS) const { in urem() 1742 APInt APInt::srem(const APInt &RHS) const { in srem() 2025 APInt APInt::sadd_sat(const APInt &RHS) const { in sadd_sat() 2035 APInt APInt::uadd_sat(const APInt &RHS) const { in uadd_sat() [all …]
|
| H A D | DivisionByConstantInfo.cpp | 27 APInt Delta; in get() 28 APInt SignedMin = APInt::getSignedMinValue(D.getBitWidth()); in get() 31 APInt AD = D.abs(); in get() 35 APInt Q1, R1, Q2, R2; in get() 39 APInt::udivrem(SignedMin, AD, Q2, R2); in get() 79 APInt Delta; in get() 82 APInt AllOnes = APInt::getAllOnes(D.getBitWidth()).lshr(LeadingZeros); in get() 83 APInt SignedMin = APInt::getSignedMinValue(D.getBitWidth()); in get() 84 APInt SignedMax = APInt::getSignedMaxValue(D.getBitWidth()); in get() 90 APInt Q1, R1, Q2, R2; in get() [all …]
|
| H A D | KnownBits.cpp | 124 APInt MaskedVal(Val); in makeGE() 157 APInt Zero = Val.Zero; in smax() 158 APInt One = Val.One; in smax() 170 APInt Zero = Val.One; in smin() 171 APInt One = Val.Zero; in smin() 574 APInt Mask = APInt::getHighBitsSet(BitWidth, LeadingKnown); in computeForSatAddSub() 593 APInt C; in computeForSatAddSub() 711 const APInt &Bottom0 = LHS.One; in mul() 727 APInt BottomKnown = in mul() 816 std::optional<APInt> Res; in sdiv() [all …]
|
| H A D | APFloat.cpp | 893 APInt fill_storage; in makeNaN() 1498 dst[i++] = ~(APInt::WordType)0 >> (APInt::APINT_BITS_PER_WORD - bits); in tcSetLeastSignificantBits() 2762 APInt api = Val; in convertFromAPInt() 2807 APInt api = APInt(width, ArrayRef(parts, partCount)); in convertFromZeroExtendedInteger() 3180 APInt Payload; in convertFromStringSpecials() 3444 return APInt(80, words); in convertF80LongDoubleAPFloatToAPInt() 3493 return APInt(128, words); in convertPPCDoubleDoubleAPFloatToAPInt() 4082 APInt significand( in toString() 4150 APInt ten(precision, 10); in toString() 4151 APInt digit(precision, 0); in toString() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 51 ConstantRange::ConstantRange(APInt L, APInt U) in ConstantRange() 267 APInt MinValue = APInt::getSignedMinValue(BitWidth); in makeExactMulNSWRegion() 268 APInt MaxValue = APInt::getSignedMaxValue(BitWidth); in makeExactMulNSWRegion() 743 APInt Min = APInt::getMinValue(BW); in castOp() 744 APInt Max = APInt::getMaxValue(BW); in castOp() 754 APInt SMin = APInt::getSignedMinValue(BW); in castOp() 755 APInt SMax = APInt::getSignedMaxValue(BW); in castOp() 1270 APInt Zero = APInt::getZero(getBitWidth()); in sdiv() 1715 APInt Zero = APInt::getZero(getBitWidth()); in ctlz() 1776 APInt Zero = APInt::getZero(BitWidth); in cttz() [all …]
|
| H A D | Operator.cpp | 98 const DataLayout &DL, APInt &Offset, in accumulateConstantOffset() 99 function_ref<bool(Value &, APInt &)> ExternalAnalysis) const { in accumulateConstantOffset() 110 APInt &Offset, function_ref<bool(Value &, APInt &)> ExternalAnalysis) { in accumulateConstantOffset() 114 APInt IndexedSize = APInt(Offset.getBitWidth(), Size); in accumulateConstantOffset() 122 APInt OffsetPlus = Index.smul_ov(IndexedSize, Overflow); in accumulateConstantOffset() 169 APInt AnalysisIndex; in accumulateConstantOffset() 181 MapVector<Value *, APInt> &VariableOffsets, in collectOffset() 182 APInt &ConstantOffset) const { in collectOffset() 186 auto CollectConstantOffset = [&](APInt Index, uint64_t Size) { in collectOffset() 188 APInt IndexedSize = APInt(BitWidth, Size); in collectOffset() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | DemandedBits.cpp | 56 const APInt &AOut, APInt &AB, KnownBits &Known, KnownBits &Known2, in determineLiveOperandBits() 121 const APInt *SA; in determineLiveOperandBits() 176 const APInt *ShiftAmtC; in determineLiveOperandBits() 193 const APInt *ShiftAmtC; in determineLiveOperandBits() 207 const APInt *ShiftAmtC; in determineLiveOperandBits() 339 APInt AOut; in performAnalysis() 367 APInt AB = APInt::getAllOnes(BitWidth); in performAnalysis() 369 AB = APInt(BitWidth, 0); in performAnalysis() 423 return APInt(BitWidth, 0); in getDemandedBits() 428 APInt AB = APInt::getAllOnes(BitWidth); in getDemandedBits() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 48 APInt Lower, Upper; 65 ConstantRange(APInt Value); 70 ConstantRange(APInt Lower, APInt Upper); 84 static ConstantRange getNonEmpty(APInt Lower, APInt Upper) { in getNonEmpty() 195 getEquivalentICmp(CmpInst::Predicate &Pred, APInt &RHS, APInt &Offset) const; 240 bool contains(const APInt &Val) const; 246 const APInt *getSingleElement() const { in getSingleElement() 276 APInt getUnsignedMax() const; 279 APInt getUnsignedMin() const; 282 APInt getSignedMax() const; [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/FileCheck/ |
| H A D | FileCheckImpl.h | 118 Expected<APInt> exprAdd(const APInt &Lhs, const APInt &Rhs, bool &Overflow); 119 Expected<APInt> exprSub(const APInt &Lhs, const APInt &Rhs, bool &Overflow); 120 Expected<APInt> exprMul(const APInt &Lhs, const APInt &Rhs, bool &Overflow); 121 Expected<APInt> exprDiv(const APInt &Lhs, const APInt &Rhs, bool &Overflow); 122 Expected<APInt> exprMax(const APInt &Lhs, const APInt &Rhs, bool &Overflow); 123 Expected<APInt> exprMin(const APInt &Lhs, const APInt &Rhs, bool &Overflow); 155 APInt Value; 221 std::optional<APInt> Value; 260 void setValue(APInt NewValue, 289 Expected<APInt> eval() const override; [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | APNumericStorage.h | 33 bool hasAllocation() const { return llvm::APInt::getNumWords(BitWidth) > 1; } in hasAllocation() 41 llvm::APInt getIntValue() const { in getIntValue() 42 unsigned NumWords = llvm::APInt::getNumWords(BitWidth); in getIntValue() 44 return llvm::APInt(BitWidth, NumWords, pVal); in getIntValue() 46 return llvm::APInt(BitWidth, VAL); in getIntValue() 48 void setIntValue(const ASTContext &C, const llvm::APInt &Val); 53 llvm::APInt getValue() const { return getIntValue(); } in getValue() 54 void setValue(const ASTContext &C, const llvm::APInt &Val) { in setValue()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 43 const APInt *C; in ShrinkDemandedConstant() 70 APInt DemandedMask(APInt::getAllOnes(Known.getBitWidth())); in SimplifyDemandedInstructionBits() 339 const APInt *C; in SimplifyDemandedUseBits() 788 APInt HighBits(APInt::getHighBitsSet( in SimplifyDemandedUseBits() 849 APInt Mask2 = LowBits | APInt::getSignMask(BitWidth); in SimplifyDemandedUseBits() 876 APInt AllOnes = APInt::getAllOnes(BitWidth); in SimplifyDemandedUseBits() 1281 APInt BitMask1(APInt::getAllOnes(BitWidth)); in simplifyShrShlDemandedBits() 1282 APInt BitMask2(APInt::getAllOnes(BitWidth)); in simplifyShrShlDemandedBits() 1348 APInt EltMask(APInt::getAllOnes(VWidth)); in SimplifyDemandedVectorElts() 1419 APInt Demanded, APInt &Undef) { in SimplifyDemandedVectorElts() [all …]
|
| H A D | InstCombineInternal.h | 49 class APInt; variable 557 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known); 666 const APInt &C); 668 const APInt &C); 670 const APInt &C); 672 const APInt &C); 674 const APInt &C); 676 const APInt &C); 682 const APInt &C); 690 const APInt &C1, const APInt &C2); [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | DemandedBits.h | 52 APInt getDemandedBits(Instruction *I); 55 APInt getDemandedBits(Use *U); 67 static APInt determineLiveOperandBitsAdd(unsigned OperandNo, 68 const APInt &AOut, 74 static APInt determineLiveOperandBitsSub(unsigned OperandNo, 75 const APInt &AOut, 83 const APInt &AOut, APInt &AB, 94 DenseMap<Instruction *, APInt> AliveBits;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LowerSwitch.cpp | 54 APInt Low, High; 119 const APInt &NumMergedCases) { in FixPhis() 125 APInt LocalNumMergedCases = NumMergedCases; in FixPhis() 374 APInt UnsignedZero(BitWidth + 1, 0); in ProcessSwitchInst() 375 APInt UnsignedMax = APInt::getMaxValue(BitWidth); in ProcessSwitchInst() 435 DenseMap<BasicBlock *, APInt> Popularity; in ProcessSwitchInst() 436 APInt MaxPop(UnsignedZero); in ProcessSwitchInst() 439 APInt SignedMax = APInt::getSignedMaxValue(BitWidth); in ProcessSwitchInst() 440 APInt SignedMin = APInt::getSignedMinValue(BitWidth); in ProcessSwitchInst() 444 const APInt &Low = I.Low->getValue(); in ProcessSwitchInst() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | GISelKnownBits.h | 39 const APInt &DemandedElts, 43 const APInt &DemandedElts, unsigned Depth = 0); 58 const APInt &DemandedElts, 61 unsigned computeNumSignBits(Register R, const APInt &DemandedElts, 67 KnownBits getKnownBits(Register R, const APInt &DemandedElts, 72 APInt getKnownZeroes(Register R); 73 APInt getKnownOnes(Register R); 78 bool maskedValueIsZero(Register Val, const APInt &Mask) { in maskedValueIsZero()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/ |
| H A D | M68kMCCodeEmitter.cpp | 44 APInt &Inst, APInt &Scratch, 48 unsigned InsertPos, APInt &Value, 54 APInt &Value, SmallVectorImpl<MCFixup> &Fixups, 59 APInt &Value, SmallVectorImpl<MCFixup> &Fixups, 63 APInt &Value, SmallVectorImpl<MCFixup> &Fixups, 118 unsigned InsertPos, APInt &Value, in encodeRelocImm() 145 unsigned InsertPos, APInt &Value, in encodePCRelImm() 180 unsigned InsertPos, APInt &Value, in encodeFPSYSSelect() 200 unsigned InsertPos, APInt &Value, in getMachineOpValue() 235 APInt EncodedInst(16, 0U); in encodeInstruction() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 177 APInt Mask; 295 APInt Mask55 = APInt::getSplat(Len, APInt(8, 0x55)); in tryToRecognizePopCount() 296 APInt Mask33 = APInt::getSplat(Len, APInt(8, 0x33)); in tryToRecognizePopCount() 297 APInt Mask0F = APInt::getSplat(Len, APInt(8, 0x0F)); in tryToRecognizePopCount() 298 APInt Mask01 = APInt::getSplat(Len, APInt(8, 0x01)); in tryToRecognizePopCount() 299 APInt MaskShift = APInt(Len, Len - 8); in tryToRecognizePopCount() 349 const APInt *MinC, *MaxC; in tryToFPToSat() 456 APInt Mask = APInt::getBitsSetFrom(InputBits, Shift); in isCTTZTable() 838 static std::pair<APInt, APInt> 842 APInt ModOffset(BW, 0); in getStrideAndModOffsetOfGEP() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonConstPropagation.cpp | 384 bool evaluateANDii(const APInt &A1, const APInt &A2, APInt &Result); 389 bool evaluateORii(const APInt &A1, const APInt &A2, APInt &Result); 394 bool evaluateXORii(const APInt &A1, const APInt &A2, APInt &Result); 1126 APInt A; in evaluateCMPrr() 1153 APInt A; in evaluateCMPri() 1180 APInt A; in evaluateCMPrp() 1388 APInt A; in evaluateANDrr() 1431 const APInt &A2, APInt &Result) { in evaluateANDii() 1498 const APInt &A2, APInt &Result) { in evaluateORii() 1560 const APInt &A2, APInt &Result) { in evaluateXORii() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | IntegralAP.h | 29 using APInt = llvm::APInt; variable 36 APInt V; 39 static T truncateCast(const APInt &V) { in truncateCast() 42 APInt Extended; in truncateCast() 62 IntegralAP(APInt V) : V(V) {} in IntegralAP() 98 APInt Copy = APInt(NumBits, static_cast<uint64_t>(Value), Signed); 115 APInt Copy = APInt(BitWidth, static_cast<uint64_t>(I), InputSigned); in from() 121 APInt V = APInt(BitWidth, 0LL, Signed); in zero() 161 APInt Copy = V; in toUnsigned() 241 APInt AI = A.V; in neg() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | CheckedArithmetic.h | 30 llvm::APInt ALHS(sizeof(T) * 8, LHS, Signed); 31 llvm::APInt ARHS(sizeof(T) * 8, RHS, Signed); 33 llvm::APInt Out = (ALHS.*Op)(ARHS, Overflow); 48 return checkedOp(LHS, RHS, &llvm::APInt::sadd_ov); in checkedAdd() 57 return checkedOp(LHS, RHS, &llvm::APInt::ssub_ov); in checkedSub() 66 return checkedOp(LHS, RHS, &llvm::APInt::smul_ov); in checkedMul() 86 return checkedOp(LHS, RHS, &llvm::APInt::uadd_ov, /*Signed=*/false); in checkedAddUnsigned() 95 return checkedOp(LHS, RHS, &llvm::APInt::umul_ov, /*Signed=*/false); in checkedMulUnsigned()
|
| H A D | KnownBits.h | 24 APInt Zero; 25 APInt One; 29 KnownBits(APInt Zero, APInt One) in KnownBits() 57 const APInt &getConstant() const { in getConstant() 120 APInt getMinValue() const { in getMinValue() 126 APInt getSignedMinValue() const { in getSignedMinValue() 128 APInt Min = One; in getSignedMinValue() 136 APInt getMaxValue() const { in getMaxValue() 142 APInt getSignedMaxValue() const { in getSignedMaxValue() 144 APInt Max = ~Zero; in getSignedMaxValue() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ShuffleDecodeConstantPool.cpp | 27 APInt &UndefElts, in extractConstantMask() 55 UndefElts = APInt(NumMaskElts, 0); in extractConstantMask() 79 APInt UndefBits(CstSizeInBits, 0); in extractConstantMask() 80 APInt MaskBits(CstSizeInBits, 0); in extractConstantMask() 99 APInt EltUndef = UndefBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask() 109 APInt EltBits = MaskBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask() 123 APInt UndefElts; in DecodePSHUFBMask() 162 APInt UndefElts; in DecodeVPERMILPMask() 198 APInt UndefElts; in DecodeVPERMIL2PMask() 252 APInt UndefElts; in DecodeVPPERMMask()
|