/freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | APSIntType.h | 20 uint32_t BitWidth; member in class:clang::ento::APSIntType 25 : BitWidth(Width), IsUnsigned(Unsigned) {} 28 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} 30 uint32_t getBitWidth() const { return BitWidth; } 40 Value = Value.extOrTrunc(BitWidth); 56 return llvm::APSInt(BitWidth, IsUnsigned); 61 return llvm::APSInt::getMinValue(BitWidth, IsUnsigned); 66 return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned); 70 return (llvm::APSInt(BitWidth, IsUnsigned) = RawValue); 92 return BitWidth [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 35 /// Create a known bits object of BitWidth bits initialized to unknown. 36 KnownBits(unsigned BitWidth) : Zero(BitWidth, 0), One(BitWidth, 0) {} argument 127 KnownBits trunc(unsigned BitWidth) const { 128 return KnownBits(Zero.trunc(BitWidth), One.trunc(BitWidth)); 135 KnownBits zext(unsigned BitWidth, bool ExtendedBitsAreKnownZero) const { argument 137 APInt NewZero = Zero.zext(BitWidth); 140 return KnownBits(NewZero, One.zext(BitWidth)); 153 zextOrTrunc(unsigned BitWidth, bool ExtendedBitsAreKnownZero) const argument [all...] |
/freebsd-11-stable/sys/contrib/dev/acpica/components/executer/ |
H A D | exregion.c | 167 * BitWidth - Field width in bits (8, 16, or 32) 183 UINT32 BitWidth, 204 switch (BitWidth) 229 BitWidth)); 325 BitWidth, Function, ACPI_FORMAT_UINT64 (Address))); 340 switch (BitWidth) 364 /* BitWidth was already validated */ 372 switch (BitWidth) 396 /* BitWidth was already validated */ 418 * BitWidth 180 AcpiExSystemMemorySpaceHandler( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) argument 431 AcpiExSystemIoSpaceHandler( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) argument 496 AcpiExPciConfigSpaceHandler( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) argument 577 AcpiExCmosSpaceHandler( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) argument 614 AcpiExPciBarSpaceHandler( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) argument 651 AcpiExDataTableSpaceHandler( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | DemandedBits.cpp | 90 unsigned BitWidth = AB.getBitWidth(); local 99 [&](unsigned BitWidth, const Value *V1, const Value *V2) { 105 Known = KnownBits(BitWidth); 109 Known2 = KnownBits(BitWidth); 136 ComputeKnownBits(BitWidth, Val, nullptr); 137 AB = APInt::getHighBitsSet(BitWidth, 138 std::min(BitWidth, Known.countMaxLeadingZeros()+1)); 146 ComputeKnownBits(BitWidth, Val, nullptr); 147 AB = APInt::getLowBitsSet(BitWidth, 148 std::min(BitWidth, Know 386 unsigned BitWidth = T->getScalarSizeInBits(); local [all...] |
H A D | ScalarEvolutionAliasAnalysis.cpp | 45 unsigned BitWidth = SE.getTypeSizeInBits(AS->getType()); local 46 APInt ASizeInt(BitWidth, LocA.Size.hasValue() 49 APInt BSizeInt(BitWidth, LocB.Size.hasValue()
|
/freebsd-11-stable/sys/contrib/dev/acpica/components/hardware/ |
H A D | hwregs.c | 192 * MaxBitWidth - Max BitWidth supported (32 or 64) 211 * 1. Detected if BitOffset is 0 and BitWidth is 8/16/32/64; 212 * 2. AccessSize field is ignored and BitWidth field is used for 215 * 1. Detected if BitOffset is not 0 or BitWidth is not 8/16/32/64; 218 * 3. BitOffset/BitWidth fields are used to describe the "region". 223 if (!Reg->BitOffset && Reg->BitWidth && 224 ACPI_IS_POWER_OF_TWO (Reg->BitWidth) && 225 ACPI_IS_ALIGNED (Reg->BitWidth, 8)) 227 AccessBitWidth = Reg->BitWidth; 236 Reg->BitOffset + Reg->BitWidth); 292 UINT8 BitWidth; local 373 UINT32 BitWidth; local 471 UINT32 BitWidth; local [all...] |
H A D | hwvalid.c | 163 UINT32 BitWidth); 226 * BitWidth Number of bits (8,16,32) 240 UINT32 BitWidth) 253 if ((BitWidth != 8) && 254 (BitWidth != 16) && 255 (BitWidth != 32)) 258 "Bad BitWidth parameter: %8.8X", BitWidth)); 263 ByteWidth = ACPI_DIV_8 (BitWidth); 238 AcpiHwValidateIoRequest( ACPI_IO_ADDRESS Address, UINT32 BitWidth) argument
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | OrcMCJITReplacement.cpp | 90 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local 91 if (BitWidth == 1) 92 rv.IntVal = APInt(BitWidth, ((bool (*)())(intptr_t)FPtr)()); 93 else if (BitWidth <= 8) 94 rv.IntVal = APInt(BitWidth, ((char (*)())(intptr_t)FPtr)()); 95 else if (BitWidth <= 16) 96 rv.IntVal = APInt(BitWidth, ((short (*)())(intptr_t)FPtr)()); 97 else if (BitWidth <= 32) 98 rv.IntVal = APInt(BitWidth, ((int (*)())(intptr_t)FPtr)()); 99 else if (BitWidth < [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APInt.h | 97 unsigned BitWidth; ///< The number of bits in this APInt. variable 107 APInt(uint64_t *val, unsigned bits) : BitWidth(bits) { 114 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; } 149 unsigned WordBits = ((BitWidth-1) % APINT_BITS_PER_WORD) + 1; 278 : BitWidth(numBits) { 279 assert(BitWidth && "bitwidth too small"); 321 APInt(const APInt &that) : BitWidth(that.BitWidth) { 329 APInt(APInt &&that) : BitWidth(that.BitWidth) { 559 getSignMask(unsigned BitWidth) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Basic/Targets/ |
H A D | AVR.h | 155 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { 157 return BitWidth == 16 ? (IsSigned ? SignedInt : UnsignedInt) 158 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); 161 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { 163 return BitWidth == 16 165 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned);
|
H A D | WebAssembly.h | 105 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { 107 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong) 108 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); 111 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { 113 return BitWidth == 64 115 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | PatternInit.cpp | 36 unsigned BitWidth = cast<llvm::IntegerType>( 39 if (BitWidth <= 64) 42 Ty, llvm::APInt::getSplat(BitWidth, llvm::APInt(64, IntValue))); 56 unsigned BitWidth = llvm::APFloat::semanticsSizeInBits( 60 if (BitWidth >= 64) 61 Payload = llvm::APInt::getSplat(BitWidth, Payload);
|
/freebsd-11-stable/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) { argument 74 return ConstantRange(BitWidth, false); 78 static ConstantRange getFull(uint32_t BitWidth) { argument 79 return ConstantRange(BitWidth, true); 290 /// BitWidth is the target bitwidth of the cast. For casts which don't 295 uint32_t BitWidth) const; 300 /// zero extended to BitWidth. 301 ConstantRange zeroExtend(uint32_t BitWidth) const; 306 /// sign extended to BitWidth [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | APInt.cpp | 92 assert(BitWidth && "Bitwidth too small"); 109 : BitWidth(numBits) { 114 : BitWidth(numBits) { 119 : BitWidth(numbits) { 120 assert(BitWidth && "Bitwidth too small"); 127 BitWidth = NewBitWidth; 135 // Update BitWidth. 136 BitWidth = NewBitWidth; 160 ID.AddInteger(BitWidth); 194 assert(BitWidth [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | APSIntType.cpp | 41 if (MinBits <= BitWidth)
|
/freebsd-11-stable/sys/contrib/dev/acpica/components/tables/ |
H A D | tbfadt.c | 326 UINT8 BitWidth; local 331 * Check for BitWidth overflow in GAS. 333 BitWidth = (UINT8) (ByteWidth * 8); 337 * No error for GPE blocks, because we do not use the BitWidth 349 BitWidth = 255; 361 GenericAddress->BitWidth = BitWidth; 746 (Address64->BitWidth != ACPI_MUL_8 (Length))) 750 Name, ACPI_MUL_8 (Length), Address64->BitWidth)); 760 * AccessSize/BitWidth/BitOffse [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | ValueTypes.h | 58 static EVT getFloatingPointVT(unsigned BitWidth) { argument 59 return MVT::getFloatingPointVT(BitWidth); 64 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { argument 65 MVT M = MVT::getIntegerVT(BitWidth); 68 return getExtendedIntegerVT(Context, BitWidth); 103 unsigned BitWidth = EltTy.getSizeInBits(); local 104 MVT IntTy = MVT::getIntegerVT(BitWidth); 334 unsigned BitWidth = getSizeInBits(); local 335 if (BitWidth <= 8) 337 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth)); [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | GISelKnownBits.cpp | 80 unsigned BitWidth = Ty.getScalarSizeInBits(); local 81 return maskedValueIsZero(R, APInt::getSignMask(BitWidth)); 106 unsigned BitWidth = DstTy.getSizeInBits(); local 107 Known = KnownBits(BitWidth); // Don't know anything 249 BitWidth) - 250 BitWidth; 253 Known.Zero.setLowBits(std::min(TrailZ, BitWidth)); 254 Known.Zero.setHighBits(std::min(LeadZ, BitWidth)); 275 BitWidth > 1) 284 Known = Known.sext(BitWidth); [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Basic/ |
H A D | TargetInfo.cpp | 236 unsigned BitWidth, bool IsSigned) const { 237 if (getCharWidth() == BitWidth) 239 if (getShortWidth() == BitWidth) 241 if (getIntWidth() == BitWidth) 243 if (getLongWidth() == BitWidth) 245 if (getLongLongWidth() == BitWidth) 250 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, argument 252 if (getCharWidth() >= BitWidth) 254 if (getShortWidth() >= BitWidth) 256 if (getIntWidth() >= BitWidth) 235 getIntTypeByWidth( unsigned BitWidth, bool IsSigned) const argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | CodeEmitterGen.cpp | 60 unsigned BitWidth; member in class:__anon2897::CodeEmitterGen 362 o << " "; emitInstBits(o, APInt(BitWidth, 0)); o << ",\n"; 377 APInt Value(BitWidth, 0); 380 Value |= APInt(BitWidth, (uint64_t)B->getValue()) << (e - i - 1); 402 BitWidth = 0; 414 BitWidth = std::max(BitWidth, BI->getNumBits()); 421 BitWidth = std::max(BitWidth, BI->getNumBits()); 423 UseAPInt = BitWidth > 6 [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 67 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); local 68 KnownBits Known(BitWidth); 69 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); 123 uint32_t BitWidth = DemandedMask.getBitWidth(); local 126 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && 127 Known.getBitWidth() == BitWidth && 128 "Value *V, DemandedMask and Known must have same BitWidth"); 154 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); 399 Known = InputKnown.zextOrTrunc(BitWidth, 797 unsigned BitWidth = DemandedMask.getBitWidth(); local 943 unsigned BitWidth = Ty->getScalarSizeInBits(); local [all...] |
H A D | InstCombineShifts.cpp | 498 uint32_t BitWidth = Ty->getScalarSizeInBits(); 500 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && 501 CI->getLimitedValue(BitWidth) < BitWidth) { 943 unsigned BitWidth = Ty->getScalarSizeInBits(); local 961 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); 991 if (AmtSum < BitWidth) 998 MaskedValueIsZero(Op0, APInt::getHighBitsSet(BitWidth, ShAmt), 0, &I)) { 1040 match(Op1, m_Sub(m_SpecificInt(BitWidth 1063 unsigned BitWidth = Ty->getScalarSizeInBits(); local 1258 unsigned BitWidth = Ty->getScalarSizeInBits(); local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 400 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { argument 408 if (BitWidth > LOI->Known.getBitWidth()) { 410 LOI->Known = LOI->Known.zext(BitWidth, false /* => any extend */); 432 unsigned BitWidth = IntVT.getSizeInBits(); local 443 DestLOI.Known = KnownBits(BitWidth); 448 APInt Val = CI->getValue().zextOrTrunc(BitWidth); 460 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); 468 assert(DestLOI.Known.Zero.getBitWidth() == BitWidth && 469 DestLOI.Known.One.getBitWidth() == BitWidth && 476 DestLOI.Known = KnownBits(BitWidth); [all...] |
/freebsd-11-stable/sys/contrib/dev/acpica/include/ |
H A D | acinterp.h | 792 UINT32 BitWidth, 801 UINT32 BitWidth, 810 UINT32 BitWidth, 819 UINT32 BitWidth, 828 UINT32 BitWidth, 837 UINT32 BitWidth, 846 UINT32 BitWidth, 856 UINT32 BitWidth,
|
/freebsd-11-stable/usr.sbin/acpi/acpidb/ |
H A D | acpidb.c | 299 UINT32 BitWidth, 314 for (i = 0; (i * 8) < BitWidth; i++) { 325 space_names[SpaceID], BitWidth, 331 Address, BitWidth, Value, 0)); 340 space_names[SpaceID], BitWidth, 345 for (i = 0; (i * 8) < BitWidth; i++) { 364 UINT32 BitWidth, \ 368 BitWidth, Value, aml_debug_prompt)); \ 295 aml_vm_space_handler( UINT32 SpaceID, UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, int Prompt) argument
|