Home
last modified time | relevance | path

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

123456

/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDBDCE.cpp89 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits() local
98 [&](unsigned BitWidth, const Value *V1, const Value *V2) { in determineLiveOperandBits() argument
100 KnownZero = APInt(BitWidth, 0); in determineLiveOperandBits()
101 KnownOne = APInt(BitWidth, 0); in determineLiveOperandBits()
106 KnownZero2 = APInt(BitWidth, 0); in determineLiveOperandBits()
107 KnownOne2 = APInt(BitWidth, 0); in determineLiveOperandBits()
130 ComputeKnownBits(BitWidth, I, nullptr); in determineLiveOperandBits()
131 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits()
132 std::min(BitWidth, KnownOne.countLeadingZeros()+1)); in determineLiveOperandBits()
140 ComputeKnownBits(BitWidth, I, nullptr); in determineLiveOperandBits()
[all …]
/NextBSD/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
HDAPSIntType.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 …]
/NextBSD/contrib/llvm/lib/Support/
HDAPInt.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()
167 ID.AddInteger(BitWidth); in Profile()
253 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator +=()
280 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator -=()
[all …]
HDStringRef.cpp434 unsigned BitWidth = Log2Radix * Str.size(); in getAsInteger() local
435 if (BitWidth < Result.getBitWidth()) in getAsInteger()
436 BitWidth = Result.getBitWidth(); // don't shrink the result in getAsInteger()
437 else if (BitWidth > Result.getBitWidth()) in getAsInteger()
438 Result = Result.zext(BitWidth); in getAsInteger()
443 RadixAP = APInt(BitWidth, Radix); in getAsInteger()
444 CharAP = APInt(BitWidth, 0); in getAsInteger()
/NextBSD/sys/contrib/dev/acpica/components/executer/
HDexregion.c75 UINT32 BitWidth, in AcpiExSystemMemorySpaceHandler() argument
96 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
121 BitWidth)); in AcpiExSystemMemorySpaceHandler()
217 BitWidth, Function, ACPI_FORMAT_UINT64 (Address))); in AcpiExSystemMemorySpaceHandler()
232 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
264 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
326 UINT32 BitWidth, in AcpiExSystemIoSpaceHandler() argument
340 BitWidth, Function, ACPI_FORMAT_UINT64 (Address))); in AcpiExSystemIoSpaceHandler()
349 &Value32, BitWidth); in AcpiExSystemIoSpaceHandler()
356 (UINT32) *Value, BitWidth); in AcpiExSystemIoSpaceHandler()
[all …]
/NextBSD/contrib/llvm/include/llvm/ADT/
HDAPInt.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()
301 explicit APInt() : BitWidth(1) {} in APInt()
[all …]
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineSimplifyDemanded.cpp56 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); in SimplifyDemandedInstructionBits() local
57 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits()
58 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits()
110 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits() local
113 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits()
114 KnownZero.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
115 KnownOne.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
142 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
143 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
235 DemandedMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits()
[all …]
HDInstCombineAddSub.cpp876 int BitWidth = Op0KnownZero.getBitWidth(); in checkRippleForAdd() local
878 Op0KnownZeroTemp.clearBit(BitWidth - 1); in checkRippleForAdd()
879 int Op0ZeroPosition = BitWidth - Op0KnownZeroTemp.countLeadingZeros() - 1; in checkRippleForAdd()
881 int Op1OnePosition = BitWidth - Op1MaybeOne.countLeadingZeros() - 1; in checkRippleForAdd()
916 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); in WillNotOverflowSignedAdd() local
917 APInt LHSKnownZero(BitWidth, 0); in WillNotOverflowSignedAdd()
918 APInt LHSKnownOne(BitWidth, 0); in WillNotOverflowSignedAdd()
921 APInt RHSKnownZero(BitWidth, 0); in WillNotOverflowSignedAdd()
922 APInt RHSKnownOne(BitWidth, 0); in WillNotOverflowSignedAdd()
927 if ((LHSKnownOne[BitWidth - 1] && RHSKnownZero[BitWidth - 1]) || in WillNotOverflowSignedAdd()
[all …]
HDInstCombineCasts.cpp369 uint32_t BitWidth = Ty->getScalarSizeInBits(); in CanEvaluateTruncated() local
370 if (BitWidth < OrigBitWidth) { in CanEvaluateTruncated()
371 APInt Mask = APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth); in CanEvaluateTruncated()
384 uint32_t BitWidth = Ty->getScalarSizeInBits(); in CanEvaluateTruncated() local
385 if (CI->getLimitedValue(BitWidth) < BitWidth) in CanEvaluateTruncated()
395 uint32_t BitWidth = Ty->getScalarSizeInBits(); in CanEvaluateTruncated() local
397 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth), 0, CxtI) && in CanEvaluateTruncated()
398 CI->getLimitedValue(BitWidth) < BitWidth) { in CanEvaluateTruncated()
558 uint32_t BitWidth = Op1C->getType()->getBitWidth(); in transformZExtICmp() local
559 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in transformZExtICmp()
[all …]
/NextBSD/contrib/llvm/lib/Analysis/
HDValueTracking.cpp75 if (unsigned BitWidth = Ty->getScalarSizeInBits()) in getBitWidth() local
76 return BitWidth; in getBitWidth()
219 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() local
222 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1); in computeKnownBitsAddSub()
231 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); in computeKnownBitsAddSub()
237 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() local
241 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in computeKnownBitsAddSub()
246 APInt CarryIn(BitWidth, 0); in computeKnownBitsAddSub()
279 KnownZero |= APInt::getSignBit(BitWidth); in computeKnownBitsAddSub()
283 KnownOne |= APInt::getSignBit(BitWidth); in computeKnownBitsAddSub()
[all …]
HDScalarEvolutionAliasAnalysis.cpp129 unsigned BitWidth = SE->getTypeSizeInBits(AS->getType()); in alias() local
130 APInt ASizeInt(BitWidth, LocA.Size); in alias()
131 APInt BSizeInt(BitWidth, LocB.Size); in alias()
/NextBSD/contrib/llvm/lib/ExecutionEngine/Orc/
HDOrcMCJITReplacement.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 …]
/NextBSD/contrib/llvm/tools/clang/lib/Basic/
HDTargetInfo.cpp182 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() argument
183 if (getCharWidth() == BitWidth) in getIntTypeByWidth()
185 if (getShortWidth() == BitWidth) in getIntTypeByWidth()
187 if (getIntWidth() == BitWidth) in getIntTypeByWidth()
189 if (getLongWidth() == BitWidth) in getIntTypeByWidth()
191 if (getLongLongWidth() == BitWidth) in getIntTypeByWidth()
196 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth() argument
198 if (getCharWidth() >= BitWidth) in getLeastIntTypeByWidth()
200 if (getShortWidth() >= BitWidth) in getLeastIntTypeByWidth()
202 if (getIntWidth() >= BitWidth) in getLeastIntTypeByWidth()
[all …]
/NextBSD/contrib/llvm/include/llvm/CodeGen/
HDValueTypes.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()
260 unsigned BitWidth = getSizeInBits(); in getRoundIntegerType() local
261 if (BitWidth <= 8) in getRoundIntegerType()
263 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth)); in getRoundIntegerType()
[all …]
/NextBSD/sys/contrib/dev/acpica/components/hardware/
HDhwregs.c124 if ((Reg->BitWidth != 8) && in AcpiHwValidateRegister()
125 (Reg->BitWidth != 16) && in AcpiHwValidateRegister()
126 (Reg->BitWidth != 32) && in AcpiHwValidateRegister()
127 (Reg->BitWidth != MaxBitWidth)) in AcpiHwValidateRegister()
130 "Unsupported register bit width: 0x%X", Reg->BitWidth)); in AcpiHwValidateRegister()
199 Address, &Value64, Reg->BitWidth); in AcpiHwRead()
206 Address, Value, Reg->BitWidth); in AcpiHwRead()
211 *Value, Reg->BitWidth, ACPI_FORMAT_UINT64 (Address), in AcpiHwRead()
260 Address, (UINT64) Value, Reg->BitWidth); in AcpiHwWrite()
265 Address, Value, Reg->BitWidth); in AcpiHwWrite()
[all …]
HDhwvalid.c55 UINT32 BitWidth);
132 UINT32 BitWidth) in AcpiHwValidateIoRequest() argument
145 if ((BitWidth != 8) && in AcpiHwValidateIoRequest()
146 (BitWidth != 16) && in AcpiHwValidateIoRequest()
147 (BitWidth != 32)) in AcpiHwValidateIoRequest()
150 "Bad BitWidth parameter: %8.8X", BitWidth)); in AcpiHwValidateIoRequest()
155 ByteWidth = ACPI_DIV_8 (BitWidth); in AcpiHwValidateIoRequest()
HDhwxface.c172 Address, ReturnValue, Reg->BitWidth); in ACPI_EXPORT_SYMBOL()
183 Width = Reg->BitWidth; in ACPI_EXPORT_SYMBOL()
196 if (Reg->BitWidth == 64) in ACPI_EXPORT_SYMBOL()
215 ACPI_FORMAT_UINT64 (*ReturnValue), Reg->BitWidth, in ACPI_EXPORT_SYMBOL()
266 Address, Value, Reg->BitWidth); in ACPI_EXPORT_SYMBOL()
274 Width = Reg->BitWidth; in ACPI_EXPORT_SYMBOL()
287 if (Reg->BitWidth == 64) in ACPI_EXPORT_SYMBOL()
300 ACPI_FORMAT_UINT64 (Value), Reg->BitWidth, in ACPI_EXPORT_SYMBOL()
/NextBSD/sys/contrib/dev/acpica/components/tables/
HDtbfadt.c218 UINT8 BitWidth; in AcpiTbInitGenericAddress() local
225 BitWidth = (UINT8) (ByteWidth * 8); in AcpiTbInitGenericAddress()
241 BitWidth = 255; in AcpiTbInitGenericAddress()
253 GenericAddress->BitWidth = BitWidth; in AcpiTbInitGenericAddress()
647 (Address64->BitWidth != ACPI_MUL_8 (Length))) in AcpiTbConvertFadt()
651 Name, ACPI_MUL_8 (Length), Address64->BitWidth)); in AcpiTbConvertFadt()
728 (FadtInfoTable[i].DefaultLength != Target64->BitWidth)) in AcpiTbSetupFadtRegisters()
732 FadtInfoTable[i].Name, Target64->BitWidth, in AcpiTbSetupFadtRegisters()
737 Target64->BitWidth = FadtInfoTable[i].DefaultLength; in AcpiTbSetupFadtRegisters()
748 ACPI_DIV_16 (AcpiGbl_FADT.XPm1aEventBlock.BitWidth); in AcpiTbSetupFadtRegisters()
/NextBSD/contrib/llvm/include/llvm/IR/
HDConstantRange.h52 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
193 ConstantRange zeroExtend(uint32_t BitWidth) const;
199 ConstantRange signExtend(uint32_t BitWidth) const;
205 ConstantRange truncate(uint32_t BitWidth) const;
209 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
213 ConstantRange sextOrTrunc(uint32_t BitWidth) const;
/NextBSD/contrib/llvm/lib/CodeGen/SelectionDAG/
HDFunctionLoweringInfo.cpp392 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { in GetLiveOutRegInfo() argument
400 if (BitWidth > LOI->KnownZero.getBitWidth()) { in GetLiveOutRegInfo()
402 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); in GetLiveOutRegInfo()
403 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); in GetLiveOutRegInfo()
425 unsigned BitWidth = IntVT.getSizeInBits(); in ComputePHILiveOutRegInfo() local
436 APInt Zero(BitWidth, 0); in ComputePHILiveOutRegInfo()
443 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo()
455 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); in ComputePHILiveOutRegInfo()
463 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
464 DestLOI.KnownOne.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
[all …]
HDTargetLowering.cpp326 unsigned BitWidth, in ShrinkDemandedOp() argument
346 unsigned DemandedSize = BitWidth - Demanded.countLeadingZeros(); in ShrinkDemandedOp()
350 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) { in ShrinkDemandedOp()
382 unsigned BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedBits() local
383 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth && in SimplifyDemandedBits()
390 KnownZero = KnownOne = APInt(BitWidth, 0); in SimplifyDemandedBits()
402 NewMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedBits()
459 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
493 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
518 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
[all …]
/NextBSD/usr.sbin/acpi/acpidb/
HDacpidb.c296 UINT32 BitWidth, in aml_vm_space_handler() argument
311 for (i = 0; (i * 8) < BitWidth; i++) { in aml_vm_space_handler()
322 space_names[SpaceID], BitWidth, in aml_vm_space_handler()
328 Address, BitWidth, Value, 0)); in aml_vm_space_handler()
337 space_names[SpaceID], BitWidth, in aml_vm_space_handler()
342 for (i = 0; (i * 8) < BitWidth; i++) { in aml_vm_space_handler()
361 UINT32 BitWidth, \
365 BitWidth, Value, aml_debug_prompt)); \
/NextBSD/sys/contrib/dev/acpica/include/
HDacinterp.h687 UINT32 BitWidth,
696 UINT32 BitWidth,
705 UINT32 BitWidth,
714 UINT32 BitWidth,
723 UINT32 BitWidth,
732 UINT32 BitWidth,
741 UINT32 BitWidth,
751 UINT32 BitWidth,
/NextBSD/contrib/llvm/lib/ExecutionEngine/MCJIT/
HDMCJIT.cpp537 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction() local
538 if (BitWidth == 1) in runFunction()
539 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); in runFunction()
540 else if (BitWidth <= 8) in runFunction()
541 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); in runFunction()
542 else if (BitWidth <= 16) in runFunction()
543 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); in runFunction()
544 else if (BitWidth <= 32) in runFunction()
545 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); in runFunction()
546 else if (BitWidth <= 64) in runFunction()
[all …]
/NextBSD/contrib/llvm/lib/Transforms/Utils/
HDIntegerDivision.cpp36 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); in generateSignedRemainderCode() local
39 if (BitWidth == 64) { in generateSignedRemainderCode()
42 assert(BitWidth == 32 && "Unexpected bit width"); in generateSignedRemainderCode()
108 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); in generateSignedDivisionCode() local
111 if (BitWidth == 64) { in generateSignedDivisionCode()
114 assert(BitWidth == 32 && "Unexpected bit width"); in generateSignedDivisionCode()
159 unsigned BitWidth = DivTy->getBitWidth(); in generateUnsignedDivisionCode() local
166 if (BitWidth == 64) { in generateUnsignedDivisionCode()
172 assert(BitWidth == 32 && "Unexpected bit width"); in generateUnsignedDivisionCode()

123456