Home
last modified time | relevance | path

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

1234567

/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DDemandedBits.cpp90 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits() local
105 Known = KnownBits(BitWidth); in determineLiveOperandBits()
109 Known2 = KnownBits(BitWidth); in determineLiveOperandBits()
157 if (isPowerOf2_32(BitWidth)) in determineLiveOperandBits()
158 AB = BitWidth - 1; in determineLiveOperandBits()
164 ShiftAmt = BitWidth - ShiftAmt; in determineLiveOperandBits()
265 AB = AOut.zext(BitWidth); in determineLiveOperandBits()
268 AB = AOut.trunc(BitWidth); in determineLiveOperandBits()
271 AB = AOut.trunc(BitWidth); in determineLiveOperandBits()
388 AB = APInt(BitWidth, 0); in performAnalysis()
[all …]
H A DValueTracking.cpp91 return BitWidth; in getBitWidth()
317 KnownBits LHSKnown(BitWidth); in computeKnownBitsAddSub()
360 BitWidth) - BitWidth; in computeKnownBitsMul()
729 C < BitWidth) { in computeKnownBitsFromAssume()
743 C < BitWidth) { in computeKnownBitsFromAssume()
758 C < BitWidth) { in computeKnownBitsFromAssume()
770 C < BitWidth) { in computeKnownBitsFromAssume()
1043 LeadZ = std::min(BitWidth, LeadZ + BitWidth - RHSMaxLeadingZeros - 1); in computeKnownBitsFromOperator()
1610 (void)BitWidth; in computeKnownBits()
2174 KnownBits Known(BitWidth); in isKnownNonZero()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A 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()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAPSIntType.h21 uint32_t BitWidth; variable
26 : BitWidth(Width), IsUnsigned(Unsigned) {} 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;
101 return std::tie(BitWidth, IsUnsigned) <
[all …]
H A DSMTSolver.h38 SMTSortRef getFloatSort(unsigned BitWidth) { in getFloatSort() argument
39 switch (BitWidth) { in getFloatSort()
57 virtual SMTSortRef getBitvectorSort(const unsigned BitWidth) = 0;
254 virtual llvm::APSInt getBitvector(const SMTExprRef &Exp, unsigned BitWidth,
267 virtual SMTExprRef mkBitvector(const llvm::APSInt Int, unsigned BitWidth) = 0;
/freebsd-12.1/contrib/llvm/lib/Support/
H A DAPInt.cpp195 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator +=()
215 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator -=()
232 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator *()
257 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator *=()
619 assert(BitWidth >= 16 && BitWidth % 16 == 0 && "Cannot byteswap!"); in byteSwap()
637 if (Result.BitWidth != BitWidth) { in byteSwap()
638 Result.lshrInPlace(Result.BitWidth - BitWidth); in byteSwap()
639 Result.BitWidth = BitWidth; in byteSwap()
1111 APInt t[2] = { APInt(BitWidth, 0), APInt(BitWidth, 1) }; in multiplicativeInverse()
1708 unsigned BitWidth = LHS.BitWidth; in udivrem() local
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A DAPInt.h322 APInt(const APInt &that) : BitWidth(that.BitWidth) { in APInt()
330 APInt(APInt &&that) : BitWidth(that.BitWidth) { in APInt()
332 that.BitWidth = 0; in APInt()
739 BitWidth = RHS.BitWidth;
762 BitWidth = that.BitWidth;
793 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same");
823 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same");
853 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same");
1322 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in intersects()
1330 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in isSubsetOf()
[all …]
/freebsd-12.1/sys/contrib/dev/acpica/components/executer/
H A Dexregion.c183 UINT32 BitWidth, in AcpiExSystemMemorySpaceHandler() argument
204 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
229 BitWidth)); in AcpiExSystemMemorySpaceHandler()
340 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
372 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
434 UINT32 BitWidth, in AcpiExSystemIoSpaceHandler() argument
499 UINT32 BitWidth, in AcpiExPciConfigSpaceHandler() argument
580 UINT32 BitWidth, in AcpiExCmosSpaceHandler() argument
617 UINT32 BitWidth, in AcpiExPciBarSpaceHandler() argument
671 ACPI_DIV_8 (BitWidth)); in AcpiExDataTableSpaceHandler()
[all …]
/freebsd-12.1/sys/contrib/dev/acpica/components/hardware/
H A Dhwregs.c292 UINT8 BitWidth; in AcpiHwValidateRegister() local
336 BitWidth = ACPI_ROUND_UP (Reg->BitOffset + Reg->BitWidth, AccessWidth); in AcpiHwValidateRegister()
337 if (MaxBitWidth < BitWidth) in AcpiHwValidateRegister()
341 MaxBitWidth, BitWidth)); in AcpiHwValidateRegister()
373 UINT32 BitWidth; in AcpiHwRead() local
398 BitWidth = Reg->BitOffset + Reg->BitWidth; in AcpiHwRead()
406 while (BitWidth) in AcpiHwRead()
437 BitWidth -= BitWidth > AccessWidth ? AccessWidth : BitWidth; in AcpiHwRead()
492 BitWidth = Reg->BitOffset + Reg->BitWidth; in AcpiHwWrite()
500 while (BitWidth) in AcpiHwWrite()
[all …]
H A Dhwvalid.c163 UINT32 BitWidth);
240 UINT32 BitWidth) in AcpiHwValidateIoRequest() argument
253 if ((BitWidth != 8) && in AcpiHwValidateIoRequest()
254 (BitWidth != 16) && in AcpiHwValidateIoRequest()
255 (BitWidth != 32)) in AcpiHwValidateIoRequest()
258 "Bad BitWidth parameter: %8.8X", BitWidth)); in AcpiHwValidateIoRequest()
263 ByteWidth = ACPI_DIV_8 (BitWidth); in AcpiHwValidateIoRequest()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/Orc/
H A 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 …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/
H A DTargetInfo.cpp232 if (getCharWidth() == BitWidth) in getIntTypeByWidth()
234 if (getShortWidth() == BitWidth) in getIntTypeByWidth()
236 if (getIntWidth() == BitWidth) in getIntTypeByWidth()
238 if (getLongWidth() == BitWidth) in getIntTypeByWidth()
247 if (getCharWidth() >= BitWidth) in getLeastIntTypeByWidth()
249 if (getShortWidth() >= BitWidth) in getLeastIntTypeByWidth()
251 if (getIntWidth() >= BitWidth) in getLeastIntTypeByWidth()
253 if (getLongWidth() >= BitWidth) in getLeastIntTypeByWidth()
261 if (getFloatWidth() == BitWidth) in getRealTypeByWidth()
263 if (getDoubleWidth() == BitWidth) in getRealTypeByWidth()
[all …]
/freebsd-12.1/sys/contrib/dev/acpica/components/tables/
H A Dtbfadt.c326 UINT8 BitWidth; in AcpiTbInitGenericAddress() local
333 BitWidth = (UINT8) (ByteWidth * 8); in AcpiTbInitGenericAddress()
349 BitWidth = 255; in AcpiTbInitGenericAddress()
361 GenericAddress->BitWidth = BitWidth; in AcpiTbInitGenericAddress()
746 (Address64->BitWidth != ACPI_MUL_8 (Length))) in AcpiTbConvertFadt()
750 Name, ACPI_MUL_8 (Length), Address64->BitWidth)); in AcpiTbConvertFadt()
848 (FadtInfoTable[i].DefaultLength != Target64->BitWidth)) in AcpiTbSetupFadtRegisters()
852 FadtInfoTable[i].Name, Target64->BitWidth, in AcpiTbSetupFadtRegisters()
857 Target64->BitWidth = FadtInfoTable[i].DefaultLength; in AcpiTbSetupFadtRegisters()
868 ACPI_DIV_16 (AcpiGbl_FADT.XPm1aEventBlock.BitWidth); in AcpiTbSetupFadtRegisters()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp148 CI->getLimitedValue(BitWidth) < BitWidth) { in canEvaluateShifted()
621 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl()
651 if (AmtSum < BitWidth) in visitShl()
713 if (II && isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt && in visitLShr()
740 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr()
754 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr()
759 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr()
776 if (ShAmt == BitWidth - 1) { in visitLShr()
800 if (AmtSum < BitWidth) in visitLShr()
854 ShOp1->ult(BitWidth)) { in visitAShr()
[all …]
H A DInstCombineSimplifyDemanded.cpp67 KnownBits Known(BitWidth); in SimplifyDemandedInstructionBits()
153 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits()
371 if (BitWidth > SrcBitWidth) in SimplifyDemandedUseBits()
434 APInt DemandedFromOps(APInt::getLowBitsSet(BitWidth, BitWidth-NLZ)); in SimplifyDemandedUseBits()
562 BitWidth, std::min(SignBits + ShiftAmt - 1, BitWidth))); in SimplifyDemandedUseBits()
592 APInt::getHighBitsSet(BitWidth, BitWidth - RHSTrailingZeros); in SimplifyDemandedUseBits()
647 KnownBits Known2(BitWidth); in SimplifyDemandedUseBits()
673 if (BitWidth-NLZ-NTZ == 8) { in SimplifyDemandedUseBits()
772 KnownBits LHSKnown(BitWidth); in SimplifyMultipleUseDemandedBits()
773 KnownBits RHSKnown(BitWidth); in SimplifyMultipleUseDemandedBits()
[all …]
/freebsd-12.1/contrib/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()
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 …]
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A 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;
/freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/Targets/
H A DAVR.h156 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument
158 return BitWidth == 16 ? (IsSigned ? SignedInt : UnsignedInt) in getIntTypeByWidth()
159 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth()
162 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument
164 return BitWidth == 16 in getLeastIntTypeByWidth()
166 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
H A DWebAssembly.h102 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument
104 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getIntTypeByWidth()
105 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth()
108 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument
110 return BitWidth == 64 in getLeastIntTypeByWidth()
112 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstantRange.cpp43 : Lower(Full ? APInt::getMaxValue(BitWidth) : APInt::getMinValue(BitWidth)), in ConstantRange()
201 unsigned BitWidth = Other.getBitWidth(); in makeGuaranteedNoWrapRegion() local
202 ConstantRange Result(BitWidth); in makeGuaranteedNoWrapRegion()
207 return ConstantRange(BitWidth, false); in makeGuaranteedNoWrapRegion()
213 return ConstantRange(BitWidth); in makeGuaranteedNoWrapRegion()
238 return ConstantRange(BitWidth); in makeGuaranteedNoWrapRegion()
272 return ConstantRange(BitWidth, true); in makeGuaranteedNoWrapRegion()
298 Lower = Lower.zextOrSelf(BitWidth); in makeGuaranteedNoWrapRegion()
299 Upper = Upper.zextOrSelf(BitWidth); in makeGuaranteedNoWrapRegion()
301 Lower = Lower.sextOrSelf(BitWidth); in makeGuaranteedNoWrapRegion()
[all …]
/freebsd-12.1/usr.sbin/acpi/acpidb/
H A Dacpidb.c299 UINT32 BitWidth, in aml_vm_space_handler() argument
314 for (i = 0; (i * 8) < BitWidth; i++) { in aml_vm_space_handler()
325 space_names[SpaceID], BitWidth, in aml_vm_space_handler()
331 Address, BitWidth, Value, 0)); in aml_vm_space_handler()
340 space_names[SpaceID], BitWidth, in aml_vm_space_handler()
345 for (i = 0; (i * 8) < BitWidth; i++) { in aml_vm_space_handler()
364 UINT32 BitWidth, \
368 BitWidth, Value, aml_debug_prompt)); \
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp401 if (BitWidth > LOI->Known.getBitWidth()) { in GetLiveOutRegInfo()
403 LOI->Known = LOI->Known.zextOrTrunc(BitWidth); in GetLiveOutRegInfo()
425 unsigned BitWidth = IntVT.getSizeInBits(); in ComputePHILiveOutRegInfo() local
436 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
441 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo()
453 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); in ComputePHILiveOutRegInfo()
461 assert(DestLOI.Known.Zero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
462 DestLOI.Known.One.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
469 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
474 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo()
[all …]
/freebsd-12.1/sys/contrib/dev/acpica/include/
H A Dacinterp.h823 UINT32 BitWidth,
832 UINT32 BitWidth,
841 UINT32 BitWidth,
850 UINT32 BitWidth,
859 UINT32 BitWidth,
868 UINT32 BitWidth,
877 UINT32 BitWidth,
887 UINT32 BitWidth,
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp572 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction() local
573 if (BitWidth == 1) in runFunction()
574 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); in runFunction()
575 else if (BitWidth <= 8) in runFunction()
576 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); in runFunction()
577 else if (BitWidth <= 16) in runFunction()
578 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); in runFunction()
579 else if (BitWidth <= 32) in runFunction()
580 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); in runFunction()
581 else if (BitWidth <= 64) in runFunction()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DIntegerDivision.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()

1234567