Home
last modified time | relevance | path

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

123456789

/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/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/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-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/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 …]
DInstCombineCalls.cpp359 uint32_t BitWidth = IT->getBitWidth(); in visitCallInst() local
360 APInt KnownZero(BitWidth, 0); in visitCallInst()
361 APInt KnownOne(BitWidth, 0); in visitCallInst()
362 ComputeMaskedBits(II->getArgOperand(0), APInt::getAllOnesValue(BitWidth), in visitCallInst()
365 APInt Mask(APInt::getLowBitsSet(BitWidth, TrailingZeros)); in visitCallInst()
368 APInt(BitWidth, TrailingZeros))); in visitCallInst()
378 uint32_t BitWidth = IT->getBitWidth(); in visitCallInst() local
379 APInt KnownZero(BitWidth, 0); in visitCallInst()
380 APInt KnownOne(BitWidth, 0); in visitCallInst()
381 ComputeMaskedBits(II->getArgOperand(0), APInt::getAllOnesValue(BitWidth), in visitCallInst()
[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/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-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/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/include/llvm/CodeGen/
DValueTypes.h300 static MVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT() argument
301 switch (BitWidth) { in getFloatingPointVT()
315 static MVT getIntegerVT(unsigned BitWidth) { in getIntegerVT() argument
316 switch (BitWidth) { in getIntegerVT()
405 static EVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT()
406 return MVT::getFloatingPointVT(BitWidth); in getFloatingPointVT()
411 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT()
412 MVT M = MVT::getIntegerVT(BitWidth); in getIntegerVT()
415 return getExtendedIntegerVT(Context, BitWidth); in getIntegerVT()
448 unsigned BitWidth = EltTy.getSizeInBits(); in changeVectorElementTypeToInteger() local
[all …]
/external/llvm/include/llvm/IR/
DConstantRange.h52 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
230 ConstantRange zeroExtend(uint32_t BitWidth) const;
236 ConstantRange signExtend(uint32_t BitWidth) const;
242 ConstantRange truncate(uint32_t BitWidth) const;
246 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
250 ConstantRange sextOrTrunc(uint32_t BitWidth) const;
/external/llvm/lib/Transforms/IPO/
DWholeProgramDevirt.cpp135 unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) { in setBeforeReturnValues() argument
136 if (BitWidth == 1) in setBeforeReturnValues()
139 OffsetByte = -((AllocBefore + 7) / 8 + (BitWidth + 7) / 8); in setBeforeReturnValues()
143 if (BitWidth == 1) in setBeforeReturnValues()
146 Target.setBeforeBytes(AllocBefore, (BitWidth + 7) / 8); in setBeforeReturnValues()
152 unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) { in setAfterReturnValues() argument
153 if (BitWidth == 1) in setAfterReturnValues()
160 if (BitWidth == 1) in setAfterReturnValues()
163 Target.setAfterBytes(AllocAfter, (BitWidth + 7) / 8); in setAfterReturnValues()
281 bool tryUniqueRetValOpt(unsigned BitWidth,
[all …]
/external/swiftshader/third_party/LLVM/utils/TableGen/
DFixedLenDecoderEmitter.cpp239 unsigned BitWidth; member in FilterChooser
249 BestIndex(FC.BestIndex), BitWidth(FC.BitWidth), in FilterChooser()
258 Parent(NULL), BestIndex(-1), BitWidth(BW), Emitter(E) { in FilterChooser()
259 for (unsigned i = 0; i < BitWidth; ++i) in FilterChooser()
272 Parent(&parent), BestIndex(-1), BitWidth(parent.BitWidth), in FilterChooser()
288 for (unsigned i = 0; i < BitWidth; ++i) in insnWithID()
389 assert(StartBit + NumBits - 1 < Owner->BitWidth); in Filter()
506 o.indent(Indentation) << "switch (fieldFromInstruction" << Owner->BitWidth in emit()
576 "static MCDisassembler::DecodeStatus decode" << Namespace << "Instruction" << BitWidth in emitTop()
577 << "(MCInst &MI, uint" << BitWidth << "_t insn, uint64_t Address, " in emitTop()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp243 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { in GetLiveOutRegInfo() argument
251 if (BitWidth > LOI->KnownZero.getBitWidth()) { in GetLiveOutRegInfo()
253 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); in GetLiveOutRegInfo()
254 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); in GetLiveOutRegInfo()
276 unsigned BitWidth = IntVT.getSizeInBits(); in ComputePHILiveOutRegInfo() local
287 APInt Zero(BitWidth, 0); in ComputePHILiveOutRegInfo()
294 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo()
306 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); in ComputePHILiveOutRegInfo()
314 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
315 DestLOI.KnownOne.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp402 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { in GetLiveOutRegInfo() argument
410 if (BitWidth > LOI->KnownZero.getBitWidth()) { in GetLiveOutRegInfo()
412 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); in GetLiveOutRegInfo()
413 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); in GetLiveOutRegInfo()
435 unsigned BitWidth = IntVT.getSizeInBits(); in ComputePHILiveOutRegInfo() local
446 APInt Zero(BitWidth, 0); in ComputePHILiveOutRegInfo()
453 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo()
465 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); in ComputePHILiveOutRegInfo()
473 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
474 DestLOI.KnownOne.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
[all …]
/external/spirv-llvm/lib/SPIRV/libSPIRV/
DSPIRVType.h134 :SPIRVType(M, 4, OC , TheId), BitWidth(TheBitWidth), in SPIRVTypeInt()
139 SPIRVTypeInt():SPIRVType(OC), BitWidth(0), IsSigned(false){} in SPIRVTypeInt()
141 unsigned getBitWidth() const { return BitWidth;} in getBitWidth()
153 _SPIRV_DEF_ENCDEC3(Id, BitWidth, IsSigned) in _SPIRV_DEF_ENCDEC3() argument
156 assert(BitWidth > 1 && BitWidth <= 64 && "Invalid bit width"); in _SPIRV_DEF_ENCDEC3()
159 unsigned BitWidth; // Bit width
168 :SPIRVType(M, 3, OC, TheId), BitWidth(TheBitWidth){} in SPIRVTypeFloat()
170 SPIRVTypeFloat():SPIRVType(OC), BitWidth(0){} in SPIRVTypeFloat()
172 unsigned getBitWidth() const { return BitWidth;} in getBitWidth()
185 _SPIRV_DEF_ENCDEC2(Id, BitWidth) in _SPIRV_DEF_ENCDEC2() argument
[all …]

123456789