| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 37 KnownBits(unsigned BitWidth) : Zero(BitWidth, 0), One(BitWidth, 0) {} in KnownBits() 151 return KnownBits(Zero.trunc(BitWidth), One.trunc(BitWidth)); in trunc() 157 return KnownBits(Zero.zext(BitWidth), One.zext(BitWidth)); in anyext() 170 return KnownBits(Zero.sext(BitWidth), One.sext(BitWidth)); in sext() 176 if (BitWidth > getBitWidth()) in anyextOrTrunc() 177 return anyext(BitWidth); in anyextOrTrunc() 179 return trunc(BitWidth); in anyextOrTrunc() 187 return zext(BitWidth); in zextOrTrunc() 189 return trunc(BitWidth); in zextOrTrunc() 197 return sext(BitWidth); in sextOrTrunc() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 93 if (SrcBitWidth == BitWidth) in sextInReg() 169 KnownBits Known(BitWidth); in shl() 223 KnownBits Known(BitWidth); in lshr() 276 KnownBits Known(BitWidth); in ashr() 423 BitWidth) - in mul() 424 BitWidth; in mul() 488 KnownBits Res(BitWidth); in mul() 501 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhs() 510 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhu() 516 KnownBits Known(BitWidth); in udiv() [all …]
|
| H A D | APInt.cpp | 194 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator +=() 214 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator -=() 231 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator *() 256 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator *=() 549 Arg.BitWidth, in hash_value() 688 if (Result.BitWidth != BitWidth) { in byteSwap() 689 Result.lshrInPlace(Result.BitWidth - BitWidth); in byteSwap() 690 Result.BitWidth = BitWidth; in byteSwap() 1195 APInt t[2] = { APInt(BitWidth, 0), APInt(BitWidth, 1) }; in multiplicativeInverse() 1792 unsigned BitWidth = LHS.BitWidth; in udivrem() local [all …]
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 317 APInt(const APInt &that) : BitWidth(that.BitWidth) { 325 APInt(APInt &&that) : BitWidth(that.BitWidth) { 758 BitWidth = RHS.BitWidth; 781 BitWidth = that.BitWidth; 811 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); 841 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); 870 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); 1342 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); 1511 return setBits(BitWidth - hiBits, BitWidth); 1537 APInt Keep = getHighBitsSet(BitWidth, BitWidth - loBits); [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | DemandedBits.cpp | 90 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() 288 AB = AOut.zext(BitWidth); in determineLiveOperandBits() 291 AB = AOut.trunc(BitWidth); in determineLiveOperandBits() 294 AB = AOut.trunc(BitWidth); in determineLiveOperandBits() 412 AB = APInt(BitWidth, 0); in performAnalysis() [all …]
|
| /freebsd-13.1/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 535 UINT32 BitWidth, in AcpiExPciConfigSpaceHandler() argument 616 UINT32 BitWidth, in AcpiExCmosSpaceHandler() argument 653 UINT32 BitWidth, in AcpiExPciBarSpaceHandler() argument 707 ACPI_DIV_8 (BitWidth)); in AcpiExDataTableSpaceHandler() [all …]
|
| /freebsd-13.1/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-13.1/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() 315 uint32_t BitWidth) const; 321 ConstantRange zeroExtend(uint32_t BitWidth) const; 327 ConstantRange signExtend(uint32_t BitWidth) const; 333 ConstantRange truncate(uint32_t BitWidth) const; 337 ConstantRange zextOrTrunc(uint32_t BitWidth) const; [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 57 KnownBits Known(BitWidth); in SimplifyDemandedInstructionBits() 148 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits() 497 APInt DemandedFromOps(APInt::getLowBitsSet(BitWidth, BitWidth-NLZ)); in SimplifyDemandedUseBits() 577 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedUseBits() 654 BitWidth, std::min(SignBits + ShiftAmt - 1, BitWidth))); in SimplifyDemandedUseBits() 686 APInt::getHighBitsSet(BitWidth, BitWidth - RHSTrailingZeros); in SimplifyDemandedUseBits() 745 KnownBits Known2(BitWidth); in SimplifyDemandedUseBits() 865 KnownBits LHSKnown(BitWidth); in SimplifyMultipleUseDemandedBits() 866 KnownBits RHSKnown(BitWidth); in SimplifyMultipleUseDemandedBits() 967 BitWidth, BitWidth - ShiftRC->getZExtValue()))) { in SimplifyMultipleUseDemandedBits() [all …]
|
| H A D | InstCombineShifts.cpp | 927 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl() 933 ShOp1->ult(BitWidth)) { in visitShl() 954 ShOp1->ult(BitWidth)) { in visitShl() 963 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl() 974 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl() 982 if (AmtSum < BitWidth) in visitShl() 1056 if (II && isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt && in visitLShr() 1083 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr() 1097 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr() 1102 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | GISelKnownBits.cpp | 123 KnownBits Mask(BitWidth); in extractBits() 125 BitWidth, WidthKnown.getMaxValue().getLimitedValue(BitWidth)); in extractBits() 127 BitWidth, WidthKnown.getMinValue().getLimitedValue(BitWidth)); in extractBits() 241 Known = KnownBits(BitWidth); in computeKnownBitsImpl() 373 BitWidth > 1) in computeKnownBitsImpl() 382 Known = Known.sext(BitWidth); in computeKnownBitsImpl() 395 Known = Known.anyext(BitWidth); in computeKnownBitsImpl() 464 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsImpl() 465 if (BitWidth > SrcBitWidth) in computeKnownBitsImpl() 498 Known = SrcOpKnown.extractBits(BitWidth, BitWidth * DstIdx); in computeKnownBitsImpl() [all …]
|
| /freebsd-13.1/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-13.1/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-13.1/contrib/llvm-project/llvm/lib/InterfaceStub/ |
| H A D | IFSHandler.cpp | 104 IO.mapOptional("BitWidth", Target.BitWidth); in mapping() 208 !CopyStub->Target.BitWidth)) in writeIFSToOutputStream() 237 if (Stub.Target.BitWidth && in overrideIFSTarget() 238 Stub.Target.BitWidth.getValue() != OverrideBitWidth.getValue()) { in overrideIFSTarget() 242 Stub.Target.BitWidth = OverrideBitWidth.getValue(); in overrideIFSTarget() 258 if (Stub.Target.Arch || Stub.Target.BitWidth || Stub.Target.Endianness || in validateIFSTarget() 267 Stub.Target.BitWidth = TargetFromTriple.BitWidth; in validateIFSTarget() 272 if (!Stub.Target.Arch || !Stub.Target.BitWidth || !Stub.Target.Endianness) { in validateIFSTarget() 278 if (!Stub.Target.BitWidth) { in validateIFSTarget() 306 RetTarget.BitWidth = in parseTriple() [all …]
|
| H A D | IFSStub.cpp | 58 !BitWidth; in empty() 61 uint8_t ifs::convertIFSBitWidthToELF(IFSBitWidthType BitWidth) { in convertIFSBitWidthToELF() argument 62 switch (BitWidth) { in convertIFSBitWidthToELF() 97 IFSBitWidthType ifs::convertELFBitWidthToIFS(uint8_t BitWidth) { in convertELFBitWidthToIFS() argument 98 switch (BitWidth) { in convertELFBitWidthToIFS()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Basic/Targets/ |
| H A D | AVR.h | 156 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 D | WebAssembly.h | 114 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 116 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getIntTypeByWidth() 117 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 120 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 122 return BitWidth == 64 in getLeastIntTypeByWidth() 124 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 251 if (getCharWidth() == BitWidth) in getIntTypeByWidth() 253 if (getShortWidth() == BitWidth) in getIntTypeByWidth() 255 if (getIntWidth() == BitWidth) in getIntTypeByWidth() 257 if (getLongWidth() == BitWidth) in getIntTypeByWidth() 266 if (getCharWidth() >= BitWidth) in getLeastIntTypeByWidth() 268 if (getShortWidth() >= BitWidth) in getLeastIntTypeByWidth() 270 if (getIntWidth() >= BitWidth) in getLeastIntTypeByWidth() 272 if (getLongWidth() >= BitWidth) in getLeastIntTypeByWidth() 281 if (getFloatWidth() == BitWidth) in getRealTypeByWidth() 283 if (getDoubleWidth() == BitWidth) in getRealTypeByWidth() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SIRegisterInfo.cpp | 1930 if (BitWidth <= 64) in getAnyVGPRClassForBitWidth() 1932 if (BitWidth <= 96) in getAnyVGPRClassForBitWidth() 1954 if (BitWidth <= 64) in getAlignedVGPRClassForBitWidth() 1956 if (BitWidth <= 96) in getAlignedVGPRClassForBitWidth() 1978 if (BitWidth == 1) in getVGPRClassForBitWidth() 1980 if (BitWidth <= 16) in getVGPRClassForBitWidth() 1982 if (BitWidth <= 32) in getVGPRClassForBitWidth() 1990 if (BitWidth <= 64) in getAnyAGPRClassForBitWidth() 1992 if (BitWidth <= 96) in getAnyAGPRClassForBitWidth() 2014 if (BitWidth <= 64) in getAlignedAGPRClassForBitWidth() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | CodeEmitterGen.cpp | 60 unsigned BitWidth; member in __anonbde1da3e0111::CodeEmitterGen 377 APInt Value(BitWidth, 0); in emitInstructionBaseValues() 402 BitWidth = 0; in run() 414 BitWidth = std::max(BitWidth, BI->getNumBits()); in run() 421 BitWidth = std::max(BitWidth, BI->getNumBits()); in run() 423 UseAPInt = BitWidth > 64; in run() 477 int NumWords = APInt::getNumWords(BitWidth); in run() 478 int NumBytes = (BitWidth + 7) / 8; in run() 480 << " if (Inst.getBitWidth() != " << BitWidth << ")\n" in run() 481 << " Inst = Inst.zext(" << BitWidth << ");\n" in run() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/InterfaceStub/ |
| H A D | IFSStub.h | 71 Optional<IFSBitWidthType> BitWidth; member 77 if (Lhs.Arch != Rhs.Arch || Lhs.BitWidth != Rhs.BitWidth || 119 uint8_t convertIFSBitWidthToELF(IFSBitWidthType BitWidth); 138 IFSBitWidthType convertELFBitWidthToIFS(uint8_t BitWidth);
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Operator.cpp | 147 const DataLayout &DL, unsigned BitWidth, in collectOffset() argument 150 assert(BitWidth == DL.getIndexSizeInBits(getPointerAddressSpace()) && in collectOffset() 154 Index = Index.sextOrTrunc(BitWidth); in collectOffset() 155 APInt IndexedSize = APInt(BitWidth, Size); in collectOffset() 182 CollectConstantOffset(APInt(BitWidth, SL->getElementOffset(ElementIdx)), in collectOffset() 195 VariableOffsets.insert({V, APInt(BitWidth, 0)}); in collectOffset() 197 APInt(BitWidth, DL.getTypeAllocSize(GTI.getIndexedType())); in collectOffset()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | ValueTypes.h | 59 static EVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT() 60 return MVT::getFloatingPointVT(BitWidth); in getFloatingPointVT() 65 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT() 66 MVT M = MVT::getIntegerVT(BitWidth); in getIntegerVT() 69 return getExtendedIntegerVT(Context, BitWidth); in getIntegerVT() 383 unsigned BitWidth = getSizeInBits(); in getRoundIntegerType() local 384 if (BitWidth <= 8) in getRoundIntegerType() 386 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth)); in getRoundIntegerType() 489 static EVT getExtendedIntegerVT(LLVMContext &C, unsigned BitWidth);
|