| /freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | APSIntType.h | 20 uint32_t BitWidth; variable 25 : BitWidth(Width), IsUnsigned(Unsigned) {} in APSIntType() 30 uint32_t getBitWidth() const { return BitWidth; } in getBitWidth() 40 Value = Value.extOrTrunc(BitWidth); in apply() 56 return llvm::APSInt(BitWidth, IsUnsigned); in getZeroValue() 61 return llvm::APSInt::getMinValue(BitWidth, IsUnsigned); in getMinValue() 66 return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned); in getMaxValue() 70 return (llvm::APSInt(BitWidth, IsUnsigned) = RawValue); in getValue() 92 return BitWidth == Other.BitWidth && IsUnsigned == Other.IsUnsigned; 100 return std::tie(BitWidth, IsUnsigned) < [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | DemandedBits.cpp | 58 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits() local 73 Known = KnownBits(BitWidth); in determineLiveOperandBits() 77 Known2 = KnownBits(BitWidth); in determineLiveOperandBits() 125 if (isPowerOf2_32(BitWidth)) in determineLiveOperandBits() 126 AB = BitWidth - 1; in determineLiveOperandBits() 256 AB = AOut.zext(BitWidth); in determineLiveOperandBits() 259 AB = AOut.trunc(BitWidth); in determineLiveOperandBits() 262 AB = AOut.trunc(BitWidth); in determineLiveOperandBits() 369 AB = APInt(BitWidth, 0); in performAnalysis() 420 return APInt::getAllOnes(BitWidth); in getDemandedBits() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 37 KnownBits(unsigned BitWidth) : Zero(BitWidth, 0), One(BitWidth, 0) {} in KnownBits() 153 return KnownBits(Zero.trunc(BitWidth), One.trunc(BitWidth)); in trunc() 159 return KnownBits(Zero.zext(BitWidth), One.zext(BitWidth)); in anyext() 172 return KnownBits(Zero.sext(BitWidth), One.sext(BitWidth)); in sext() 178 if (BitWidth > getBitWidth()) in anyextOrTrunc() 179 return anyext(BitWidth); in anyextOrTrunc() 181 return trunc(BitWidth); in anyextOrTrunc() 189 return zext(BitWidth); in zextOrTrunc() 191 return trunc(BitWidth); in zextOrTrunc() 199 return sext(BitWidth); in sextOrTrunc() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 154 APInt(const APInt &that) : BitWidth(that.BitWidth) { in APInt() 162 APInt(APInt &&that) : BitWidth(that.BitWidth) { in APInt() 164 that.BitWidth = 0; in APInt() 601 BitWidth = RHS.BitWidth; 624 BitWidth = that.BitWidth; 653 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); 683 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); 712 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); 1365 return setBits(BitWidth - hiBits, BitWidth); in setHighBits() 1391 APInt Keep = getHighBitsSet(BitWidth, BitWidth - loBits); in clearLowBits() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 105 if (SrcBitWidth == BitWidth) in sextInReg() 180 if (isPowerOf2_32(BitWidth)) in getMaxShiftAmount() 211 KnownBits Known(BitWidth); in shl() 284 KnownBits Known(BitWidth); in lshr() 328 KnownBits Known(BitWidth); in ashr() 495 return K.Zero[BitWidth - 1] || K.One[BitWidth - 1]; in computeForSatAddSub() 730 KnownBits Res(BitWidth); in mul() 751 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhs() 760 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhu() 807 KnownBits Known(BitWidth); in sdiv() [all …]
|
| H A D | APInt.cpp | 198 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator +=() 218 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator -=() 235 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator *() 591 Arg.BitWidth, in hash_value() 716 assert(BitWidth >= 16 && BitWidth % 8 == 0 && "Cannot byteswap!"); in byteSwap() 730 if (Result.BitWidth != BitWidth) { in byteSwap() 731 Result.lshrInPlace(Result.BitWidth - BitWidth); in byteSwap() 732 Result.BitWidth = BitWidth; in byteSwap() 1262 APInt t[2] = { APInt(BitWidth, 0), APInt(BitWidth, 1) }; in multiplicativeInverse() 1767 unsigned BitWidth = LHS.BitWidth; in udivrem() local [all …]
|
| /freebsd-14.2/sys/contrib/dev/acpica/components/executer/ |
| H A D | exregion.c | 183 UINT32 BitWidth, in AcpiExSystemMemorySpaceHandler() argument 205 switch (BitWidth) in AcpiExSystemMemorySpaceHandler() 230 BitWidth)); in AcpiExSystemMemorySpaceHandler() 376 switch (BitWidth) in AcpiExSystemMemorySpaceHandler() 408 switch (BitWidth) in AcpiExSystemMemorySpaceHandler() 470 UINT32 BitWidth, in AcpiExSystemIoSpaceHandler() argument 493 &Value32, BitWidth); in AcpiExSystemIoSpaceHandler() 535 UINT32 BitWidth, in AcpiExPciConfigSpaceHandler() argument 616 UINT32 BitWidth, in AcpiExCmosSpaceHandler() argument 653 UINT32 BitWidth, in AcpiExPciBarSpaceHandler() argument [all …]
|
| /freebsd-14.2/sys/contrib/dev/acpica/components/hardware/ |
| H A D | hwregs.c | 292 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 D | hwvalid.c | 163 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-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandLargeFpConvert.cpp | 96 unsigned BitWidth = FPToI->getType()->getIntegerBitWidth(); in expandFPToI() local 123 Builder.getIntN(BitWidth, 1), Builder.getIntN(BitWidth, FPMantissaWidth)); in expandFPToI() 125 Builder.CreateSub(ImplicitBit, Builder.getIntN(BitWidth, 1)); in expandFPToI() 168 And, Builder.getIntN(BitWidth, (1 << ExponentWidth) - 1)); in expandFPToI() 219 Retval0->addIncoming(Builder.getIntN(BitWidth, 0), Entry); in expandFPToI() 313 unsigned BitWidth = IntVal->getType()->getIntegerBitWidth(); in expandIToFP() local 328 Builder.CreateShl(Builder.getIntN(BitWidth, 1), in expandIToFP() 367 Builder.CreateAShr(IntVal, Builder.getIntN(BitWidth, BitWidth - 1)); in expandIToFP() 372 int BitWidthNew = FloatWidth == 128 ? BitWidth : 32; in expandIToFP() 427 Shr18 = Builder.CreateAShr(Inc, Builder.getIntN(BitWidth, 2)); in expandIToFP() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | APNumericStorage.h | 31 unsigned BitWidth; variable 33 bool hasAllocation() const { return llvm::APInt::getNumWords(BitWidth) > 1; } in hasAllocation() 39 APNumericStorage() : VAL(0), BitWidth(0) {} in APNumericStorage() 42 unsigned NumWords = llvm::APInt::getNumWords(BitWidth); in getIntValue() 44 return llvm::APInt(BitWidth, NumWords, pVal); in getIntValue() 46 return llvm::APInt(BitWidth, VAL); in getIntValue()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SIRegisterInfo.cpp | 2604 if (BitWidth == 64) in getAnyVGPRClassForBitWidth() 2606 if (BitWidth == 96) in getAnyVGPRClassForBitWidth() 2636 if (BitWidth == 64) in getAlignedVGPRClassForBitWidth() 2638 if (BitWidth == 96) in getAlignedVGPRClassForBitWidth() 2668 if (BitWidth == 1) in getVGPRClassForBitWidth() 2670 if (BitWidth == 16) in getVGPRClassForBitWidth() 2672 if (BitWidth == 32) in getVGPRClassForBitWidth() 2680 if (BitWidth == 64) in getAnyAGPRClassForBitWidth() 2682 if (BitWidth == 96) in getAnyAGPRClassForBitWidth() 2712 if (BitWidth == 64) in getAlignedAGPRClassForBitWidth() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | GISelKnownBits.cpp | 131 KnownBits Mask(BitWidth); in extractBits() 133 BitWidth, WidthKnown.getMaxValue().getLimitedValue(BitWidth)); in extractBits() 135 BitWidth, WidthKnown.getMinValue().getLimitedValue(BitWidth)); in extractBits() 249 Known = KnownBits(BitWidth); in computeKnownBitsImpl() 381 BitWidth > 1) in computeKnownBitsImpl() 390 Known = Known.sext(BitWidth); in computeKnownBitsImpl() 403 Known = Known.anyext(BitWidth); in computeKnownBitsImpl() 473 if (BitWidth > SrcBitWidth) in computeKnownBitsImpl() 516 Known = SrcOpKnown.extractBits(BitWidth, BitWidth * DstIdx); in computeKnownBitsImpl() 565 KnownBits ExtKnown = KnownBits::makeConstant(APInt(BitWidth, BitWidth)); in computeKnownBitsImpl() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 62 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() 351 uint32_t BitWidth) const; 357 ConstantRange zeroExtend(uint32_t BitWidth) const; 363 ConstantRange signExtend(uint32_t BitWidth) const; 369 ConstantRange truncate(uint32_t BitWidth) const; 373 ConstantRange zextOrTrunc(uint32_t BitWidth) const; [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | PatternInit.cpp | 37 unsigned BitWidth = in initializationPatternFor() local 39 if (BitWidth <= 64) in initializationPatternFor() 42 Ty, llvm::APInt::getSplat(BitWidth, llvm::APInt(64, IntValue))); in initializationPatternFor() 55 unsigned BitWidth = llvm::APFloat::semanticsSizeInBits( in initializationPatternFor() local 58 if (BitWidth >= 64) in initializationPatternFor() 59 Payload = llvm::APInt::getSplat(BitWidth, Payload); in initializationPatternFor()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 1036 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl() 1080 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl() 1091 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl() 1112 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl() 1164 APInt Bits = APInt::getHighBitsSet(BitWidth, BitWidth - Op1Val); in visitShl() 1260 if (II && isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmtC && in visitLShr() 1288 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr() 1304 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr() 1310 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr() 1325 APInt Bits = APInt::getLowBitsSet(BitWidth, BitWidth - Op1Val); in visitLShr() [all …]
|
| H A D | InstCombineSimplifyDemanded.cpp | 61 return BitWidth; in getBitWidth() 163 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits() 191 DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits() 533 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits() 575 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits() 789 BitWidth, std::min(SignBits + ShiftAmt - 1, BitWidth))); in SimplifyDemandedUseBits() 821 APInt::getHighBitsSet(BitWidth, BitWidth - RHSTrailingZeros); in SimplifyDemandedUseBits() 1170 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits() 1189 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits() 1224 BitWidth, BitWidth - ShiftRC->getZExtValue()))) { in SimplifyMultipleUseDemandedBits() [all …]
|
| /freebsd-14.2/sys/contrib/dev/acpica/components/tables/ |
| H A D | tbfadt.c | 326 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-14.2/contrib/llvm-project/clang/lib/Basic/Targets/ |
| H A D | AVR.h | 159 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 161 return BitWidth == 16 ? (IsSigned ? SignedInt : UnsignedInt) in getIntTypeByWidth() 162 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 165 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 167 return BitWidth == 16 in getLeastIntTypeByWidth() 169 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/InterfaceStub/ |
| H A D | IFSHandler.cpp | 108 IO.mapOptional("BitWidth", Target.BitWidth); in mapping() 224 !CopyStub->Target.BitWidth)) in writeIFSToOutputStream() 253 if (Stub.Target.BitWidth && *Stub.Target.BitWidth != *OverrideBitWidth) { in overrideIFSTarget() 257 Stub.Target.BitWidth = *OverrideBitWidth; in overrideIFSTarget() 272 if (Stub.Target.Arch || Stub.Target.BitWidth || Stub.Target.Endianness || in validateIFSTarget() 281 Stub.Target.BitWidth = TargetFromTriple.BitWidth; in validateIFSTarget() 286 if (!Stub.Target.Arch || !Stub.Target.BitWidth || !Stub.Target.Endianness) { in validateIFSTarget() 292 if (!Stub.Target.BitWidth) { in validateIFSTarget() 323 RetTarget.BitWidth = in parseTriple() 338 Stub.Target.BitWidth.reset(); in stripIFSTarget() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | IntegralAP.h | 59 IntegralAP(T Value, unsigned BitWidth) in IntegralAP() argument 60 : V(APInt(BitWidth, static_cast<uint64_t>(Value), Signed)) {} in IntegralAP() 114 static IntegralAP from(Integral<Bits, InputSigned> I, unsigned BitWidth) { in from() argument 115 APInt Copy = APInt(BitWidth, static_cast<uint64_t>(I), InputSigned); in from() 120 static IntegralAP zero(int32_t BitWidth) { in zero() argument 121 APInt V = APInt(BitWidth, 0LL, Signed); in zero() 156 IntegralAP truncate(unsigned BitWidth) const { in truncate() argument 157 return IntegralAP(V.trunc(BitWidth)); in truncate() 269 unsigned BitWidth, IntegralAP *R) { in CheckAddSubMulUB() argument 277 APSInt Value = Op<APSInt>{}(LHS.extend(BitWidth), RHS.extend(BitWidth)); in CheckAddSubMulUB() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 287 if (getCharWidth() == BitWidth) in getIntTypeByWidth() 289 if (getShortWidth() == BitWidth) in getIntTypeByWidth() 291 if (getIntWidth() == BitWidth) in getIntTypeByWidth() 293 if (getLongWidth() == BitWidth) in getIntTypeByWidth() 302 if (getCharWidth() >= BitWidth) in getLeastIntTypeByWidth() 304 if (getShortWidth() >= BitWidth) in getLeastIntTypeByWidth() 306 if (getIntWidth() >= BitWidth) in getLeastIntTypeByWidth() 308 if (getLongWidth() >= BitWidth) in getLeastIntTypeByWidth() 317 if (getHalfWidth() == BitWidth) in getRealTypeByWidth() 319 if (getFloatWidth() == BitWidth) in getRealTypeByWidth() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 45 : Lower(Full ? APInt::getMaxValue(BitWidth) : APInt::getMinValue(BitWidth)), in ConstantRange() 249 unsigned BitWidth = V.getBitWidth(); in makeExactMulNUWRegion() local 340 ConstantRange(APInt(BitWidth, 0), APInt(BitWidth, (BitWidth - 1) + 1))); in makeGuaranteedNoWrapRegion() 344 return getFull(BitWidth); in makeGuaranteedNoWrapRegion() 1759 APInt(BitWidth, BitWidth + 1)); in getUnsignedCountTrailingZerosRange() 1766 APInt::getZero(BitWidth), in getUnsignedCountTrailingZerosRange() 1767 APInt(BitWidth, in getUnsignedCountTrailingZerosRange() 1805 return getNonEmpty(Zero, APInt(BitWidth, BitWidth + 1)); in cttz() 1840 return ConstantRange(APInt(BitWidth, MinBits), APInt(BitWidth, MaxBits + 1)); in getUnsignedPopCountRange() 1850 return getNonEmpty(Zero, APInt(BitWidth, BitWidth + 1)); in ctpop() [all …]
|
| H A D | DataLayout.cpp | 126 uint32_t BitWidth) { in get() argument 131 retval.TypeBitWidth = BitWidth; in get() 580 uint32_t BitWidth) { in findAlignmentLowerBound() argument 582 return E.TypeBitWidth < BitWidth; in findAlignmentLowerBound() 593 if (!isUInt<24>(BitWidth)) in setAlignment() 617 return E.TypeBitWidth < BitWidth; in setAlignment() 672 Align DataLayout::getIntegerAlignment(uint32_t BitWidth, in getIntegerAlignment() argument 836 return Align(PowerOf2Ceil(BitWidth / 8)); in getAlignment() 951 unsigned BitWidth = Offset.getBitWidth(); in getElementIndex() local 953 !isUIntN(BitWidth - 1, ElemSize)) { in getElementIndex() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/InterfaceStub/ |
| H A D | IFSStub.h | 70 std::optional<IFSBitWidthType> BitWidth; member 76 if (Lhs.Arch != Rhs.Arch || Lhs.BitWidth != Rhs.BitWidth || 119 uint8_t convertIFSBitWidthToELF(IFSBitWidthType BitWidth); 138 IFSBitWidthType convertELFBitWidthToIFS(uint8_t BitWidth);
|