Searched refs:BitWidth (Results 1 - 25 of 102) sorted by relevance

12345

/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAPSIntType.h20 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-10.0-release/sys/contrib/dev/acpica/components/executer/
H A Dexregion.c62 * BitWidth - Field width in bits (8, 16, or 32)
78 UINT32 BitWidth,
99 switch (BitWidth)
124 BitWidth));
221 BitWidth, Function, ACPI_FORMAT_NATIVE_UINT (Address)));
236 switch (BitWidth)
260 /* BitWidth was already validated */
268 switch (BitWidth)
292 /* BitWidth was already validated */
314 * BitWidth
75 AcpiExSystemMemorySpaceHandler( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) argument
327 AcpiExSystemIoSpaceHandler( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) argument
392 AcpiExPciConfigSpaceHandler( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) argument
472 AcpiExCmosSpaceHandler( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) argument
509 AcpiExPciBarSpaceHandler( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) argument
546 AcpiExDataTableSpaceHandler( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) argument
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Support/
H A DAPInt.cpp90 assert(BitWidth && "Bitwidth too small");
107 : BitWidth(numBits), VAL(0) {
112 : BitWidth(numBits), VAL(0) {
117 : BitWidth(numbits), VAL(0) {
118 assert(BitWidth && "Bitwidth too small");
127 if (BitWidth == RHS.getBitWidth()) {
150 BitWidth = RHS.BitWidth;
166 ID.AddInteger(BitWidth);
252 assert(BitWidth
[all...]
H A DStringRef.cpp416 unsigned BitWidth = Log2Radix * Str.size();
417 if (BitWidth < Result.getBitWidth())
418 BitWidth = Result.getBitWidth(); // don't shrink the result
419 else if (BitWidth > Result.getBitWidth())
420 Result = Result.zext(BitWidth);
425 RadixAP = APInt(BitWidth, Radix);
426 CharAP = APInt(BitWidth, 0);
/freebsd-10.0-release/contrib/llvm/include/llvm/Support/
H A DConstantRange.h48 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
182 /// zero extended to BitWidth.
183 ConstantRange zeroExtend(uint32_t BitWidth) const;
188 /// sign extended to BitWidth.
189 ConstantRange signExtend(uint32_t BitWidth) const;
195 ConstantRange truncate(uint32_t BitWidth) const;
197 /// zextOrTrunc - make this range have the bit width given by \p BitWidth. The
199 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
201 /// sextOrTrunc - make this range have the bit width given by \p BitWidth. The
203 ConstantRange sextOrTrunc(uint32_t BitWidth) cons
[all...]
/freebsd-10.0-release/contrib/llvm/include/llvm/ADT/
H A DAPInt.h76 unsigned BitWidth; ///< The number of bits in this APInt. member in class:llvm::APInt
97 APInt(uint64_t* val, unsigned bits) : BitWidth(bits), pVal(val) { }
102 return BitWidth <= APINT_BITS_PER_WORD;
134 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD;
230 : BitWidth(numBits), VAL(0) {
231 assert(BitWidth && "bitwidth too small");
269 : BitWidth(that.BitWidth), VAL(0) {
270 assert(BitWidth && "bitwidth too small");
279 APInt(APInt&& that) : BitWidth(tha
423 getSignBit(unsigned BitWidth) argument
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp54 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); local
55 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
56 APInt DemandedMask(APInt::getAllOnesValue(BitWidth));
106 uint32_t BitWidth = DemandedMask.getBitWidth(); local
110 assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) &&
112 VTy->getScalarSizeInBits() == BitWidth) &&
113 KnownZero.getBitWidth() == BitWidth &&
114 KnownOne.getBitWidth() == BitWidth &&
116 "must have same BitWidth");
855 unsigned BitWidth = Ty->getIntegerBitWidth(); local
[all...]
H A DInstCombineCalls.cpp320 uint32_t BitWidth = IT->getBitWidth(); local
321 APInt KnownZero(BitWidth, 0);
322 APInt KnownOne(BitWidth, 0);
325 APInt Mask(APInt::getLowBitsSet(BitWidth, TrailingZeros));
328 APInt(BitWidth, TrailingZeros)));
338 uint32_t BitWidth = IT->getBitWidth(); local
339 APInt KnownZero(BitWidth, 0);
340 APInt KnownOne(BitWidth, 0);
343 APInt Mask(APInt::getHighBitsSet(BitWidth, LeadingZeros));
346 APInt(BitWidth, LeadingZero
353 uint32_t BitWidth = IT->getBitWidth(); local
446 unsigned BitWidth = cast<IntegerType>(LHS->getType())->getBitWidth(); local
[all...]
H A DInstCombineCasts.cpp371 uint32_t BitWidth = Ty->getScalarSizeInBits(); local
372 if (BitWidth < OrigBitWidth) {
373 APInt Mask = APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth);
386 uint32_t BitWidth = Ty->getScalarSizeInBits(); local
387 if (CI->getLimitedValue(BitWidth) < BitWidth)
397 uint32_t BitWidth = Ty->getScalarSizeInBits(); local
399 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) &&
400 CI->getLimitedValue(BitWidth) < BitWidth) {
551 uint32_t BitWidth = Op1C->getType()->getBitWidth(); local
595 uint32_t BitWidth = ITy->getBitWidth(); local
917 unsigned BitWidth = Op1C->getType()->getBitWidth(); local
[all...]
/freebsd-10.0-release/sys/contrib/dev/acpica/components/hardware/
H A Dhwregs.c78 * MaxBitWidth - Max BitWidth supported (32 or 64)
85 * pointer, Address, SpaceId, BitWidth, and BitOffset.
124 /* Validate the BitWidth */
126 if ((Reg->BitWidth != 8) &&
127 (Reg->BitWidth != 16) &&
128 (Reg->BitWidth != 32) &&
129 (Reg->BitWidth != MaxBitWidth))
132 "Unsupported register bit width: 0x%X", Reg->BitWidth));
162 * BitWidth must be exactly 8, 16, or 32.
201 Address, &Value64, Reg->BitWidth);
[all...]
H A Dhwvalid.c57 UINT32 BitWidth);
120 * BitWidth Number of bits (8,16,32)
134 UINT32 BitWidth)
147 if ((BitWidth != 8) &&
148 (BitWidth != 16) &&
149 (BitWidth != 32))
152 "Bad BitWidth parameter: %8.8X", BitWidth));
157 ByteWidth = ACPI_DIV_8 (BitWidth);
132 AcpiHwValidateIoRequest( ACPI_IO_ADDRESS Address, UINT32 BitWidth) argument
H A Dhwxface.c95 AcpiGbl_FADT.ResetValue, ResetReg->BitWidth);
122 * BitWidth must be exactly 8, 16, 32, or 64.
164 Address, ReturnValue, Reg->BitWidth);
175 Width = Reg->BitWidth;
188 if (Reg->BitWidth == 64)
207 ACPI_FORMAT_UINT64 (*ReturnValue), Reg->BitWidth,
258 Address, Value, Reg->BitWidth);
266 Width = Reg->BitWidth;
279 if (Reg->BitWidth == 64)
292 ACPI_FORMAT_UINT64 (Value), Reg->BitWidth,
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Analysis/
H A DValueTracking.cpp40 if (unsigned BitWidth = Ty->getScalarSizeInBits())
41 return BitWidth;
56 unsigned BitWidth = KnownZero.getBitWidth(); local
58 // NLZ can't be BitWidth with no sign bit
59 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1);
68 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2);
74 unsigned BitWidth = KnownZero.getBitWidth(); local
80 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0);
94 APInt Mask = APInt::getLowBitsSet(BitWidth, LHSKnownZeroOu
136 unsigned BitWidth = KnownZero.getBitWidth(); local
195 unsigned BitWidth = KnownZero.getBitWidth(); local
232 unsigned BitWidth = KnownZero.getBitWidth(); local
794 unsigned BitWidth = getBitWidth(V->getType(), TD); local
963 unsigned BitWidth = getBitWidth(V->getType()->getScalarType(), TD); local
1679 unsigned BitWidth = TD ? TD->getPointerSizeInBits() : 64; local
1954 unsigned BitWidth = getBitWidth(Op->getType(), TD); local
[all...]
H A DScalarEvolutionAliasAnalysis.cpp128 unsigned BitWidth = SE->getTypeSizeInBits(AS->getType()); local
129 APInt ASizeInt(BitWidth, LocA.Size);
130 APInt BSizeInt(BitWidth, LocB.Size);
/freebsd-10.0-release/contrib/llvm/utils/TableGen/
H A DTGValueTypes.cpp44 unsigned BitWidth; member in class:ExtendedIntegerType
47 : Type(TK_ExtendedIntegerType), BitWidth(bits) {}
55 return BitWidth;
H A DFixedLenDecoderEmitter.cpp101 unsigned Indentation, unsigned BitWidth,
332 unsigned BitWidth; member in class:__anon3671::FilterChooser
342 BestIndex(FC.BestIndex), BitWidth(FC.BitWidth),
351 Parent(NULL), BestIndex(-1), BitWidth(BW), Emitter(E) {
352 for (unsigned i = 0; i < BitWidth; ++i)
365 Parent(&parent), BestIndex(-1), BitWidth(parent.BitWidth),
370 unsigned getBitWidth() const { return BitWidth; }
385 for (unsigned i = 0; i < BitWidth;
721 emitTable(formatted_raw_ostream &OS, DecoderTable &Table, unsigned Indentation, unsigned BitWidth, StringRef Namespace) const argument
727 << BitWidth << "[] = {\\n"; local
[all...]
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp42 if (MinBits <= BitWidth)
/freebsd-10.0-release/contrib/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp289 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local
290 if (BitWidth == 1)
291 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)());
292 else if (BitWidth <= 8)
293 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)());
294 else if (BitWidth <= 16)
295 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)());
296 else if (BitWidth <= 32)
297 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)());
298 else if (BitWidth <
[all...]
/freebsd-10.0-release/sys/contrib/dev/acpica/components/tables/
H A Dtbfadt.c214 UINT8 BitWidth; local
219 BitWidth = (UINT8) (ByteWidth * 8);
228 BitWidth = 255;
240 GenericAddress->BitWidth = BitWidth;
599 (Address64->BitWidth != ACPI_MUL_8 (Length)))
603 Name, ACPI_MUL_8 (Length), Address64->BitWidth));
680 (FadtInfoTable[i].DefaultLength != Target64->BitWidth))
684 FadtInfoTable[i].Name, Target64->BitWidth,
689 Target64->BitWidth
[all...]
/freebsd-10.0-release/usr.sbin/acpi/acpidb/
H A Dacpidb.c277 UINT32 BitWidth,
292 for (i = 0; (i * 8) < BitWidth; i++) {
303 space_names[SpaceID], BitWidth,
309 Address, BitWidth, Value, 0));
318 space_names[SpaceID], BitWidth,
323 for (i = 0; (i * 8) < BitWidth; i++) {
342 UINT32 BitWidth, \
346 BitWidth, Value, aml_debug_prompt)); \
273 aml_vm_space_handler( UINT32 SpaceID, UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, int Prompt) argument
/freebsd-10.0-release/contrib/llvm/include/llvm/CodeGen/
H A DValueTypes.h442 static MVT getFloatingPointVT(unsigned BitWidth) { argument
443 switch (BitWidth) {
459 static MVT getIntegerVT(unsigned BitWidth) { argument
460 switch (BitWidth) {
574 static EVT getFloatingPointVT(unsigned BitWidth) { argument
575 return MVT::getFloatingPointVT(BitWidth);
580 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { argument
581 MVT M = MVT::getIntegerVT(BitWidth);
584 return getExtendedIntegerVT(Context, BitWidth);
603 unsigned BitWidth local
775 unsigned BitWidth = getSizeInBits(); local
[all...]
/freebsd-10.0-release/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp245 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { argument
253 if (BitWidth > LOI->KnownZero.getBitWidth()) {
255 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth);
256 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth);
278 unsigned BitWidth = IntVT.getSizeInBits(); local
289 APInt Zero(BitWidth, 0);
296 APInt Val = CI->getValue().zextOrTrunc(BitWidth);
308 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth);
316 assert(DestLOI.KnownZero.getBitWidth() == BitWidth &&
317 DestLOI.KnownOne.getBitWidth() == BitWidth
[all...]
H A DTargetLowering.cpp303 unsigned BitWidth,
319 unsigned DemandedSize = BitWidth - Demanded.countLeadingZeros();
323 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) {
355 unsigned BitWidth = DemandedMask.getBitWidth(); local
356 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth &&
362 KnownZero = KnownOne = APInt(BitWidth, 0);
374 NewMask = APInt::getAllOnesValue(BitWidth);
431 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl))
465 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl))
490 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMas
302 ShrinkDemandedOp(SDValue Op, unsigned BitWidth, const APInt &Demanded, DebugLoc dl) argument
1057 unsigned BitWidth = OpVT.getScalarType().getSizeInBits(); local
1333 unsigned BitWidth = N0.getValueSizeInBits(); local
[all...]
/freebsd-10.0-release/sys/contrib/dev/acpica/include/
H A Dacinterp.h657 UINT32 BitWidth,
666 UINT32 BitWidth,
675 UINT32 BitWidth,
684 UINT32 BitWidth,
693 UINT32 BitWidth,
702 UINT32 BitWidth,
711 UINT32 BitWidth,
721 UINT32 BitWidth,
/freebsd-10.0-release/contrib/llvm/lib/ExecutionEngine/JIT/
H A DJIT.cpp458 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local
459 if (BitWidth == 1)
460 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)());
461 else if (BitWidth <= 8)
462 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)());
463 else if (BitWidth <= 16)
464 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)());
465 else if (BitWidth <= 32)
466 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)());
467 else if (BitWidth <
[all...]

Completed in 306 milliseconds

12345