Home
last modified time | relevance | path

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

12345678

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DKnownBits.h37 KnownBits(unsigned BitWidth) : Zero(BitWidth, 0), One(BitWidth, 0) {} in KnownBits()
150 KnownBits trunc(unsigned BitWidth) const { in trunc()
151 return KnownBits(Zero.trunc(BitWidth), One.trunc(BitWidth)); in trunc()
156 KnownBits anyext(unsigned BitWidth) const { in anyext()
157 return KnownBits(Zero.zext(BitWidth), One.zext(BitWidth)); in anyext()
161 KnownBits zext(unsigned BitWidth) const { in zext()
163 APInt NewZero = Zero.zext(BitWidth); in zext()
165 return KnownBits(NewZero, One.zext(BitWidth)); in zext()
169 KnownBits sext(unsigned BitWidth) const { in sext()
170 return KnownBits(Zero.sext(BitWidth), One.sext(BitWidth)); in sext()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DKnownBits.cpp89 unsigned BitWidth = getBitWidth(); in sextInReg() local
90 assert(0 < SrcBitWidth && SrcBitWidth <= BitWidth && in sextInReg()
93 if (SrcBitWidth == BitWidth) in sextInReg()
96 unsigned ExtBits = BitWidth - SrcBitWidth; in sextInReg()
168 unsigned BitWidth = LHS.getBitWidth(); in shl() local
169 KnownBits Known(BitWidth); in shl()
172 if (RHS.isConstant() && RHS.getConstant().ult(BitWidth)) { in shl()
187 if (MinShiftAmount.ult(BitWidth)) { in shl()
189 MinTrailingZeros = std::min(MinTrailingZeros, BitWidth); in shl()
195 if (MaxShiftAmount.ult(BitWidth) && !LHS.isUnknown()) { in shl()
[all …]
H A DAPInt.cpp92 assert(BitWidth && "Bitwidth too small"); in initFromArray()
109 : BitWidth(numBits) { in APInt()
114 : BitWidth(numBits) { in APInt()
119 : BitWidth(numbits) { in APInt()
120 assert(BitWidth && "Bitwidth too small"); in APInt()
127 BitWidth = NewBitWidth; in reallocate()
136 BitWidth = NewBitWidth; in reallocate()
160 ID.AddInteger(BitWidth); in Profile()
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 -=()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DAPInt.h98 unsigned BitWidth; ///< The number of bits in this APInt. variable
108 APInt(uint64_t *val, unsigned bits) : BitWidth(bits) {
115 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; }
150 unsigned WordBits = ((BitWidth-1) % APINT_BITS_PER_WORD) + 1;
279 : BitWidth(numBits) {
280 assert(BitWidth && "bitwidth too small");
322 APInt(const APInt &that) : BitWidth(that.BitWidth) {
330 APInt(APInt &&that) : BitWidth(that.BitWidth) {
332 that.BitWidth = 0;
346 explicit APInt() : BitWidth(1) { U.VAL = 0; }
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAPSIntType.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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DDemandedBits.cpp90 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits() local
99 [&](unsigned BitWidth, const Value *V1, const Value *V2) { in determineLiveOperandBits() argument
105 Known = KnownBits(BitWidth); in determineLiveOperandBits()
109 Known2 = KnownBits(BitWidth); in determineLiveOperandBits()
136 ComputeKnownBits(BitWidth, Val, nullptr); in determineLiveOperandBits()
137 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits()
138 std::min(BitWidth, Known.countMaxLeadingZeros()+1)); in determineLiveOperandBits()
146 ComputeKnownBits(BitWidth, Val, nullptr); in determineLiveOperandBits()
147 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits()
148 std::min(BitWidth, Known.countMaxTrailingZeros()+1)); in determineLiveOperandBits()
[all …]
/netbsd-src/sys/external/bsd/acpica/dist/executer/
H A Dexregion.c59 * BitWidth - Field width in bits (8, 16, or 32)
75 UINT32 BitWidth, in AcpiExSystemMemorySpaceHandler() argument
96 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
121 BitWidth)); in AcpiExSystemMemorySpaceHandler()
234 BitWidth, Function, ACPI_FORMAT_UINT64 (Address))); in AcpiExSystemMemorySpaceHandler()
249 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
273 /* BitWidth was already validated */ in AcpiExSystemMemorySpaceHandler()
281 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
305 /* BitWidth was already validated */ in AcpiExSystemMemorySpaceHandler()
327 * BitWidth in AcpiExSystemMemorySpaceHandler()
362 AcpiExSystemIoSpaceHandler(UINT32 Function,ACPI_PHYSICAL_ADDRESS Address,UINT32 BitWidth,UINT64 * Value,void * HandlerContext,void * RegionContext) AcpiExSystemIoSpaceHandler() argument
427 AcpiExPciConfigSpaceHandler(UINT32 Function,ACPI_PHYSICAL_ADDRESS Address,UINT32 BitWidth,UINT64 * Value,void * HandlerContext,void * RegionContext) AcpiExPciConfigSpaceHandler() argument
508 AcpiExCmosSpaceHandler(UINT32 Function,ACPI_PHYSICAL_ADDRESS Address,UINT32 BitWidth,UINT64 * Value,void * HandlerContext,void * RegionContext) AcpiExCmosSpaceHandler() argument
545 AcpiExPciBarSpaceHandler(UINT32 Function,ACPI_PHYSICAL_ADDRESS Address,UINT32 BitWidth,UINT64 * Value,void * HandlerContext,void * RegionContext) AcpiExPciBarSpaceHandler() argument
582 AcpiExDataTableSpaceHandler(UINT32 Function,ACPI_PHYSICAL_ADDRESS Address,UINT32 BitWidth,UINT64 * Value,void * HandlerContext,void * RegionContext) AcpiExDataTableSpaceHandler() argument
[all...]
/netbsd-src/sys/external/bsd/acpica/dist/hardware/
H A Dhwregs.c115 if (!Reg->BitOffset && Reg->BitWidth && in AcpiHwGetAccessBitWidth()
116 ACPI_IS_POWER_OF_TWO (Reg->BitWidth) && in AcpiHwGetAccessBitWidth()
117 ACPI_IS_ALIGNED (Reg->BitWidth, 8)) in AcpiHwGetAccessBitWidth()
119 AccessBitWidth = Reg->BitWidth; in AcpiHwGetAccessBitWidth()
128 Reg->BitOffset + Reg->BitWidth); in AcpiHwGetAccessBitWidth()
184 UINT8 BitWidth; in AcpiHwValidateRegister() local
228 BitWidth = ACPI_ROUND_UP (Reg->BitOffset + Reg->BitWidth, AccessWidth); in AcpiHwValidateRegister()
229 if (MaxBitWidth < BitWidth) in AcpiHwValidateRegister()
233 MaxBitWidth, BitWidth)); in AcpiHwValidateRegister()
265 UINT32 BitWidth; in AcpiHwRead() local
[all …]
H A Dhwvalid.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()
/netbsd-src/sys/external/bsd/acpica/dist/tools/acpiexec/
H A Daeregion.c70 UINT32 BitWidth, in AeRegionHandler() argument
135 (UINT32) Address, BitWidth, (UINT32) Length)); in AeRegionHandler()
145 ByteWidth = (BitWidth / 8); in AeRegionHandler()
147 if (BitWidth % 8) in AeRegionHandler()
165 if (BitWidth == 64) in AeRegionHandler()
178 Status = AcpiHwReadPort (Address, &Value1, BitWidth); in AeRegionHandler()
186 if (BitWidth == 64) in AeRegionHandler()
197 Status = AcpiHwWritePort (Address, (UINT32) *Value, BitWidth); in AeRegionHandler()
247 Length, BitWidth, Buffer[1]); in AeRegionHandler()
294 Length, BitWidth, Buffer[1]); in AeRegionHandler()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp56 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); in SimplifyDemandedInstructionBits() local
57 KnownBits Known(BitWidth); in SimplifyDemandedInstructionBits()
58 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits()
114 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits() local
117 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits()
118 Known.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
148 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits()
397 Known = InputKnown.zextOrTrunc(BitWidth); in SimplifyDemandedUseBits()
449 Known = InputKnown.sext(BitWidth); in SimplifyDemandedUseBits()
497 APInt DemandedFromOps(APInt::getLowBitsSet(BitWidth, BitWidth-NLZ)); in SimplifyDemandedUseBits()
[all …]
H A DInstCombineShifts.cpp909 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitShl() local
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()
979 if (match(Op0, m_Shl(m_Value(X), m_APInt(ShOp1))) && ShOp1->ult(BitWidth)) { in visitShl()
982 if (AmtSum < BitWidth) in visitShl()
989 MaskedValueIsZero(Op0, APInt::getHighBitsSet(BitWidth, ShAmt), 0, &I)) { in visitShl()
1031 match(Op1, m_Sub(m_SpecificInt(BitWidth - 1), m_Value(X)))) in visitShl()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstantRange.h62 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 …]
/netbsd-src/sys/external/bsd/acpica/dist/tables/
H A Dtbfadt.c218 UINT8 BitWidth; in AcpiTbInitGenericAddress() local
223 * Check for BitWidth overflow in GAS. in AcpiTbInitGenericAddress()
225 BitWidth = (UINT8) (ByteWidth * 8); in AcpiTbInitGenericAddress()
229 * No error for GPE blocks, because we do not use the BitWidth in AcpiTbInitGenericAddress()
241 BitWidth = 255; in AcpiTbInitGenericAddress()
253 GenericAddress->BitWidth = BitWidth; in AcpiTbInitGenericAddress()
633 (Address64->BitWidth != ACPI_MUL_8 (Length))) in AcpiTbConvertFadt()
637 Name, ACPI_MUL_8 (Length), Address64->BitWidth)); in AcpiTbConvertFadt()
647 * AccessSize/BitWidth/BitOffse in AcpiTbConvertFadt()
[all...]
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DPatternInit.cpp37 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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Basic/
H A DTargetInfo.cpp250 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() argument
251 if (getCharWidth() == BitWidth) in getIntTypeByWidth()
253 if (getShortWidth() == BitWidth) in getIntTypeByWidth()
255 if (getIntWidth() == BitWidth) in getIntTypeByWidth()
257 if (getLongWidth() == BitWidth) in getIntTypeByWidth()
259 if (getLongLongWidth() == BitWidth) in getIntTypeByWidth()
264 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth() argument
266 if (getCharWidth() >= BitWidth) in getLeastIntTypeByWidth()
268 if (getShortWidth() >= BitWidth) in getLeastIntTypeByWidth()
270 if (getIntWidth() >= BitWidth) in getLeastIntTypeByWidth()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Basic/Targets/
H A DAVR.h156 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 DWebAssembly.h114 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()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/
H A DCodeEmitterGen.cpp60 unsigned BitWidth; member in __anonb683e2b50111::CodeEmitterGen
362 o << " "; emitInstBits(o, APInt(BitWidth, 0)); o << ",\n"; in emitInstructionBaseValues()
377 APInt Value(BitWidth, 0); in emitInstructionBaseValues()
380 Value |= APInt(BitWidth, (uint64_t)B->getValue()) << (e - i - 1); 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()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DSIRegisterInfo.cpp1866 getAnyVGPRClassForBitWidth(unsigned BitWidth) { in getAnyVGPRClassForBitWidth() argument
1867 if (BitWidth <= 64) in getAnyVGPRClassForBitWidth()
1869 if (BitWidth <= 96) in getAnyVGPRClassForBitWidth()
1871 if (BitWidth <= 128) in getAnyVGPRClassForBitWidth()
1873 if (BitWidth <= 160) in getAnyVGPRClassForBitWidth()
1875 if (BitWidth <= 192) in getAnyVGPRClassForBitWidth()
1877 if (BitWidth <= 256) in getAnyVGPRClassForBitWidth()
1879 if (BitWidth <= 512) in getAnyVGPRClassForBitWidth()
1881 if (BitWidth <= 1024) in getAnyVGPRClassForBitWidth()
1888 getAlignedVGPRClassForBitWidth(unsigned BitWidth) { in getAlignedVGPRClassForBitWidth() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp76 unsigned BitWidth = Ty.getScalarSizeInBits(); in signBitIsZero() local
77 return maskedValueIsZero(R, APInt::getSignMask(BitWidth)); in signBitIsZero()
132 unsigned BitWidth = DstTy.getScalarSizeInBits(); in computeKnownBitsImpl() local
138 assert(Known.getBitWidth() == BitWidth && "Cache entry size doesn't match"); in computeKnownBitsImpl()
141 Known = KnownBits(BitWidth); // Don't know anything in computeKnownBitsImpl()
186 Known.One = APInt::getAllOnesValue(BitWidth); in computeKnownBitsImpl()
187 Known.Zero = APInt::getAllOnesValue(BitWidth); in computeKnownBitsImpl()
201 ComputeKnownBitsCache[R] = KnownBits(BitWidth); in computeKnownBitsImpl()
226 Known = KnownBits(BitWidth); in computeKnownBitsImpl()
358 BitWidth > 1) in computeKnownBitsImpl()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DOperator.cpp147 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.try_emplace(V, BitWidth, 0); in collectOffset()
197 APInt(BitWidth, DL.getTypeAllocSize(GTI.getIndexedType())); in collectOffset()
/netbsd-src/sys/dev/acpi/
H A Dacpi_wdrt.c147 wdrt->ControlRegister.BitWidth); in acpi_wdrt_match()
345 val, sc->sc_control_reg.BitWidth); in acpi_wdrt_read_control()
349 __func__, sc->sc_control_reg.Address, sc->sc_control_reg.BitWidth, in acpi_wdrt_read_control()
363 val, sc->sc_control_reg.BitWidth); in acpi_wdrt_write_control()
367 __func__, sc->sc_control_reg.Address, sc->sc_control_reg.BitWidth, in acpi_wdrt_write_control()
382 val, sc->sc_count_reg.BitWidth);
386 __func__, sc->sc_count_reg.Address, sc->sc_count_reg.BitWidth,
401 val, sc->sc_count_reg.BitWidth); in acpi_wdrt_write_count()
405 __func__, sc->sc_count_reg.Address, sc->sc_count_reg.BitWidth, in acpi_wdrt_write_count()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DValueTypes.h59 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()
375 unsigned BitWidth = getSizeInBits(); in getRoundIntegerType() local
376 if (BitWidth <= 8) in getRoundIntegerType()
378 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth)); in getRoundIntegerType()
481 static EVT getExtendedIntegerVT(LLVMContext &C, unsigned BitWidth);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp417 FunctionLoweringInfo::GetLiveOutRegInfo(Register Reg, unsigned BitWidth) { in GetLiveOutRegInfo() argument
425 if (BitWidth > LOI->Known.getBitWidth()) { in GetLiveOutRegInfo()
427 LOI->Known = LOI->Known.anyext(BitWidth); in GetLiveOutRegInfo()
449 unsigned BitWidth = IntVT.getSizeInBits(); in ComputePHILiveOutRegInfo() local
460 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
465 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo()
476 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); in ComputePHILiveOutRegInfo()
484 assert(DestLOI.Known.Zero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
485 DestLOI.Known.One.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
492 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
[all …]

12345678