/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APInt.h | 43 class APInt; variable 45 inline APInt operator-(APInt); 77 class LLVM_NODISCARD APInt { 102 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {} in APInt() function 140 APInt &clearUnusedBits() { in clearUnusedBits() 184 static void divide(const APInt &LHS, unsigned lhsWords, const APInt &RHS, 185 unsigned rhsWords, APInt *Quotient, APInt *Remainder); 194 void initSlowCase(const APInt &that); 197 APInt shlSlowCase(unsigned shiftAmt) const; 200 APInt AndSlowCase(const APInt &RHS) const; [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | APInt.h | 35 class APInt; variable 37 inline APInt operator-(APInt); 69 class LLVM_NODISCARD APInt { 107 APInt(uint64_t *val, unsigned bits) : BitWidth(bits) { in APInt() function 147 APInt &clearUnusedBits() { in clearUnusedBits() 202 void initSlowCase(const APInt &that); 214 void AssignSlowCase(const APInt &RHS); 217 bool EqualSlowCase(const APInt &RHS) const LLVM_READONLY; 235 bool intersectsSlowCase(const APInt &RHS) const LLVM_READONLY; 238 bool isSubsetOfSlowCase(const APInt &RHS) const LLVM_READONLY; [all …]
|
D | APSInt.h | 21 class LLVM_NODISCARD 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 48 bool isNegative() const { return isSigned() && APInt::isNegative(); } in isNegative() 63 APSInt &operator=(APInt RHS) { 65 APInt::operator=(std::move(RHS)); 71 APInt::operator=(RHS); 83 APInt::toString(Str, Radix, isSigned()); 88 return APInt::toString(Radix, isSigned()); in toString() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | APInt.cpp | 77 void APInt::initSlowCase(uint64_t val, bool isSigned) { in initSlowCase() 86 void APInt::initSlowCase(const APInt& that) { in initSlowCase() 91 void APInt::initFromArray(ArrayRef<uint64_t> bigVal) { in initFromArray() 108 APInt::APInt(unsigned numBits, ArrayRef<uint64_t> bigVal) in APInt() function in APInt 113 APInt::APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]) in APInt() function in APInt 118 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix) in APInt() function in APInt 124 void APInt::reallocate(unsigned NewBitWidth) { in reallocate() 143 void APInt::AssignSlowCase(const APInt& RHS) { in AssignSlowCase() 159 void APInt::Profile(FoldingSetNodeID& ID) const { in Profile() 173 APInt& APInt::operator++() { in operator ++() [all …]
|
D | KnownBits.cpp | 24 APInt PossibleSumZero = LHS.getMaxValue() + RHS.getMaxValue() + !CarryZero; in computeForAddCarry() 25 APInt PossibleSumOne = LHS.getMinValue() + RHS.getMinValue() + CarryOne; in computeForAddCarry() 28 APInt CarryKnownZero = ~(PossibleSumZero ^ LHS.Zero ^ RHS.Zero); in computeForAddCarry() 29 APInt CarryKnownOne = PossibleSumOne ^ LHS.One ^ RHS.One; in computeForAddCarry() 32 APInt LHSKnownUnion = LHS.Zero | LHS.One; in computeForAddCarry() 33 APInt RHSKnownUnion = RHS.Zero | RHS.One; in computeForAddCarry() 34 APInt CarryKnownUnion = std::move(CarryKnownZero) | CarryKnownOne; in computeForAddCarry() 35 APInt Known = std::move(LHSKnownUnion) & RHSKnownUnion & CarryKnownUnion; in computeForAddCarry()
|
D | APFloat.cpp | 477 lsb = APInt::tcLSB(parts, partCount); in lostFractionThroughTruncation() 485 APInt::tcExtractBit(parts, bits - 1)) in lostFractionThroughTruncation() 499 APInt::tcShiftRight(dst, parts, bits); in shiftRight() 613 APInt::tcFullMultiply(pow5, pow5 - pc, pow5 - pc, pc, pc); in powerOf5() 623 APInt::tcFullMultiply(p2, p1, pow5, result, pc); in powerOf5() 639 APInt::tcAssign(dst, p1, result); in powerOf5() 734 APInt::tcAssign(significandParts(), rhs.significandParts(), in copySignificand() 741 void IEEEFloat::makeNaN(bool SNaN, bool Negative, const APInt *fill) { in makeNaN() 750 APInt::tcSet(significand, 0, numParts); in makeNaN() 752 APInt::tcAssign(significand, fill->getRawData(), in makeNaN() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | APInt.cpp | 77 void APInt::initSlowCase(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 =() 183 APInt& APInt::operator++() { in operator ++() 212 APInt& APInt::operator--() { in operator --() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | ConstantRange.cpp | 43 : Lower(Full ? APInt::getMaxValue(BitWidth) : APInt::getMinValue(BitWidth)), in ConstantRange() 46 ConstantRange::ConstantRange(APInt V) in ConstantRange() 49 ConstantRange::ConstantRange(APInt L, APInt U) in ConstantRange() 71 APInt Lower = Known.getMinValue(), Upper = Known.getMaxValue(); in fromKnownBits() 93 APInt UMax(CR.getUnsignedMax()); in makeAllowedICmpRegion() 96 return ConstantRange(APInt::getMinValue(W), std::move(UMax)); in makeAllowedICmpRegion() 99 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() 102 return ConstantRange(APInt::getSignedMinValue(W), std::move(SMax)); in makeAllowedICmpRegion() 105 return getNonEmpty(APInt::getMinValue(W), CR.getUnsignedMax() + 1); in makeAllowedICmpRegion() 107 return getNonEmpty(APInt::getSignedMinValue(W), CR.getSignedMax() + 1); in makeAllowedICmpRegion() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
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() 125 const APInt &Other); 150 const APInt &Other, 156 bool getEquivalentICmp(CmpInst::Predicate &Pred, APInt &RHS) const; 159 const APInt &getLower() const { return Lower; } in getLower() 162 const APInt &getUpper() const { return Upper; } in getUpper() 201 bool contains(const APInt &Val) const; [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 42 const APInt &Demanded) { in ShrinkDemandedConstant() 48 const APInt *C; in ShrinkDemandedConstant() 69 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() 83 const APInt &DemandedMask, in SimplifyDemandedBits() 118 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits() 177 APInt IKnownZero = RHSKnown.Zero | LHSKnown.Zero; in SimplifyDemandedUseBits() 179 APInt IKnownOne = RHSKnown.One & LHSKnown.One; in SimplifyDemandedUseBits() 211 APInt IKnownZero = RHSKnown.Zero & LHSKnown.Zero; in SimplifyDemandedUseBits() 213 APInt IKnownOne = RHSKnown.One | LHSKnown.One; in SimplifyDemandedUseBits() 243 APInt IKnownZero = (RHSKnown.Zero & LHSKnown.Zero) | in SimplifyDemandedUseBits() [all …]
|
D | InstCombineInternal.h | 53 class APInt; variable 119 inline bool isSignBitCheck(ICmpInst::Predicate Pred, const APInt &RHS, in isSignBitCheck() 744 bool MaskedValueIsZero(const Value *V, const APInt &Mask, unsigned Depth = 0, 838 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, KnownBits &Known, 841 const APInt &DemandedMask, KnownBits &Known, 848 const APInt &DemandedMask, 855 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, 856 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known); 863 APInt DemandedElts, 866 Value *SimplifyDemandedVectorElts(Value *V, APInt DemandedElts, [all …]
|
D | InstCombineShifts.cpp | 76 APInt MaximalRepresentableShiftAmount = in reassociateShiftAmtsOfTwoSameDirectionShifts() 77 APInt::getAllOnesValue(ShAmt0->getType()->getScalarSizeInBits()); in reassociateShiftAmtsOfTwoSameDirectionShifts() 112 APInt(NewShAmtBitWidth, XBitWidth)))) in reassociateShiftAmtsOfTwoSameDirectionShifts() 124 APInt(NewShAmtBitWidth, XBitWidth - 1)))) in reassociateShiftAmtsOfTwoSameDirectionShifts() 330 const APInt *C0, *C1; in foldShiftOfShiftedLogic() 405 const APInt *B; in commonShiftTransforms() 429 const APInt *InnerShiftConst; in canEvaluateShiftedShift() 457 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift() 500 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && in canEvaluateShifted() 556 const APInt *C1; in foldShiftedShift() [all …]
|
D | InstCombineCompares.cpp | 39 static bool addWithOverflow(APInt &Result, const APInt &In1, in addWithOverflow() 40 const APInt &In2, bool IsSigned = false) { in addWithOverflow() 52 static bool subWithOverflow(APInt &Result, const APInt &In1, in subWithOverflow() 53 const APInt &In2, bool IsSigned = false) { in subWithOverflow() 76 static bool isSignTest(ICmpInst::Predicate &Pred, const APInt &C) { in isSignTest() 103 APInt &Min, APInt &Max) { in computeSignedMinMaxValuesFromKnownBits() 107 APInt UnknownBits = ~(Known.Zero|Known.One); in computeSignedMinMaxValuesFromKnownBits() 125 APInt &Min, APInt &Max) { in computeUnsignedMinMaxValuesFromKnownBits() 129 APInt UnknownBits = ~(Known.Zero|Known.One); in computeUnsignedMinMaxValuesFromKnownBits() 1102 Instruction *InstCombiner::foldICmpAddOpConst(Value *X, const APInt &C, in foldICmpAddOpConst() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | DemandedBits.cpp | 88 const APInt &AOut, APInt &AB, KnownBits &Known, KnownBits &Known2, in determineLiveOperandBits() 137 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits() 147 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits() 153 const APInt *SA; in determineLiveOperandBits() 181 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits() 185 const APInt *ShiftAmtC; in determineLiveOperandBits() 194 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1); in determineLiveOperandBits() 196 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits() 202 const APInt *ShiftAmtC; in determineLiveOperandBits() 210 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits() [all …]
|
D | Loads.cpp | 39 static bool isAligned(const Value *Base, const APInt &Offset, Align Alignment, in isAligned() 42 const APInt APBaseAlign(Offset.getBitWidth(), BA->value()); in isAligned() 43 const APInt APAlign(Offset.getBitWidth(), Alignment.value()); in isAligned() 53 const Value *V, Align Alignment, const APInt &Size, const DataLayout &DL, in isDereferenceableAndAlignedPointer() 69 APInt KnownDerefBytes(Size.getBitWidth(), in isDereferenceableAndAlignedPointer() 78 APInt Offset(DL.getTypeStoreSizeInBits(Ty), 0); in isDereferenceableAndAlignedPointer() 86 APInt Offset(DL.getIndexTypeSizeInBits(GEP->getType()), 0); in isDereferenceableAndAlignedPointer() 88 !Offset.urem(APInt(Offset.getBitWidth(), Alignment.value())) in isDereferenceableAndAlignedPointer() 124 const APInt &Size, in isDereferenceableAndAlignedPointer() 153 APInt AccessSize(DL.getPointerTypeSizeInBits(V->getType()), in isDereferenceableAndAlignedPointer() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/ |
D | OrcMCJITReplacement.cpp | 54 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction() 67 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction() 76 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue())); in runFunction() 92 rv.IntVal = APInt(BitWidth, ((bool (*)())(intptr_t)FPtr)()); in runFunction() 94 rv.IntVal = APInt(BitWidth, ((char (*)())(intptr_t)FPtr)()); in runFunction() 96 rv.IntVal = APInt(BitWidth, ((short (*)())(intptr_t)FPtr)()); in runFunction() 98 rv.IntVal = APInt(BitWidth, ((int (*)())(intptr_t)FPtr)()); in runFunction() 100 rv.IntVal = APInt(BitWidth, ((int64_t (*)())(intptr_t)FPtr)()); in runFunction() 106 rv.IntVal = APInt(32, ((int (*)())(intptr_t)FPtr)()); in runFunction()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonConstPropagation.cpp | 360 bool constToInt(const Constant *C, APInt &Val) const; 362 const ConstantInt *intToConst(const APInt &Val) const; 367 bool evaluateCMPri(uint32_t Cmp, const RegisterSubReg &R1, const APInt &A2, 371 bool evaluateCMPii(uint32_t Cmp, const APInt &A1, const APInt &A2, 373 bool evaluateCMPpi(uint32_t Cmp, uint32_t Props, const APInt &A2, 384 bool evaluateANDri(const RegisterSubReg &R1, const APInt &A2, 386 bool evaluateANDii(const APInt &A1, const APInt &A2, APInt &Result); 389 bool evaluateORri(const RegisterSubReg &R1, const APInt &A2, 391 bool evaluateORii(const APInt &A1, const APInt &A2, APInt &Result); 394 bool evaluateXORri(const RegisterSubReg &R1, const APInt &A2, [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/ |
D | AggressiveInstCombine.cpp | 160 APInt Mask; 165 : Root(nullptr), Mask(APInt::getNullValue(BitWidth)), in MaskOps() 278 APInt Mask55 = APInt::getSplat(Len, APInt(8, 0x55)); in tryToRecognizePopCount() 279 APInt Mask33 = APInt::getSplat(Len, APInt(8, 0x33)); in tryToRecognizePopCount() 280 APInt Mask0F = APInt::getSplat(Len, APInt(8, 0x0F)); in tryToRecognizePopCount() 281 APInt Mask01 = APInt::getSplat(Len, APInt(8, 0x01)); in tryToRecognizePopCount() 282 APInt MaskShift = APInt(Len, Len - 8); in tryToRecognizePopCount()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | KnownBits.h | 23 APInt Zero; 24 APInt One; 28 KnownBits(APInt Zero, APInt One) in KnownBits() 56 const APInt &getConstant() const { in getConstant() 114 APInt getMinValue() const { in getMinValue() 120 APInt getMaxValue() const { in getMaxValue() 137 APInt NewZero = Zero.zext(BitWidth); in zext()
|
D | CheckedArithmetic.h | 31 llvm::APInt ALHS(/*BitSize=*/sizeof(T) * 8, LHS, Signed); 32 llvm::APInt ARHS(/*BitSize=*/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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ShuffleDecodeConstantPool.cpp | 25 APInt &UndefElts, in extractConstantMask() 53 UndefElts = APInt(NumMaskElts, 0); in extractConstantMask() 77 APInt UndefBits(CstSizeInBits, 0); in extractConstantMask() 78 APInt MaskBits(CstSizeInBits, 0); in extractConstantMask() 97 APInt EltUndef = UndefBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask() 107 APInt EltBits = MaskBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask() 121 APInt UndefElts; in DecodePSHUFBMask() 160 APInt UndefElts; in DecodeVPERMILPMask() 197 APInt UndefElts; in DecodeVPERMIL2PMask() 251 APInt UndefElts; in DecodeVPPERMMask() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/ |
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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | GISelKnownBits.h | 40 const APInt &DemandedElts, 43 unsigned computeNumSignBits(Register R, const APInt &DemandedElts, 51 APInt getKnownZeroes(Register R); 52 APInt getKnownOnes(Register R); 57 bool maskedValueIsZero(Register Val, const APInt &Mask) { in maskedValueIsZero() 68 const APInt &DemandedElts,
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/ |
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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.h | 111 void DecodePSHUFBMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 134 void DecodeVPPERMMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 159 ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 164 ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 168 void DecodeVPERMVMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 172 void DecodeVPERMV3Mask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts,
|