/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | APInt.h | 97 unsigned BitWidth; ///< The number of bits in this APInt. variable 107 APInt(uint64_t *val, unsigned bits) : BitWidth(bits) { in APInt() 114 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; } in isSingleWord() 149 unsigned WordBits = ((BitWidth-1) % APINT_BITS_PER_WORD) + 1; in clearUnusedBits() 278 : BitWidth(numBits) { in BitWidth() function 279 assert(BitWidth && "bitwidth too small"); in BitWidth() 321 APInt(const APInt &that) : BitWidth(that.BitWidth) { in APInt() 329 APInt(APInt &&that) : BitWidth(that.BitWidth) { in APInt() 331 that.BitWidth = 0; in APInt() 345 explicit APInt() : BitWidth(1) { U.VAL = 0; } in APInt() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | KnownBits.h | 36 KnownBits(unsigned BitWidth) : Zero(BitWidth, 0), One(BitWidth, 0) {} in KnownBits() 127 KnownBits trunc(unsigned BitWidth) const { in trunc() 128 return KnownBits(Zero.trunc(BitWidth), One.trunc(BitWidth)); in trunc() 135 KnownBits zext(unsigned BitWidth, bool ExtendedBitsAreKnownZero) const { in zext() 137 APInt NewZero = Zero.zext(BitWidth); in zext() 140 return KnownBits(NewZero, One.zext(BitWidth)); in zext() 145 KnownBits sext(unsigned BitWidth) const { in sext() 146 return KnownBits(Zero.sext(BitWidth), One.sext(BitWidth)); in sext() 153 KnownBits zextOrTrunc(unsigned BitWidth, in zextOrTrunc() 155 if (BitWidth > getBitWidth()) in zextOrTrunc() [all …]
|
D | SMTAPI.h | 144 SMTSortRef getFloatSort(unsigned BitWidth) { in getFloatSort() argument 145 switch (BitWidth) { in getFloatSort() 163 virtual SMTSortRef getBitvectorSort(const unsigned BitWidth) = 0; 399 virtual llvm::APSInt getBitvector(const SMTExprRef &Exp, unsigned BitWidth, 412 virtual SMTExprRef mkBitvector(const llvm::APSInt Int, unsigned BitWidth) = 0;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | DemandedBits.cpp | 90 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits() local 99 [&](unsigned BitWidth, const Value *V1, const Value *V2) { in determineLiveOperandBits() argument 105 Known = KnownBits(BitWidth); in determineLiveOperandBits() 109 Known2 = KnownBits(BitWidth); in determineLiveOperandBits() 136 ComputeKnownBits(BitWidth, Val, nullptr); in determineLiveOperandBits() 137 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits() 138 std::min(BitWidth, Known.countMaxLeadingZeros()+1)); in determineLiveOperandBits() 146 ComputeKnownBits(BitWidth, Val, nullptr); in determineLiveOperandBits() 147 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits() 148 std::min(BitWidth, Known.countMaxTrailingZeros()+1)); in determineLiveOperandBits() [all …]
|
D | ValueTracking.cpp | 90 if (unsigned BitWidth = Ty->getScalarSizeInBits()) in getBitWidth() local 91 return BitWidth; in getBitWidth() 313 unsigned BitWidth = KnownOut.getBitWidth(); in computeKnownBitsAddSub() local 317 KnownBits LHSKnown(BitWidth); in computeKnownBitsAddSub() 327 unsigned BitWidth = Known.getBitWidth(); in computeKnownBitsMul() local 360 BitWidth) - BitWidth; in computeKnownBitsMul() 361 LeadZ = std::min(LeadZ, BitWidth); in computeKnownBitsMul() 419 unsigned ResultBitsKnown = std::min(SmallestOperand + TrailZ, BitWidth); in computeKnownBitsMul() 442 unsigned BitWidth = Known.getBitWidth(); in computeKnownBitsFromRangeMetadata() local 460 APInt Mask = APInt::getHighBitsSet(BitWidth, CommonPrefixBits); in computeKnownBitsFromRangeMetadata() [all …]
|
D | ScalarEvolution.cpp | 1355 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType()); in getSignedOverflowLimitForStep() local 1358 return SE->getConstant(APInt::getSignedMinValue(BitWidth) - in getSignedOverflowLimitForStep() 1363 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) - in getSignedOverflowLimitForStep() 1375 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType()); in getUnsignedOverflowLimitForStep() local 1378 return SE->getConstant(APInt::getMinValue(BitWidth) - in getUnsignedOverflowLimitForStep() 1489 unsigned BitWidth = SE->getTypeSizeInBits(AR->getType()); in getPreStartForExtend() local 1490 Type *WideTy = IntegerType::get(SE->getContext(), BitWidth * 2); in getPreStartForExtend() 1616 const unsigned BitWidth = C.getBitWidth(); in extractConstantWithoutWrapping() local 1618 uint32_t TZ = BitWidth; in extractConstantWithoutWrapping() 1624 return TZ < BitWidth ? C.trunc(TZ).zext(BitWidth) : C; in extractConstantWithoutWrapping() [all …]
|
D | ScalarEvolutionAliasAnalysis.cpp | 45 unsigned BitWidth = SE.getTypeSizeInBits(AS->getType()); in alias() local 46 APInt ASizeInt(BitWidth, LocA.Size.hasValue() in alias() 49 APInt BSizeInt(BitWidth, LocB.Size.hasValue() in alias()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | APInt.cpp | 91 assert(BitWidth && "Bitwidth too small"); in initFromArray() 108 : BitWidth(numBits), VAL(0) { in APInt() 113 : BitWidth(numBits), VAL(0) { in APInt() 118 : BitWidth(numbits), VAL(0) { in APInt() 119 assert(BitWidth && "Bitwidth too small"); in APInt() 128 if (BitWidth == RHS.getBitWidth()) { in AssignSlowCase() 151 BitWidth = RHS.BitWidth; in AssignSlowCase() 239 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator +=() 274 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator -=() 359 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator *=() [all …]
|
D | StringRef.cpp | 551 unsigned BitWidth = Log2Radix * Str.size(); in getAsInteger() local 552 if (BitWidth < Result.getBitWidth()) in getAsInteger() 553 BitWidth = Result.getBitWidth(); // don't shrink the result in getAsInteger() 554 else if (BitWidth > Result.getBitWidth()) in getAsInteger() 555 Result = Result.zext(BitWidth); in getAsInteger() 560 RadixAP = APInt(BitWidth, Radix); in getAsInteger() 561 CharAP = APInt(BitWidth, 0); in getAsInteger()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | APInt.cpp | 92 assert(BitWidth && "Bitwidth too small"); in initFromArray() 109 : BitWidth(numBits) { in APInt() 114 : BitWidth(numBits) { in APInt() 119 : BitWidth(numbits) { in APInt() 120 assert(BitWidth && "Bitwidth too small"); in APInt() 127 BitWidth = NewBitWidth; in reallocate() 136 BitWidth = NewBitWidth; in reallocate() 160 ID.AddInteger(BitWidth); in Profile() 194 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator +=() 214 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator -=() [all …]
|
D | StringRef.cpp | 542 unsigned BitWidth = Log2Radix * Str.size(); in getAsInteger() local 543 if (BitWidth < Result.getBitWidth()) in getAsInteger() 544 BitWidth = Result.getBitWidth(); // don't shrink the result in getAsInteger() 545 else if (BitWidth > Result.getBitWidth()) in getAsInteger() 546 Result = Result.zext(BitWidth); in getAsInteger() 551 RadixAP = APInt(BitWidth, Radix); in getAsInteger() 552 CharAP = APInt(BitWidth, 0); in getAsInteger()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APInt.h | 78 unsigned BitWidth; ///< The number of bits in this APInt. variable 102 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {} in APInt() 107 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; } in isSingleWord() 142 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; in clearUnusedBits() 241 : BitWidth(numBits), VAL(0) { in BitWidth() function 242 assert(BitWidth && "bitwidth too small"); in BitWidth() 283 APInt(const APInt &that) : BitWidth(that.BitWidth), VAL(0) { in APInt() 291 APInt(APInt &&that) : BitWidth(that.BitWidth), VAL(that.VAL) { in APInt() 292 that.BitWidth = 0; in APInt() 306 explicit APInt() : BitWidth(1), VAL(0) {} in APInt() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/ |
D | OrcMCJITReplacement.cpp | 90 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction() local 91 if (BitWidth == 1) in runFunction() 92 rv.IntVal = APInt(BitWidth, ((bool (*)())(intptr_t)FPtr)()); in runFunction() 93 else if (BitWidth <= 8) in runFunction() 94 rv.IntVal = APInt(BitWidth, ((char (*)())(intptr_t)FPtr)()); in runFunction() 95 else if (BitWidth <= 16) in runFunction() 96 rv.IntVal = APInt(BitWidth, ((short (*)())(intptr_t)FPtr)()); in runFunction() 97 else if (BitWidth <= 32) in runFunction() 98 rv.IntVal = APInt(BitWidth, ((int (*)())(intptr_t)FPtr)()); in runFunction() 99 else if (BitWidth <= 64) in runFunction() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | ConstantRange.h | 62 explicit ConstantRange(uint32_t BitWidth, bool isFullSet); 73 static ConstantRange getEmpty(uint32_t BitWidth) { in getEmpty() argument 74 return ConstantRange(BitWidth, false); in getEmpty() 78 static ConstantRange getFull(uint32_t BitWidth) { in getFull() argument 79 return ConstantRange(BitWidth, true); in getFull() 295 uint32_t BitWidth) const; 301 ConstantRange zeroExtend(uint32_t BitWidth) const; 307 ConstantRange signExtend(uint32_t BitWidth) const; 313 ConstantRange truncate(uint32_t BitWidth) const; 317 ConstantRange zextOrTrunc(uint32_t BitWidth) const; [all …]
|
D | DataLayout.h | 148 findAlignmentLowerBound(AlignTypeEnum AlignType, uint32_t BitWidth) const { in findAlignmentLowerBound() argument 150 BitWidth); in findAlignmentLowerBound() 154 findAlignmentLowerBound(AlignTypeEnum AlignType, uint32_t BitWidth); 515 Align getABIIntegerTypeAlignment(unsigned BitWidth) const;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | ValueTypes.h | 58 static EVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT() 59 return MVT::getFloatingPointVT(BitWidth); in getFloatingPointVT() 64 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT() 65 MVT M = MVT::getIntegerVT(BitWidth); in getIntegerVT() 68 return getExtendedIntegerVT(Context, BitWidth); in getIntegerVT() 103 unsigned BitWidth = EltTy.getSizeInBits(); in changeVectorElementTypeToInteger() local 104 MVT IntTy = MVT::getIntegerVT(BitWidth); in changeVectorElementTypeToInteger() 334 unsigned BitWidth = getSizeInBits(); in getRoundIntegerType() local 335 if (BitWidth <= 8) in getRoundIntegerType() 337 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth)); in getRoundIntegerType() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 67 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); in SimplifyDemandedInstructionBits() local 68 KnownBits Known(BitWidth); in SimplifyDemandedInstructionBits() 69 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() 123 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits() local 126 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits() 127 Known.getBitWidth() == BitWidth && in SimplifyDemandedUseBits() 154 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits() 399 Known = InputKnown.zextOrTrunc(BitWidth, in SimplifyDemandedUseBits() 451 Known = InputKnown.sext(BitWidth); in SimplifyDemandedUseBits() 462 APInt DemandedFromOps(APInt::getLowBitsSet(BitWidth, BitWidth-NLZ)); in SimplifyDemandedUseBits() [all …]
|
D | InstCombineShifts.cpp | 498 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateShifted() 500 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && in canEvaluateShifted() 501 CI->getLimitedValue(BitWidth) < BitWidth) { in canEvaluateShifted() 943 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitShl() local 961 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl() 991 if (AmtSum < BitWidth) in visitShl() 998 MaskedValueIsZero(Op0, APInt::getHighBitsSet(BitWidth, ShAmt), 0, &I)) { in visitShl() 1040 match(Op1, m_Sub(m_SpecificInt(BitWidth - 1), m_Value(X)))) in visitShl() 1042 ConstantInt::get(Ty, APInt::getSignMask(BitWidth)), X); in visitShl() 1063 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitLShr() local [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | GISelKnownBits.cpp | 80 unsigned BitWidth = Ty.getScalarSizeInBits(); in signBitIsZero() local 81 return maskedValueIsZero(R, APInt::getSignMask(BitWidth)); in signBitIsZero() 106 unsigned BitWidth = DstTy.getSizeInBits(); in computeKnownBitsImpl() local 107 Known = KnownBits(BitWidth); // Don't know anything in computeKnownBitsImpl() 249 BitWidth) - in computeKnownBitsImpl() 250 BitWidth; in computeKnownBitsImpl() 253 Known.Zero.setLowBits(std::min(TrailZ, BitWidth)); in computeKnownBitsImpl() 254 Known.Zero.setHighBits(std::min(LeadZ, BitWidth)); in computeKnownBitsImpl() 275 BitWidth > 1) in computeKnownBitsImpl() 284 Known = Known.sext(BitWidth); in computeKnownBitsImpl() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | FunctionLoweringInfo.cpp | 400 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { in GetLiveOutRegInfo() argument 408 if (BitWidth > LOI->Known.getBitWidth()) { in GetLiveOutRegInfo() 410 LOI->Known = LOI->Known.zext(BitWidth, false /* => any extend */); in GetLiveOutRegInfo() 432 unsigned BitWidth = IntVT.getSizeInBits(); in ComputePHILiveOutRegInfo() local 443 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo() 448 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo() 460 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); in ComputePHILiveOutRegInfo() 468 assert(DestLOI.Known.Zero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() 469 DestLOI.Known.One.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() 476 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/MCJIT/ |
D | MCJIT.cpp | 571 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction() local 572 if (BitWidth == 1) in runFunction() 573 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); in runFunction() 574 else if (BitWidth <= 8) in runFunction() 575 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); in runFunction() 576 else if (BitWidth <= 16) in runFunction() 577 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); in runFunction() 578 else if (BitWidth <= 32) in runFunction() 579 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); in runFunction() 580 else if (BitWidth <= 64) in runFunction() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | ConstantRange.cpp | 42 ConstantRange::ConstantRange(uint32_t BitWidth, bool Full) in ConstantRange() argument 43 : Lower(Full ? APInt::getMaxValue(BitWidth) : APInt::getMinValue(BitWidth)), in ConstantRange() 185 unsigned BitWidth = V.getBitWidth(); in makeExactMulNUWRegion() local 190 APIntOps::RoundingUDiv(APInt::getMinValue(BitWidth), V, in makeExactMulNUWRegion() 192 APIntOps::RoundingUDiv(APInt::getMaxValue(BitWidth), V, in makeExactMulNUWRegion() 200 unsigned BitWidth = V.getBitWidth(); in makeExactMulNSWRegion() local 202 return ConstantRange::getFull(BitWidth); in makeExactMulNSWRegion() 204 APInt MinValue = APInt::getSignedMinValue(BitWidth); in makeExactMulNSWRegion() 205 APInt MaxValue = APInt::getSignedMaxValue(BitWidth); in makeExactMulNSWRegion() 237 unsigned BitWidth = Other.getBitWidth(); in makeGuaranteedNoWrapRegion() local [all …]
|
D | DataLayout.cpp | 478 uint32_t BitWidth) { in findAlignmentLowerBound() argument 479 auto Pair = std::make_pair((unsigned)AlignType, BitWidth); in findAlignmentLowerBound() 540 Align DataLayout::getAlignmentInfo(AlignTypeEnum AlignType, uint32_t BitWidth, in getAlignmentInfo() argument 542 AlignmentsTy::const_iterator I = findAlignmentLowerBound(AlignType, BitWidth); in getAlignmentInfo() 547 (I->TypeBitWidth == BitWidth || AlignType == INTEGER_ALIGN)) in getAlignmentInfo() 761 Align DataLayout::getABIIntegerTypeAlignment(unsigned BitWidth) const { in getABIIntegerTypeAlignment() 762 return getAlignmentInfo(INTEGER_ALIGN, BitWidth, true, nullptr); in getABIIntegerTypeAlignment()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | IntegerDivision.cpp | 35 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); in generateSignedRemainderCode() local 38 if (BitWidth == 64) { in generateSignedRemainderCode() 41 assert(BitWidth == 32 && "Unexpected bit width"); in generateSignedRemainderCode() 107 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); in generateSignedDivisionCode() local 110 if (BitWidth == 64) { in generateSignedDivisionCode() 113 assert(BitWidth == 32 && "Unexpected bit width"); in generateSignedDivisionCode() 158 unsigned BitWidth = DivTy->getBitWidth(); in generateUnsignedDivisionCode() local 165 if (BitWidth == 64) { in generateUnsignedDivisionCode() 171 assert(BitWidth == 32 && "Unexpected bit width"); in generateUnsignedDivisionCode()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | WholeProgramDevirt.cpp | 216 unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) { in setBeforeReturnValues() argument 217 if (BitWidth == 1) in setBeforeReturnValues() 220 OffsetByte = -((AllocBefore + 7) / 8 + (BitWidth + 7) / 8); in setBeforeReturnValues() 224 if (BitWidth == 1) in setBeforeReturnValues() 227 Target.setBeforeBytes(AllocBefore, (BitWidth + 7) / 8); in setBeforeReturnValues() 233 unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) { in setAfterReturnValues() argument 234 if (BitWidth == 1) in setAfterReturnValues() 241 if (BitWidth == 1) in setAfterReturnValues() 244 Target.setAfterBytes(AllocAfter, (BitWidth + 7) / 8); in setAfterReturnValues() 552 bool tryUniqueRetValOpt(unsigned BitWidth, [all …]
|