Home
last modified time | relevance | path

Searched refs:BitWidth (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/external/llvm/lib/Analysis/
DDemandedBits.cpp77 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits() local
86 [&](unsigned BitWidth, const Value *V1, const Value *V2) { in determineLiveOperandBits() argument
88 KnownZero = APInt(BitWidth, 0); in determineLiveOperandBits()
89 KnownOne = APInt(BitWidth, 0); in determineLiveOperandBits()
94 KnownZero2 = APInt(BitWidth, 0); in determineLiveOperandBits()
95 KnownOne2 = APInt(BitWidth, 0); in determineLiveOperandBits()
118 ComputeKnownBits(BitWidth, I, nullptr); in determineLiveOperandBits()
119 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits()
120 std::min(BitWidth, KnownOne.countLeadingZeros()+1)); in determineLiveOperandBits()
128 ComputeKnownBits(BitWidth, I, nullptr); in determineLiveOperandBits()
[all …]
DValueTracking.cpp57 if (unsigned BitWidth = Ty->getScalarSizeInBits()) in getBitWidth() local
58 return BitWidth; in getBitWidth()
245 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() local
248 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1); in computeKnownBitsAddSub()
257 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); in computeKnownBitsAddSub()
263 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() local
267 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in computeKnownBitsAddSub()
272 APInt CarryIn(BitWidth, 0); in computeKnownBitsAddSub()
305 KnownZero |= APInt::getSignBit(BitWidth); in computeKnownBitsAddSub()
309 KnownOne |= APInt::getSignBit(BitWidth); in computeKnownBitsAddSub()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DDemandedBits.cpp88 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits() local
97 [&](unsigned BitWidth, const Value *V1, const Value *V2) { in determineLiveOperandBits() argument
99 Known = KnownBits(BitWidth); in determineLiveOperandBits()
103 Known2 = KnownBits(BitWidth); in determineLiveOperandBits()
130 ComputeKnownBits(BitWidth, I, nullptr); in determineLiveOperandBits()
131 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits()
132 std::min(BitWidth, Known.countMaxLeadingZeros()+1)); in determineLiveOperandBits()
140 ComputeKnownBits(BitWidth, I, nullptr); in determineLiveOperandBits()
141 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits()
142 std::min(BitWidth, Known.countMaxTrailingZeros()+1)); in determineLiveOperandBits()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DKnownBits.h37 KnownBits(unsigned BitWidth) : Zero(BitWidth, 0), One(BitWidth, 0) {} in KnownBits()
113 KnownBits trunc(unsigned BitWidth) { in trunc()
114 return KnownBits(Zero.trunc(BitWidth), One.trunc(BitWidth)); in trunc()
119 KnownBits zext(unsigned BitWidth) { in zext()
120 return KnownBits(Zero.zext(BitWidth), One.zext(BitWidth)); in zext()
125 KnownBits sext(unsigned BitWidth) { in sext()
126 return KnownBits(Zero.sext(BitWidth), One.sext(BitWidth)); in sext()
131 KnownBits zextOrTrunc(unsigned BitWidth) { in zextOrTrunc()
132 return KnownBits(Zero.zextOrTrunc(BitWidth), One.zextOrTrunc(BitWidth)); in zextOrTrunc()
/external/llvm/lib/Support/
DAPInt.cpp92 assert(BitWidth && "Bitwidth too small"); in initFromArray()
109 : BitWidth(numBits), VAL(0) { in APInt()
114 : BitWidth(numBits), VAL(0) { in APInt()
119 : BitWidth(numbits), VAL(0) { in APInt()
120 assert(BitWidth && "Bitwidth too small"); in APInt()
129 if (BitWidth == RHS.getBitWidth()) { in AssignSlowCase()
152 BitWidth = RHS.BitWidth; in AssignSlowCase()
168 ID.AddInteger(BitWidth); in Profile()
254 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator +=()
281 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator -=()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
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 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 …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DAPSIntType.h21 uint32_t BitWidth; variable
26 : BitWidth(Width), IsUnsigned(Unsigned) {} in APSIntType()
29 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} in APSIntType()
31 uint32_t getBitWidth() const { return BitWidth; } in getBitWidth()
41 Value = Value.extOrTrunc(BitWidth); in apply()
57 return llvm::APSInt(BitWidth, IsUnsigned); in getZeroValue()
62 return llvm::APSInt::getMinValue(BitWidth, IsUnsigned); in getMinValue()
67 return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned); in getMaxValue()
71 return (llvm::APSInt(BitWidth, IsUnsigned) = RawValue); in getValue()
93 return BitWidth == Other.BitWidth && IsUnsigned == Other.IsUnsigned;
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DAPInt.cpp92 assert(BitWidth && "Bitwidth too small"); in initFromArray()
109 : BitWidth(numBits), VAL(0) { in APInt()
114 : BitWidth(numBits), VAL(0) { in APInt()
119 : BitWidth(numbits), VAL(0) { in APInt()
120 assert(BitWidth && "Bitwidth too small"); in APInt()
129 if (BitWidth == RHS.getBitWidth()) { in AssignSlowCase()
152 BitWidth = RHS.BitWidth; in AssignSlowCase()
168 ID.AddInteger(BitWidth); in Profile()
254 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator +=()
289 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator -=()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DAPInt.cpp91 assert(BitWidth && "Bitwidth too small"); in initFromArray()
108 : BitWidth(numBits) { in APInt()
113 : BitWidth(numBits) { in APInt()
118 : BitWidth(numbits) { in APInt()
119 assert(BitWidth && "Bitwidth too small"); in APInt()
126 BitWidth = NewBitWidth; in reallocate()
135 BitWidth = NewBitWidth; in reallocate()
159 ID.AddInteger(BitWidth); in Profile()
193 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator +=()
213 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator -=()
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
DAPInt.cpp89 assert(BitWidth && "Bitwidth too small"); in initFromArray()
106 : BitWidth(numBits), VAL(0) { in APInt()
111 : BitWidth(numBits), VAL(0) { in APInt()
116 : BitWidth(numbits), VAL(0) { in APInt()
117 assert(BitWidth && "Bitwidth too small"); in APInt()
126 if (BitWidth == RHS.getBitWidth()) { in AssignSlowCase()
149 BitWidth = RHS.BitWidth; in AssignSlowCase()
165 ID.AddInteger(BitWidth); in Profile()
251 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator +=()
278 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator -=()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp53 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); in SimplifyDemandedInstructionBits() local
54 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits()
55 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits()
105 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits() local
109 assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) && in SimplifyDemandedUseBits()
111 VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits()
112 KnownZero.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
113 KnownOne.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
140 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
141 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp38 if (unsigned BitWidth = Ty->getScalarSizeInBits()) in getBitWidth() local
39 return BitWidth; in getBitWidth()
65 unsigned BitWidth = Mask.getBitWidth(); in ComputeMaskedBits() local
69 TD->getTypeSizeInBits(V->getType()->getScalarType()) == BitWidth) && in ComputeMaskedBits()
71 V->getType()->getScalarSizeInBits() == BitWidth) && in ComputeMaskedBits()
72 KnownZero.getBitWidth() == BitWidth && in ComputeMaskedBits()
73 KnownOne.getBitWidth() == BitWidth && in ComputeMaskedBits()
94 APInt KnownZero2(BitWidth, 0), KnownOne2(BitWidth, 0); in ComputeMaskedBits()
116 KnownZero = Mask & APInt::getLowBitsSet(BitWidth, in ComputeMaskedBits()
139 KnownZero = Mask & APInt::getLowBitsSet(BitWidth, in ComputeMaskedBits()
[all …]
/external/llvm/include/llvm/ADT/
DAPInt.h74 unsigned BitWidth; ///< The number of bits in this APInt. variable
98 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {} in APInt()
103 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; } in isSingleWord()
138 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; in clearUnusedBits()
237 : BitWidth(numBits), VAL(0) { in BitWidth() function
238 assert(BitWidth && "bitwidth too small"); in BitWidth()
279 APInt(const APInt &that) : BitWidth(that.BitWidth), VAL(0) { in APInt()
287 APInt(APInt &&that) : BitWidth(that.BitWidth), VAL(that.VAL) { in APInt()
288 that.BitWidth = 0; in APInt()
302 explicit APInt() : BitWidth(1), VAL(0) {} in APInt()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPInt.h74 unsigned BitWidth; ///< The number of bits in this APInt. variable
95 APInt(uint64_t* val, unsigned bits) : BitWidth(bits), pVal(val) { } in APInt()
100 return BitWidth <= APINT_BITS_PER_WORD; in isSingleWord()
132 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; in clearUnusedBits()
228 : BitWidth(numBits), VAL(0) { in BitWidth() function
229 assert(BitWidth && "bitwidth too small"); in BitWidth()
267 : BitWidth(that.BitWidth), VAL(0) { in APInt()
268 assert(BitWidth && "bitwidth too small"); in APInt()
283 explicit APInt() : BitWidth(1) {} in APInt()
296 return (*this)[BitWidth - 1]; in isNegative()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h78 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 …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp54 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); in SimplifyDemandedInstructionBits() local
55 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits()
56 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits()
109 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits() local
112 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits()
113 KnownZero.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
114 KnownOne.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
141 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
142 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
234 DemandedMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits()
[all …]
/external/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.cpp91 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction() local
92 if (BitWidth == 1) in runFunction()
93 rv.IntVal = APInt(BitWidth, ((bool (*)())(intptr_t)FPtr)()); in runFunction()
94 else if (BitWidth <= 8) in runFunction()
95 rv.IntVal = APInt(BitWidth, ((char (*)())(intptr_t)FPtr)()); in runFunction()
96 else if (BitWidth <= 16) in runFunction()
97 rv.IntVal = APInt(BitWidth, ((short (*)())(intptr_t)FPtr)()); in runFunction()
98 else if (BitWidth <= 32) in runFunction()
99 rv.IntVal = APInt(BitWidth, ((int (*)())(intptr_t)FPtr)()); in runFunction()
100 else if (BitWidth <= 64) in runFunction()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.cpp91 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction() local
92 if (BitWidth == 1) in runFunction()
93 rv.IntVal = APInt(BitWidth, ((bool (*)())(intptr_t)FPtr)()); in runFunction()
94 else if (BitWidth <= 8) in runFunction()
95 rv.IntVal = APInt(BitWidth, ((char (*)())(intptr_t)FPtr)()); in runFunction()
96 else if (BitWidth <= 16) in runFunction()
97 rv.IntVal = APInt(BitWidth, ((short (*)())(intptr_t)FPtr)()); in runFunction()
98 else if (BitWidth <= 32) in runFunction()
99 rv.IntVal = APInt(BitWidth, ((int (*)())(intptr_t)FPtr)()); in runFunction()
100 else if (BitWidth <= 64) in runFunction()
[all …]
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp186 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction() local
187 if (BitWidth == 1) in runFunction()
188 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); in runFunction()
189 else if (BitWidth <= 8) in runFunction()
190 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); in runFunction()
191 else if (BitWidth <= 16) in runFunction()
192 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); in runFunction()
193 else if (BitWidth <= 32) in runFunction()
194 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); in runFunction()
195 else if (BitWidth <= 64) in runFunction()
[all …]
/external/clang/lib/Basic/
DTargetInfo.cpp186 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() argument
187 if (getCharWidth() == BitWidth) in getIntTypeByWidth()
189 if (getShortWidth() == BitWidth) in getIntTypeByWidth()
191 if (getIntWidth() == BitWidth) in getIntTypeByWidth()
193 if (getLongWidth() == BitWidth) in getIntTypeByWidth()
195 if (getLongLongWidth() == BitWidth) in getIntTypeByWidth()
200 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth() argument
202 if (getCharWidth() >= BitWidth) in getLeastIntTypeByWidth()
204 if (getShortWidth() >= BitWidth) in getLeastIntTypeByWidth()
206 if (getIntWidth() >= BitWidth) in getLeastIntTypeByWidth()
[all …]
/external/llvm/include/llvm/CodeGen/
DValueTypes.h55 static EVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT()
56 return MVT::getFloatingPointVT(BitWidth); in getFloatingPointVT()
61 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT()
62 MVT M = MVT::getIntegerVT(BitWidth); in getIntegerVT()
65 return getExtendedIntegerVT(Context, BitWidth); in getIntegerVT()
84 unsigned BitWidth = EltTy.getSizeInBits(); in changeVectorElementTypeToInteger() local
85 MVT IntTy = MVT::getIntegerVT(BitWidth); in changeVectorElementTypeToInteger()
283 unsigned BitWidth = getSizeInBits(); in getRoundIntegerType() local
284 if (BitWidth <= 8) in getRoundIntegerType()
286 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth)); in getRoundIntegerType()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DConstantRange.h48 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
179 ConstantRange zeroExtend(uint32_t BitWidth) const;
185 ConstantRange signExtend(uint32_t BitWidth) const;
191 ConstantRange truncate(uint32_t BitWidth) const;
195 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
199 ConstantRange sextOrTrunc(uint32_t BitWidth) const;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp145 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateShifted()
147 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && in canEvaluateShifted()
148 CI->getLimitedValue(BitWidth) < BitWidth) { in canEvaluateShifted()
607 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitShl() local
621 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl()
651 if (AmtSum < BitWidth) in visitShl()
658 MaskedValueIsZero(Op0, APInt::getHighBitsSet(BitWidth, ShAmt), 0, &I)) { in visitShl()
711 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitLShr() local
713 if (II && isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt && in visitLShr()
740 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
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()
319 unsigned BitWidth = getSizeInBits(); in getRoundIntegerType() local
320 if (BitWidth <= 8) in getRoundIntegerType()
322 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth)); in getRoundIntegerType()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DConstantRange.h52 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
231 uint32_t BitWidth) const;
237 ConstantRange zeroExtend(uint32_t BitWidth) const;
243 ConstantRange signExtend(uint32_t BitWidth) const;
249 ConstantRange truncate(uint32_t BitWidth) const;
253 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
257 ConstantRange sextOrTrunc(uint32_t BitWidth) const;

12345678910>>...14