| /minix3/external/bsd/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | APSIntType.h | 21 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 …]
|
| /minix3/minix/drivers/power/acpi/executer/ |
| H A D | exregion.c | 75 UINT32 BitWidth, in AcpiExSystemMemorySpaceHandler() argument 96 switch (BitWidth) in AcpiExSystemMemorySpaceHandler() 121 BitWidth)); in AcpiExSystemMemorySpaceHandler() 218 BitWidth, Function, ACPI_FORMAT_NATIVE_UINT (Address))); in AcpiExSystemMemorySpaceHandler() 233 switch (BitWidth) in AcpiExSystemMemorySpaceHandler() 265 switch (BitWidth) in AcpiExSystemMemorySpaceHandler() 327 UINT32 BitWidth, in AcpiExSystemIoSpaceHandler() argument 341 BitWidth, Function, ACPI_FORMAT_NATIVE_UINT (Address))); in AcpiExSystemIoSpaceHandler() 350 &Value32, BitWidth); in AcpiExSystemIoSpaceHandler() 357 (UINT32) *Value, BitWidth); in AcpiExSystemIoSpaceHandler() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Support/ |
| H A D | APInt.cpp | 91 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 …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 76 unsigned BitWidth; ///< The number of bits in this APInt. variable 100 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {} in APInt() 105 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; } in isSingleWord() 140 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; in clearUnusedBits() 239 : BitWidth(numBits), VAL(0) { in BitWidth() function 240 assert(BitWidth && "bitwidth too small"); in BitWidth() 281 APInt(const APInt &that) : BitWidth(that.BitWidth), VAL(0) { in APInt() 289 APInt(APInt &&that) : BitWidth(that.BitWidth), VAL(that.VAL) { in APInt() 290 that.BitWidth = 0; in APInt() 303 explicit APInt() : BitWidth(1) {} in APInt() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 45 if (unsigned BitWidth = Ty->getScalarSizeInBits()) in getBitWidth() local 46 return BitWidth; in getBitWidth() 174 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() local 177 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1); in computeKnownBitsAddSub() 186 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); in computeKnownBitsAddSub() 192 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() local 196 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in computeKnownBitsAddSub() 201 APInt CarryIn(BitWidth, 0); in computeKnownBitsAddSub() 234 KnownZero |= APInt::getSignBit(BitWidth); in computeKnownBitsAddSub() 238 KnownOne |= APInt::getSignBit(BitWidth); in computeKnownBitsAddSub() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 69 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); in SimplifyDemandedInstructionBits() local 70 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits() 71 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() 123 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits() local 127 assert((!DL || DL->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) && in SimplifyDemandedUseBits() 129 VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits() 130 KnownZero.getBitWidth() == BitWidth && in SimplifyDemandedUseBits() 131 KnownOne.getBitWidth() == BitWidth && in SimplifyDemandedUseBits() 158 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits() 159 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits() [all …]
|
| /minix3/minix/drivers/power/acpi/hardware/ |
| H A D | hwvalid.c | 55 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()
|
| H A D | hwregs.c | 124 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 …]
|
| H A D | hwxface.c | 172 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()
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 51 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true); 180 ConstantRange zeroExtend(uint32_t BitWidth) const; 186 ConstantRange signExtend(uint32_t BitWidth) const; 192 ConstantRange truncate(uint32_t BitWidth) const; 196 ConstantRange zextOrTrunc(uint32_t BitWidth) const; 200 ConstantRange sextOrTrunc(uint32_t BitWidth) const;
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/CodeGen/ |
| H A D | ValueTypes.h | 56 static EVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT() 57 return MVT::getFloatingPointVT(BitWidth); in getFloatingPointVT() 62 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT() 63 MVT M = MVT::getIntegerVT(BitWidth); in getIntegerVT() 66 return getExtendedIntegerVT(Context, BitWidth); in getIntegerVT() 85 unsigned BitWidth = EltTy.getSizeInBits(); in changeVectorElementTypeToInteger() local 86 MVT IntTy = MVT::getIntegerVT(BitWidth); in changeVectorElementTypeToInteger() 261 unsigned BitWidth = getSizeInBits(); in getRoundIntegerType() local 262 if (BitWidth <= 8) in getRoundIntegerType() 264 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth)); in getRoundIntegerType() [all …]
|
| /minix3/external/bsd/llvm/dist/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 179 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() argument 180 if (getCharWidth() == BitWidth) in getIntTypeByWidth() 182 if (getShortWidth() == BitWidth) in getIntTypeByWidth() 184 if (getIntWidth() == BitWidth) in getIntTypeByWidth() 186 if (getLongWidth() == BitWidth) in getIntTypeByWidth() 188 if (getLongLongWidth() == BitWidth) in getIntTypeByWidth() 193 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth() argument 195 if (getCharWidth() >= BitWidth) in getLeastIntTypeByWidth() 197 if (getShortWidth() >= BitWidth) in getLeastIntTypeByWidth() 199 if (getIntWidth() >= BitWidth) in getLeastIntTypeByWidth() [all …]
|
| /minix3/minix/drivers/power/acpi/tables/ |
| H A D | tbfadt.c | 218 UINT8 BitWidth; in AcpiTbInitGenericAddress() local 225 BitWidth = (UINT8) (ByteWidth * 8); in AcpiTbInitGenericAddress() 241 BitWidth = 255; in AcpiTbInitGenericAddress() 253 GenericAddress->BitWidth = BitWidth; in AcpiTbInitGenericAddress() 642 (Address64->BitWidth != ACPI_MUL_8 (Length))) in AcpiTbConvertFadt() 646 Name, ACPI_MUL_8 (Length), Address64->BitWidth)); in AcpiTbConvertFadt() 723 (FadtInfoTable[i].DefaultLength != Target64->BitWidth)) in AcpiTbSetupFadtRegisters() 727 FadtInfoTable[i].Name, Target64->BitWidth, in AcpiTbSetupFadtRegisters() 732 Target64->BitWidth = FadtInfoTable[i].DefaultLength; in AcpiTbSetupFadtRegisters() 743 ACPI_DIV_16 (AcpiGbl_FADT.XPm1aEventBlock.BitWidth); in AcpiTbSetupFadtRegisters()
|
| /minix3/external/bsd/llvm/dist/llvm/test/Transforms/InstSimplify/ |
| H A D | apint-or.ll | 3 ; Test the case where integer BitWidth <= 64 && BitWidth % 2 != 0. 21 ; Test the case where Integer BitWidth > 64 && BitWidth <= 1024.
|
| /minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | FunctionLoweringInfo.cpp | 319 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { in GetLiveOutRegInfo() argument 327 if (BitWidth > LOI->KnownZero.getBitWidth()) { in GetLiveOutRegInfo() 329 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); in GetLiveOutRegInfo() 330 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); in GetLiveOutRegInfo() 352 unsigned BitWidth = IntVT.getSizeInBits(); in ComputePHILiveOutRegInfo() local 363 APInt Zero(BitWidth, 0); in ComputePHILiveOutRegInfo() 370 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo() 382 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); in ComputePHILiveOutRegInfo() 390 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() 391 DestLOI.KnownOne.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/test/Transforms/InstCombine/ |
| H A D | apint-mul1.ll | 2 ; This test is for Integer BitWidth < 64 && BitWidth % 2 != 0.
|
| H A D | apint-mul2.ll | 2 ; This test is for Integer BitWidth >= 64 && BitWidth % 2 >= 1024.
|
| H A D | apint-zext1.ll | 2 ; This test is for Integer BitWidth <= 64 && BitWidth % 2 != 0.
|
| H A D | apint-zext2.ll | 2 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
|
| H A D | apint-rem1.ll | 2 ; This test is for Integer BitWidth < 64 && BitWidth % 2 != 0.
|
| H A D | apint-div2.ll | 2 ; This test is for Integer BitWidth >= 64 && BitWidth <= 1024.
|
| H A D | apint-div1.ll | 2 ; This test is for Integer BitWidth < 64 && BitWidth % 2 != 0.
|
| H A D | apint-rem2.ll | 2 ; This test is for Integer BitWidth >= 64 && BitWidth <= 1024.
|
| /minix3/minix/drivers/power/acpi/include/ |
| H A D | acinterp.h | 653 UINT32 BitWidth, 662 UINT32 BitWidth, 671 UINT32 BitWidth, 680 UINT32 BitWidth, 689 UINT32 BitWidth, 698 UINT32 BitWidth, 707 UINT32 BitWidth, 717 UINT32 BitWidth,
|
| /minix3/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/MCJIT/ |
| H A D | MCJIT.cpp | 495 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction() local 496 if (BitWidth == 1) in runFunction() 497 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); in runFunction() 498 else if (BitWidth <= 8) in runFunction() 499 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); in runFunction() 500 else if (BitWidth <= 16) in runFunction() 501 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); in runFunction() 502 else if (BitWidth <= 32) in runFunction() 503 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); in runFunction() 504 else if (BitWidth <= 64) in runFunction() [all …]
|