| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 38 inline APInt operator-(APInt); 2042 inline APInt operator&(APInt a, const APInt &b) { 2047 inline APInt operator&(const APInt &a, APInt &&b) { 2062 inline APInt operator|(APInt a, const APInt &b) { 2082 inline APInt operator^(APInt a, const APInt &b) { 2112 inline APInt operator+(APInt a, const APInt &b) { 2132 inline APInt operator-(APInt a, const APInt &b) { 2193 APInt GreatestCommonDivisor(APInt A, APInt B); 2234 APInt RoundingUDiv(const APInt &A, const APInt &B, APInt::Rounding RM); 2237 APInt RoundingSDiv(const APInt &A, const APInt &B, APInt::Rounding RM); [all …]
|
| H A D | APSInt.h | 63 APSInt &operator=(APInt RHS) { 65 APInt::operator=(std::move(RHS)); 71 APInt::operator=(RHS); 85 using APInt::toString; 202 ++(static_cast<APInt&>(*this)); 206 --(static_cast<APInt&>(*this)); 220 static_cast<APInt&>(*this) += RHS; 225 static_cast<APInt&>(*this) -= RHS; 230 static_cast<APInt&>(*this) *= RHS; 235 static_cast<APInt&>(*this) &= RHS; [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | APInt.cpp | 193 APInt& APInt::operator+=(const APInt& RHS) { in operator +=() 213 APInt& APInt::operator-=(const APInt& RHS) { in operator -=() 230 APInt APInt::operator*(const APInt& RHS) const { in operator *() 255 APInt& APInt::operator*=(const APInt& RHS) { in operator *=() 1073 APInt APInt::rotl(const APInt &rotateAmt) const { in rotl() 1084 APInt APInt::rotr(const APInt &rotateAmt) const { in rotr() 1604 APInt APInt::udiv(const APInt &RHS) const { in udiv() 1675 APInt APInt::sdiv(const APInt &RHS) const { in sdiv() 1697 APInt APInt::urem(const APInt &RHS) const { in urem() 1767 APInt APInt::srem(const APInt &RHS) const { in srem() [all …]
|
| H A D | APFloat.cpp | 2457 APInt api = Val; in convertFromAPInt() 2502 APInt api = APInt(width, makeArrayRef(parts, partCount)); in convertFromZeroExtendedInteger() 2666 assert(APInt::tcExtractBit in roundSignificandWithExponent() 2873 APInt Payload; in convertFromStringSpecials() 3137 return APInt(80, words); in convertF80LongDoubleAPFloatToAPInt() 3186 return APInt(128, words); in convertPPCDoubleDoubleAPFloatToAPInt() 3220 return APInt(128, words); in convertQuadrupleAPFloatToAPInt() 3363 APInt api = bitcastToAPInt(); in convertToFloat() 3860 APInt ten(precision, 10); in toString() 3861 APInt digit(precision, 0); in toString() [all …]
|
| H A D | KnownBits.cpp | 35 APInt LHSKnownUnion = LHS.Zero | LHS.One; in computeForAddCarry() 36 APInt RHSKnownUnion = RHS.Zero | RHS.One; in computeForAddCarry() 112 APInt MaskedVal(Val); in makeGE() 145 APInt Zero = Val.Zero; in smax() 146 APInt One = Val.One; in smax() 158 APInt Zero = Val.One; in smin() 159 APInt One = Val.Zero; in smin() 186 APInt MinShiftAmount = RHS.getMinValue(); in shl() 469 const APInt &Bottom0 = LHS.One; in mul() 470 const APInt &Bottom1 = RHS.One; in mul() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 50 ConstantRange::ConstantRange(APInt L, APInt U) in ConstantRange() 210 APInt MinValue = APInt::getSignedMinValue(BitWidth); in makeExactMulNSWRegion() 211 APInt MaxValue = APInt::getSignedMaxValue(BitWidth); in makeExactMulNSWRegion() 254 APInt SignedMinVal = APInt::getSignedMinValue(BitWidth); in makeGuaranteedNoWrapRegion() 265 APInt SignedMinVal = APInt::getSignedMinValue(BitWidth); in makeGuaranteedNoWrapRegion() 1139 APInt Zero = APInt::getNullValue(getBitWidth()); in sdiv() 1140 APInt SignedMin = APInt::getSignedMinValue(getBitWidth()); in sdiv() 1535 APInt Lo; in abs() 1596 APInt SignedMin = APInt::getSignedMinValue(getBitWidth()); in signedAddMayOverflow() 1597 APInt SignedMax = APInt::getSignedMaxValue(getBitWidth()); in signedAddMayOverflow() [all …]
|
| H A D | Operator.cpp | 62 const DataLayout &DL, APInt &Offset, in accumulateConstantOffset() 63 function_ref<bool(Value &, APInt &)> ExternalAnalysis) const { in accumulateConstantOffset() 74 APInt &Offset, function_ref<bool(Value &, APInt &)> ExternalAnalysis) { in accumulateConstantOffset() 78 APInt IndexedSize = APInt(Offset.getBitWidth(), Size); in accumulateConstantOffset() 86 APInt OffsetPlus = Index.smul_ov(IndexedSize, Overflow); in accumulateConstantOffset() 135 APInt AnalysisIndex; in accumulateConstantOffset() 148 MapVector<Value *, APInt> &VariableOffsets, in collectOffset() 149 APInt &ConstantOffset) const { in collectOffset() 155 APInt IndexedSize = APInt(BitWidth, Size); in collectOffset() 195 VariableOffsets.insert({V, APInt(BitWidth, 0)}); in collectOffset() [all …]
|
| /freebsd-13.1/contrib/llvm-project/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() 208 const APInt *ShiftAmtC; in determineLiveOperandBits() 225 const APInt *ShiftAmtC; in determineLiveOperandBits() 239 const APInt *ShiftAmtC; in determineLiveOperandBits() 382 APInt AOut; in performAnalysis() 410 APInt AB = APInt::getAllOnesValue(BitWidth); in performAnalysis() 451 return APInt::getAllOnesValue( in getDemandedBits() 467 return APInt(BitWidth, 0); in getDemandedBits() 472 APInt AB = APInt::getAllOnesValue(BitWidth); in getDemandedBits() [all …]
|
| H A D | Loads.cpp | 37 const APInt APAlign(Offset.getBitWidth(), Alignment.value()); in isAligned() 81 APInt KnownDerefBytes(Size.getBitWidth(), in isDereferenceableAndAlignedPointer() 92 APInt Offset(DL.getTypeStoreSizeInBits(Ty), 0); in isDereferenceableAndAlignedPointer() 125 APInt Offset(DL.getIndexTypeSizeInBits(GEP->getType()), 0); in isDereferenceableAndAlignedPointer() 175 APInt KnownDerefBytes(Size.getBitWidth(), ObjSize); in isDereferenceableAndAlignedPointer() 184 APInt Offset(DL.getTypeStoreSizeInBits(Ty), 0); in isDereferenceableAndAlignedPointer() 195 const APInt &Size, in isDereferenceableAndAlignedPointer() 228 APInt AccessSize(DL.getPointerTypeSizeInBits(V->getType()), in isDereferenceableAndAlignedPointer() 279 APInt EltSize(DL.getIndexTypeSizeInBits(Ptr->getType()), in isDereferenceableAndAlignedInLoop() 307 const APInt AccessSize = TC * EltSize; in isDereferenceableAndAlignedInLoop() [all …]
|
| /freebsd-13.1/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() 213 bool contains(const APInt &Val) const; 219 const APInt *getSingleElement() const { in getSingleElement() 227 const APInt *getSingleMissingElement() const { in getSingleMissingElement() 249 APInt getUnsignedMax() const; 252 APInt getUnsignedMin() const; 255 APInt getSignedMax() const; [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 37 const APInt *C; in ShrinkDemandedConstant() 58 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() 276 const APInt *C; in SimplifyDemandedUseBits() 653 APInt HighBits(APInt::getHighBitsSet( in SimplifyDemandedUseBits() 711 APInt Mask2 = LowBits | APInt::getSignMask(BitWidth); in SimplifyDemandedUseBits() 746 APInt AllOnes = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits() 1024 APInt BitMask1(APInt::getAllOnesValue(BitWidth)); in simplifyShrShlDemandedBits() 1025 APInt BitMask2(APInt::getAllOnesValue(BitWidth)); in simplifyShrShlDemandedBits() 1091 APInt EltMask(APInt::getAllOnesValue(VWidth)); in SimplifyDemandedVectorElts() 1162 APInt Demanded, APInt &Undef) { in SimplifyDemandedVectorElts() [all …]
|
| H A D | InstCombineInternal.h | 47 class APInt; variable 586 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known); 593 SimplifyDemandedVectorElts(Value *V, APInt DemandedElts, APInt &UndefElts, 667 const APInt &C); 669 const APInt &C); 671 const APInt &C); 673 const APInt &C); 675 const APInt &C); 677 const APInt &C); 691 const APInt &C1, const APInt &C2); [all …]
|
| H A D | InstCombineShifts.cpp | 465 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift() 539 const APInt *C1; in foldShiftedShift() 666 const APInt *Op1C; in FoldShiftByConstant() 853 const APInt *C; in FoldShiftByConstant() 872 const APInt *C; in FoldShiftByConstant() 927 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl() 963 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl() 974 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl() 1083 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr() 1097 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | DemandedBits.h | 54 APInt getDemandedBits(Instruction *I); 57 APInt getDemandedBits(Use *U); 69 static APInt determineLiveOperandBitsAdd(unsigned OperandNo, 70 const APInt &AOut, 76 static APInt determineLiveOperandBitsSub(unsigned OperandNo, 77 const APInt &AOut, 85 const APInt &AOut, APInt &AB, 96 DenseMap<Instruction *, APInt> AliveBits;
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/include/llvm/Support/ |
| 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() 118 APInt getMinValue() const { in getMinValue() 124 APInt getSignedMinValue() const { in getSignedMinValue() 126 APInt Min = One; in getSignedMinValue() 134 APInt getMaxValue() const { in getMaxValue() 140 APInt getSignedMaxValue() const { in getSignedMaxValue() 142 APInt Max = ~Zero; in getSignedMaxValue() [all …]
|
| H A D | CheckedArithmetic.h | 31 llvm::APInt ALHS(sizeof(T) * 8, LHS, Signed); 32 llvm::APInt ARHS(sizeof(T) * 8, RHS, Signed); 34 llvm::APInt Out = (ALHS.*Op)(ARHS, Overflow); 49 return checkedOp(LHS, RHS, &llvm::APInt::sadd_ov); in checkedAdd() 58 return checkedOp(LHS, RHS, &llvm::APInt::ssub_ov); in checkedSub() 67 return checkedOp(LHS, RHS, &llvm::APInt::smul_ov); in checkedMul() 87 return checkedOp(LHS, RHS, &llvm::APInt::uadd_ov, /*Signed=*/false); in checkedAddUnsigned() 96 return checkedOp(LHS, RHS, &llvm::APInt::umul_ov, /*Signed=*/false); in checkedMulUnsigned()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonConstPropagation.cpp | 385 bool evaluateANDii(const APInt &A1, const APInt &A2, APInt &Result); 390 bool evaluateORii(const APInt &A1, const APInt &A2, APInt &Result); 395 bool evaluateXORii(const APInt &A1, const APInt &A2, APInt &Result); 1133 APInt A; in evaluateCMPrr() 1160 APInt A; in evaluateCMPri() 1187 APInt A; in evaluateCMPrp() 1395 APInt A; in evaluateANDrr() 1438 const APInt &A2, APInt &Result) { in evaluateANDii() 1505 const APInt &A2, APInt &Result) { in evaluateORii() 1567 const APInt &A2, APInt &Result) { in evaluateXORii() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 203 APInt Mask; 208 : Root(nullptr), Mask(APInt::getNullValue(BitWidth)), in MaskOps() 240 const APInt *BitIndex = nullptr; in matchAndOrChain() 322 APInt Mask55 = APInt::getSplat(Len, APInt(8, 0x55)); in tryToRecognizePopCount() 323 APInt Mask33 = APInt::getSplat(Len, APInt(8, 0x33)); in tryToRecognizePopCount() 324 APInt Mask0F = APInt::getSplat(Len, APInt(8, 0x0F)); in tryToRecognizePopCount() 325 APInt Mask01 = APInt::getSplat(Len, APInt(8, 0x01)); in tryToRecognizePopCount() 326 APInt MaskShift = APInt(Len, Len - 8); in tryToRecognizePopCount()
|
| /freebsd-13.1/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()
|
| H A D | X86InstCombineIntrinsic.cpp | 235 APInt DemandedLower = APInt::getOneBitSet(NumAmtElts, 0); in simplifyX86immShift() 357 APInt UpperBits = in simplifyX86varShift() 712 APInt APLength, APInt APIndex, in simplifyX86insertq() 777 APInt Mask = APInt::getLowBitsSet(64, Length).shl(Index); in simplifyX86insertq() 934 APInt DemandedElts = APInt::getLowBitsSet(Width, DemandedWidth); in instCombineIntrinsic() 1429 APInt::getSplat(VWidth, APInt(2, (Imm & 0x01) ? 2 : 1)); in instCombineIntrinsic() 1438 APInt::getSplat(VWidth, APInt(2, (Imm & 0x10) ? 2 : 1)); in instCombineIntrinsic() 1782 APInt &UndefElts2, APInt &UndefElts3, in simplifyDemandedVectorEltsIntrinsic() 1783 std::function<void(Instruction *, unsigned, APInt, APInt &)> in simplifyDemandedVectorEltsIntrinsic() 1918 APInt SubMask = APInt::getSplat(VWidth, APInt(2, 0x1)); in simplifyDemandedVectorEltsIntrinsic() [all …]
|
| H A D | X86TargetTransformInfo.h | 145 const APInt &DemandedElts, 167 APInt DemandedMask, KnownBits &Known, 170 InstCombiner &IC, IntrinsicInst &II, APInt DemandedElts, APInt &UndefElts, 171 APInt &UndefElts2, APInt &UndefElts3, 172 std::function<void(Instruction *, unsigned, APInt, APInt &)> 211 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty, 218 const APInt &Imm, Type *Ty, 222 const APInt &Imm, Type *Ty,
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | RecordSerialization.cpp | 44 Num = APSInt(APInt(/*numBits=*/16, Short, /*isSigned=*/false), in consume() 54 Num = APSInt(APInt(8, N, true), false); in consume() 61 Num = APSInt(APInt(16, N, true), false); in consume() 68 Num = APSInt(APInt(16, N, false), true); in consume() 75 Num = APSInt(APInt(32, N, true), false); in consume() 82 Num = APSInt(APInt(32, N, FalseVal), true); in consume() 89 Num = APSInt(APInt(64, N, true), false); in consume() 96 Num = APSInt(APInt(64, N, false), true); in consume()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86ShuffleDecode.h | 24 class APInt; variable 100 void DecodePSHUFBMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 124 void DecodeVPPERMMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 149 ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 154 ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 158 void DecodeVPERMVMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 162 void DecodeVPERMV3Mask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts,
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/FuzzMutate/ |
| H A D | OpDescriptor.cpp | 18 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W))); in makeConstantsWithType() 19 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W))); in makeConstantsWithType() 20 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType() 21 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMinValue(W))); in makeConstantsWithType() 22 Cs.push_back(ConstantInt::get(IntTy, APInt::getOneBitSet(W, W / 2))); in makeConstantsWithType()
|