Home
last modified time | relevance | path

Searched refs:BitWidth (Results 1 - 25 of 111) sorted by relevance

12345

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A DKnownBits.h35 /// Create a known bits object of BitWidth bits initialized to unknown.
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()
[all...]
H A DSMTAPI.h144 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/Support/
H A DAPInt.cpp92 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()
135 // Update BitWidth. in reallocate()
136 BitWidth = NewBitWidth; in reallocate()
160 ID.AddInteger(BitWidth); in Profile()
194 assert(BitWidth in operator +=()
[all...]
H A DStringRef.cpp542 unsigned BitWidth = Log2Radix * Str.size();
543 if (BitWidth < Result.getBitWidth())
544 BitWidth = Result.getBitWidth(); // don't shrink the result
545 else if (BitWidth > Result.getBitWidth())
546 Result = Result.zext(BitWidth);
551 RadixAP = APInt(BitWidth, Radix);
552 CharAP = APInt(BitWidth, 0);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
H A DAPInt.h97 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 APInt()
279 assert(BitWidth && "bitwidth too small"); in APInt()
321 APInt(const APInt &that) : BitWidth(that.BitWidth) { in APInt()
329 APInt(APInt &&that) : BitWidth(that.BitWidth) { in APInt()
559 getSignMask(unsigned BitWidth) getSignMask() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
H A DAPInt.cpp91 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
[all...]
H A DStringRef.cpp551 unsigned BitWidth = Log2Radix * Str.size();
552 if (BitWidth < Result.getBitWidth())
553 BitWidth = Result.getBitWidth(); // don't shrink the result
554 else if (BitWidth > Result.getBitWidth())
555 Result = Result.zext(BitWidth);
560 RadixAP = APInt(BitWidth, Radix);
561 CharAP = APInt(BitWidth, 0);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
H A DDemandedBits.cpp90 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits() local
99 [&](unsigned BitWidth, const Value *V1, const Value *V2) { in determineLiveOperandBits()
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, Know in determineLiveOperandBits()
386 unsigned BitWidth = T->getScalarSizeInBits(); performAnalysis() local
[all...]
H A DValueTracking.cpp90 if (unsigned BitWidth = Ty->getScalarSizeInBits()) in getBitWidth()
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 in computeKnownBitsFromRangeMetadata() local
653 unsigned BitWidth = Known.getBitWidth(); computeKnownBitsFromAssume() local
964 unsigned BitWidth = Known.getBitWidth(); computeKnownBitsFromShiftOperator() local
1048 unsigned BitWidth = Known.getBitWidth(); computeKnownBitsFromOperator() local
1725 unsigned BitWidth = Known.getBitWidth(); computeKnownBits() local
1893 unsigned BitWidth = V->getType()->getScalarSizeInBits(); isKnownToBeAPowerOfTwo() local
2212 unsigned BitWidth = getBitWidth(V->getType()->getScalarType(), Q.DL); isKnownNonZero() local
4198 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); computeOverflowForSignedMul() local
5818 unsigned BitWidth = SI.getType()->getScalarSizeInBits(); setLimitsForSelectPattern() local
5872 unsigned BitWidth = V->getType()->getScalarSizeInBits(); computeConstantRange() local
[all...]
H A DScalarEvolutionAliasAnalysis.cpp45 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()
H A DScalarEvolution.cpp1355 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 in extractConstantWithoutWrapping()
1636 const unsigned BitWidth = ConstantStart.getBitWidth(); extractConstantWithoutWrapping() local
1698 unsigned BitWidth = getTypeSizeInBits(AR->getType()); getZeroExtendExpr() local
2042 unsigned BitWidth = getTypeSizeInBits(AR->getType()); getSignExtendExpr() local
2579 uint64_t BitWidth = getTypeSizeInBits(Ty); getAddExpr() variable
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
H A DAPInt.h78 unsigned BitWidth; ///< The number of bits in this APInt. member in llvm::APInt
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 APInt()
242 assert(BitWidth && "bitwidth too small"); in APInt()
283 APInt(const APInt &that) : BitWidth(that.BitWidth), VAL(0) { in APInt()
291 APInt(APInt &&that) : BitWidth(that.BitWidth), VA
451 getSignBit(unsigned BitWidth) getSignBit() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/
H A DOrcMCJITReplacement.cpp90 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 < in runFunction()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
H A DConstantRange.h62 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()
290 /// BitWidth is the target bitwidth of the cast. For casts which don't
295 uint32_t BitWidth) const;
300 /// zero extended to BitWidth.
301 ConstantRange zeroExtend(uint32_t BitWidth) const;
306 /// sign extended to BitWidth
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
H A DValueTypes.h58 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/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp80 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/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp67 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()
128 "Value *V, DemandedMask and Known must have same BitWidth"); in SimplifyDemandedUseBits()
154 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits()
399 Known = InputKnown.zextOrTrunc(BitWidth, in SimplifyDemandedUseBits()
797 unsigned BitWidth = DemandedMask.getBitWidth(); SimplifyMultipleUseDemandedBits() local
943 unsigned BitWidth = Ty->getScalarSizeInBits(); simplifyShrShlDemandedBits() local
[all...]
H A DInstCombineShifts.cpp498 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 in visitShl()
1063 unsigned BitWidth = Ty->getScalarSizeInBits(); visitLShr() local
1258 unsigned BitWidth = Ty->getScalarSizeInBits(); visitAShr() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp400 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/
H A DMCJIT.cpp571 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 < in runFunction()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp35 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/IR/
H A DConstantRange.cpp42 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(); makeGuaranteedNoWrapRegion() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
H A DWholeProgramDevirt.cpp216 unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) { in setBeforeReturnValues()
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()
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,
214 setBeforeReturnValues( MutableArrayRef<VirtualCallTarget> Targets, uint64_t AllocBefore, unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) setBeforeReturnValues() argument
231 setAfterReturnValues( MutableArrayRef<VirtualCallTarget> Targets, uint64_t AllocAfter, unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) setAfterReturnValues() argument
1333 tryUniqueRetValOpt( unsigned BitWidth, MutableArrayRef<VirtualCallTarget> TargetsForSlot, CallSiteInfo &CSInfo, WholeProgramDevirtResolution::ByArg *Res, VTableSlot Slot, ArrayRef<uint64_t> Args) tryUniqueRetValOpt() argument
1411 unsigned BitWidth = RetType->getBitWidth(); tryVirtualConstProp() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/
H A DvktMeshShaderInOutTestsEXT.cpp89 enum class BitWidth class
123 IfaceVar (Owner owner_, DataType dataType_, BitWidth bitWidth_, DataDim dataDim_, Interpolation interpolation_, uint32_t index_) in IfaceVar()
133 DE_ASSERT(!(dataType == DataType::FLOAT && bitWidth == BitWidth::B64 && interpolation == Interpolation::NORMAL)); in IfaceVar()
142 , bitWidth (BitWidth::B32)
151 BitWidth bitWidth;
175 return ((bitWidth == BitWidth::B64 && dataDim >= DataDim::VEC3) ? 2u : 1u);
1645 BitWidth bitWidthCases[] = { BitWidth::B64, BitWidth::B32, BitWidth
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/
H A DvktMeshShaderInOutTestsEXT.cpp89 enum class BitWidth class
123 IfaceVar (Owner owner_, DataType dataType_, BitWidth bitWidth_, DataDim dataDim_, Interpolation interpolation_, uint32_t index_) in IfaceVar()
133 DE_ASSERT(!(dataType == DataType::FLOAT && bitWidth == BitWidth::B64 && interpolation == Interpolation::NORMAL)); in IfaceVar()
142 , bitWidth (BitWidth::B32)
151 BitWidth bitWidth;
175 return ((bitWidth == BitWidth::B64 && dataDim >= DataDim::VEC3) ? 2u : 1u);
1645 BitWidth bitWidthCases[] = { BitWidth::B64, BitWidth::B32, BitWidth
[all...]

Completed in 27 milliseconds

12345