Home
last modified time | relevance | path

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

12345

/trueos/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
HDAPSIntType.h20 uint32_t BitWidth; variable
25 : BitWidth(Width), IsUnsigned(Unsigned) {} in APSIntType()
28 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} 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;
[all …]
/trueos/sys/contrib/dev/acpica/components/executer/
HDexregion.c75 UINT32 BitWidth, in AcpiExSystemMemorySpaceHandler() argument
96 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
121 BitWidth)); in AcpiExSystemMemorySpaceHandler()
217 BitWidth, Function, ACPI_FORMAT_UINT64 (Address))); in AcpiExSystemMemorySpaceHandler()
232 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
264 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
326 UINT32 BitWidth, in AcpiExSystemIoSpaceHandler() argument
340 BitWidth, Function, ACPI_FORMAT_UINT64 (Address))); in AcpiExSystemIoSpaceHandler()
349 &Value32, BitWidth); in AcpiExSystemIoSpaceHandler()
356 (UINT32) *Value, BitWidth); in AcpiExSystemIoSpaceHandler()
[all …]
/trueos/contrib/llvm/lib/Support/
HDAPInt.cpp90 assert(BitWidth && "Bitwidth too small"); in initFromArray()
107 : BitWidth(numBits), VAL(0) { in APInt()
112 : BitWidth(numBits), VAL(0) { in APInt()
117 : BitWidth(numbits), VAL(0) { in APInt()
118 assert(BitWidth && "Bitwidth too small"); in APInt()
127 if (BitWidth == RHS.getBitWidth()) { in AssignSlowCase()
150 BitWidth = RHS.BitWidth; in AssignSlowCase()
166 ID.AddInteger(BitWidth); in Profile()
252 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator +=()
279 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator -=()
[all …]
HDStringRef.cpp435 unsigned BitWidth = Log2Radix * Str.size(); in getAsInteger() local
436 if (BitWidth < Result.getBitWidth()) in getAsInteger()
437 BitWidth = Result.getBitWidth(); // don't shrink the result in getAsInteger()
438 else if (BitWidth > Result.getBitWidth()) in getAsInteger()
439 Result = Result.zext(BitWidth); in getAsInteger()
444 RadixAP = APInt(BitWidth, Radix); in getAsInteger()
445 CharAP = APInt(BitWidth, 0); in getAsInteger()
/trueos/contrib/llvm/include/llvm/ADT/
HDAPInt.h76 unsigned BitWidth; ///< The number of bits in this APInt. variable
98 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {} in APInt()
103 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; } in isSingleWord()
138 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; in clearUnusedBits()
237 : BitWidth(numBits), VAL(0) { in BitWidth() function
238 assert(BitWidth && "bitwidth too small"); in BitWidth()
279 APInt(const APInt &that) : BitWidth(that.BitWidth), VAL(0) { in APInt()
280 assert(BitWidth && "bitwidth too small"); in APInt()
289 APInt(APInt &&that) : BitWidth(that.BitWidth), VAL(that.VAL) { in APInt()
290 that.BitWidth = 0; in APInt()
[all …]
/trueos/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineSimplifyDemanded.cpp54 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); in SimplifyDemandedInstructionBits() local
55 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits()
56 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits()
106 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits() local
110 assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) && in SimplifyDemandedUseBits()
112 VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits()
113 KnownZero.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
114 KnownOne.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
141 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
142 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
[all …]
HDInstCombineCalls.cpp320 uint32_t BitWidth = IT->getBitWidth(); in visitCallInst() local
321 APInt KnownZero(BitWidth, 0); in visitCallInst()
322 APInt KnownOne(BitWidth, 0); in visitCallInst()
325 APInt Mask(APInt::getLowBitsSet(BitWidth, TrailingZeros)); in visitCallInst()
328 APInt(BitWidth, TrailingZeros))); in visitCallInst()
338 uint32_t BitWidth = IT->getBitWidth(); in visitCallInst() local
339 APInt KnownZero(BitWidth, 0); in visitCallInst()
340 APInt KnownOne(BitWidth, 0); in visitCallInst()
343 APInt Mask(APInt::getHighBitsSet(BitWidth, LeadingZeros)); in visitCallInst()
346 APInt(BitWidth, LeadingZeros))); in visitCallInst()
[all …]
/trueos/contrib/llvm/lib/Analysis/
HDValueTracking.cpp41 if (unsigned BitWidth = Ty->getScalarSizeInBits()) in getBitWidth() local
42 return BitWidth; in getBitWidth()
57 unsigned BitWidth = KnownZero.getBitWidth(); in ComputeMaskedBitsAddSub() local
60 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1); in ComputeMaskedBitsAddSub()
69 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); in ComputeMaskedBitsAddSub()
75 unsigned BitWidth = KnownZero.getBitWidth(); in ComputeMaskedBitsAddSub() local
81 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in ComputeMaskedBitsAddSub()
95 APInt Mask = APInt::getLowBitsSet(BitWidth, LHSKnownZeroOut); in ComputeMaskedBitsAddSub()
101 KnownZero |= APInt::getLowBitsSet(BitWidth, in ComputeMaskedBitsAddSub()
106 APInt Mask = APInt::getLowBitsSet(BitWidth, RHSKnownZeroOut); in ComputeMaskedBitsAddSub()
[all …]
HDScalarEvolutionAliasAnalysis.cpp128 unsigned BitWidth = SE->getTypeSizeInBits(AS->getType()); in alias() local
129 APInt ASizeInt(BitWidth, LocA.Size); in alias()
130 APInt BSizeInt(BitWidth, LocB.Size); in alias()
HDScalarEvolution.cpp948 unsigned BitWidth = getTypeSizeInBits(AR->getType()); in getZeroExtendExpr() local
978 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2); in getZeroExtendExpr()
1019 const SCEV *N = getConstant(APInt::getMinValue(BitWidth) - in getZeroExtendExpr()
1033 const SCEV *N = getConstant(APInt::getMaxValue(BitWidth) - in getZeroExtendExpr()
1066 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType()); in getOverflowLimitForStep() local
1069 return SE->getConstant(APInt::getSignedMinValue(BitWidth) - in getOverflowLimitForStep()
1074 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) - in getOverflowLimitForStep()
1122 unsigned BitWidth = SE->getTypeSizeInBits(AR->getType()); in getPreStartForSignExtend() local
1123 Type *WideTy = IntegerType::get(SE->getContext(), BitWidth * 2); in getPreStartForSignExtend()
1214 unsigned BitWidth = getTypeSizeInBits(AR->getType()); in getSignExtendExpr() local
[all …]
/trueos/sys/contrib/dev/acpica/components/hardware/
HDhwregs.c124 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 …]
HDhwvalid.c55 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()
HDhwxface.c172 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()
/trueos/sys/contrib/dev/acpica/components/tables/
HDtbfadt.c218 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()
/trueos/contrib/llvm/include/llvm/Support/
HDConstantRange.h56 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
191 ConstantRange zeroExtend(uint32_t BitWidth) const;
197 ConstantRange signExtend(uint32_t BitWidth) const;
203 ConstantRange truncate(uint32_t BitWidth) const;
207 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
211 ConstantRange sextOrTrunc(uint32_t BitWidth) const;
/trueos/contrib/llvm/include/llvm/CodeGen/
HDValueTypes.h464 static MVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT() argument
465 switch (BitWidth) { in getFloatingPointVT()
481 static MVT getIntegerVT(unsigned BitWidth) { in getIntegerVT() argument
482 switch (BitWidth) { in getIntegerVT()
601 static EVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT()
602 return MVT::getFloatingPointVT(BitWidth); in getFloatingPointVT()
607 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT()
608 MVT M = MVT::getIntegerVT(BitWidth); in getIntegerVT()
611 return getExtendedIntegerVT(Context, BitWidth); in getIntegerVT()
630 unsigned BitWidth = EltTy.getSizeInBits(); in changeVectorElementTypeToInteger() local
[all …]
/trueos/contrib/llvm/tools/clang/lib/Basic/
HDTargetInfo.cpp156 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() argument
157 if (getCharWidth() == BitWidth) in getIntTypeByWidth()
159 if (getShortWidth() == BitWidth) in getIntTypeByWidth()
161 if (getIntWidth() == BitWidth) in getIntTypeByWidth()
163 if (getLongWidth() == BitWidth) in getIntTypeByWidth()
165 if (getLongLongWidth() == BitWidth) in getIntTypeByWidth()
170 TargetInfo::RealType TargetInfo::getRealTypeByWidth(unsigned BitWidth) const { in getRealTypeByWidth()
171 if (getFloatWidth() == BitWidth) in getRealTypeByWidth()
173 if (getDoubleWidth() == BitWidth) in getRealTypeByWidth()
176 switch (BitWidth) { in getRealTypeByWidth()
/trueos/contrib/llvm/lib/CodeGen/SelectionDAG/
HDFunctionLoweringInfo.cpp288 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { in GetLiveOutRegInfo() argument
296 if (BitWidth > LOI->KnownZero.getBitWidth()) { in GetLiveOutRegInfo()
298 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); in GetLiveOutRegInfo()
299 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); in GetLiveOutRegInfo()
323 unsigned BitWidth = IntVT.getSizeInBits(); in ComputePHILiveOutRegInfo() local
334 APInt Zero(BitWidth, 0); in ComputePHILiveOutRegInfo()
341 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo()
353 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); in ComputePHILiveOutRegInfo()
361 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
362 DestLOI.KnownOne.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
[all …]
HDTargetLowering.cpp321 unsigned BitWidth, in ShrinkDemandedOp() argument
337 unsigned DemandedSize = BitWidth - Demanded.countLeadingZeros(); in ShrinkDemandedOp()
341 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) { in ShrinkDemandedOp()
373 unsigned BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedBits() local
374 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth && in SimplifyDemandedBits()
380 KnownZero = KnownOne = APInt(BitWidth, 0); in SimplifyDemandedBits()
392 NewMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedBits()
449 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
483 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
508 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
[all …]
/trueos/contrib/llvm/lib/ExecutionEngine/MCJIT/
HDMCJIT.cpp445 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction() local
446 if (BitWidth == 1) in runFunction()
447 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); in runFunction()
448 else if (BitWidth <= 8) in runFunction()
449 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); in runFunction()
450 else if (BitWidth <= 16) in runFunction()
451 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); in runFunction()
452 else if (BitWidth <= 32) in runFunction()
453 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); in runFunction()
454 else if (BitWidth <= 64) in runFunction()
[all …]
/trueos/usr.sbin/acpi/acpidb/
HDacpidb.c296 UINT32 BitWidth, in aml_vm_space_handler() argument
311 for (i = 0; (i * 8) < BitWidth; i++) { in aml_vm_space_handler()
322 space_names[SpaceID], BitWidth, in aml_vm_space_handler()
328 Address, BitWidth, Value, 0)); in aml_vm_space_handler()
337 space_names[SpaceID], BitWidth, in aml_vm_space_handler()
342 for (i = 0; (i * 8) < BitWidth; i++) { in aml_vm_space_handler()
361 UINT32 BitWidth, \
365 BitWidth, Value, aml_debug_prompt)); \
/trueos/sys/contrib/dev/acpica/include/
HDacinterp.h653 UINT32 BitWidth,
662 UINT32 BitWidth,
671 UINT32 BitWidth,
680 UINT32 BitWidth,
689 UINT32 BitWidth,
698 UINT32 BitWidth,
707 UINT32 BitWidth,
717 UINT32 BitWidth,
/trueos/contrib/llvm/lib/ExecutionEngine/JIT/
HDJIT.cpp302 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction() local
303 if (BitWidth == 1) in runFunction()
304 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); in runFunction()
305 else if (BitWidth <= 8) in runFunction()
306 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); in runFunction()
307 else if (BitWidth <= 16) in runFunction()
308 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); in runFunction()
309 else if (BitWidth <= 32) in runFunction()
310 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); in runFunction()
311 else if (BitWidth <= 64) in runFunction()
[all …]
/trueos/contrib/llvm/utils/TableGen/
HDTGValueTypes.cpp48 unsigned BitWidth; member in __anon3c7937e10111::ExtendedIntegerType
51 : Type(TK_ExtendedIntegerType), BitWidth(bits) {} in ExtendedIntegerType()
59 return BitWidth; in getBitWidth()
HDFixedLenDecoderEmitter.cpp101 unsigned Indentation, unsigned BitWidth,
332 unsigned BitWidth; member in __anon8eb46db30711::FilterChooser
342 BestIndex(FC.BestIndex), BitWidth(FC.BitWidth), in FilterChooser()
351 Parent(NULL), BestIndex(-1), BitWidth(BW), Emitter(E) { in FilterChooser()
352 for (unsigned i = 0; i < BitWidth; ++i) in FilterChooser()
365 Parent(&parent), BestIndex(-1), BitWidth(parent.BitWidth), in FilterChooser()
370 unsigned getBitWidth() const { return BitWidth; } in getBitWidth()
385 for (unsigned i = 0; i < BitWidth; ++i) { in insnWithID()
505 assert(StartBit + NumBits - 1 < Owner->BitWidth); in Filter()
724 unsigned BitWidth, in emitTable() argument
[all …]

12345