Home
last modified time | relevance | path

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

12345678

/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DKnownBits.h37 KnownBits(unsigned BitWidth) : Zero(BitWidth, 0), One(BitWidth, 0) {} in KnownBits()
151 return KnownBits(Zero.trunc(BitWidth), One.trunc(BitWidth)); in trunc()
157 return KnownBits(Zero.zext(BitWidth), One.zext(BitWidth)); in anyext()
170 return KnownBits(Zero.sext(BitWidth), One.sext(BitWidth)); in sext()
176 if (BitWidth > getBitWidth()) in anyextOrTrunc()
177 return anyext(BitWidth); in anyextOrTrunc()
179 return trunc(BitWidth); in anyextOrTrunc()
187 return zext(BitWidth); in zextOrTrunc()
189 return trunc(BitWidth); in zextOrTrunc()
197 return sext(BitWidth); in sextOrTrunc()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Support/
H A DKnownBits.cpp93 if (SrcBitWidth == BitWidth) in sextInReg()
169 KnownBits Known(BitWidth); in shl()
223 KnownBits Known(BitWidth); in lshr()
276 KnownBits Known(BitWidth); in ashr()
423 BitWidth) - in mul()
424 BitWidth; in mul()
488 KnownBits Res(BitWidth); in mul()
501 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhs()
510 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhu()
516 KnownBits Known(BitWidth); in udiv()
[all …]
H A DAPInt.cpp194 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 -=()
231 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator *()
256 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator *=()
549 Arg.BitWidth, in hash_value()
684 if (Result.BitWidth != BitWidth) { in byteSwap()
685 Result.lshrInPlace(Result.BitWidth - BitWidth); in byteSwap()
686 Result.BitWidth = BitWidth; in byteSwap()
1191 APInt t[2] = { APInt(BitWidth, 0), APInt(BitWidth, 1) }; in multiplicativeInverse()
1788 unsigned BitWidth = LHS.BitWidth; in udivrem() local
[all …]
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DAPInt.h322 APInt(const APInt &that) : BitWidth(that.BitWidth) {
330 APInt(APInt &&that) : BitWidth(that.BitWidth) {
758 BitWidth = RHS.BitWidth;
781 BitWidth = that.BitWidth;
811 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same");
841 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same");
870 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same");
1342 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same");
1511 return setBits(BitWidth - hiBits, BitWidth);
1537 APInt Keep = getHighBitsSet(BitWidth, BitWidth - loBits);
[all …]
/netbsd/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()
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;
100 return std::tie(BitWidth, IsUnsigned) <
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DDemandedBits.cpp90 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits() local
105 Known = KnownBits(BitWidth); in determineLiveOperandBits()
109 Known2 = KnownBits(BitWidth); in determineLiveOperandBits()
147 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits()
157 if (isPowerOf2_32(BitWidth)) in determineLiveOperandBits()
158 AB = BitWidth - 1; in determineLiveOperandBits()
164 ShiftAmt = BitWidth - ShiftAmt; in determineLiveOperandBits()
288 AB = AOut.zext(BitWidth); in determineLiveOperandBits()
291 AB = AOut.trunc(BitWidth); in determineLiveOperandBits()
294 AB = AOut.trunc(BitWidth); in determineLiveOperandBits()
[all …]
/netbsd/sys/external/bsd/acpica/dist/executer/
H A Dexregion.c75 UINT32 BitWidth, in AcpiExSystemMemorySpaceHandler() argument
97 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
122 BitWidth)); in AcpiExSystemMemorySpaceHandler()
268 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
300 switch (BitWidth) in AcpiExSystemMemorySpaceHandler()
362 UINT32 BitWidth, in AcpiExSystemIoSpaceHandler() argument
385 &Value32, BitWidth); in AcpiExSystemIoSpaceHandler()
427 UINT32 BitWidth, in AcpiExPciConfigSpaceHandler() argument
508 UINT32 BitWidth, in AcpiExCmosSpaceHandler() argument
545 UINT32 BitWidth, in AcpiExPciBarSpaceHandler() argument
[all …]
/netbsd/sys/external/bsd/acpica/dist/hardware/
H A Dhwregs.c184 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
290 BitWidth = Reg->BitOffset + Reg->BitWidth; in AcpiHwRead()
298 while (BitWidth) in AcpiHwRead()
329 BitWidth -= BitWidth > AccessWidth ? AccessWidth : BitWidth; in AcpiHwRead()
384 BitWidth = Reg->BitOffset + Reg->BitWidth; in AcpiHwWrite()
392 while (BitWidth) in AcpiHwWrite()
[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/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()
186 if (BitWidth == 64) in AeRegionHandler()
247 Length, BitWidth, Buffer[1]); in AeRegionHandler()
294 Length, BitWidth, Buffer[1]); in AeRegionHandler()
346 (UINT32) Address, BitWidth); in AeRegionHandler()
540 ByteWidth = (BitWidth / 8); in AeRegionHandler()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp57 KnownBits Known(BitWidth); in SimplifyDemandedInstructionBits()
148 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits()
497 APInt DemandedFromOps(APInt::getLowBitsSet(BitWidth, BitWidth-NLZ)); in SimplifyDemandedUseBits()
577 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedUseBits()
654 BitWidth, std::min(SignBits + ShiftAmt - 1, BitWidth))); in SimplifyDemandedUseBits()
686 APInt::getHighBitsSet(BitWidth, BitWidth - RHSTrailingZeros); in SimplifyDemandedUseBits()
745 KnownBits Known2(BitWidth); in SimplifyDemandedUseBits()
865 KnownBits LHSKnown(BitWidth); in SimplifyMultipleUseDemandedBits()
866 KnownBits RHSKnown(BitWidth); in SimplifyMultipleUseDemandedBits()
967 BitWidth, BitWidth - ShiftRC->getZExtValue()))) { in SimplifyMultipleUseDemandedBits()
[all …]
H A DInstCombineShifts.cpp927 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()
982 if (AmtSum < BitWidth) in visitShl()
1056 if (II && isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt && in visitLShr()
1083 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr()
1097 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr()
1102 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmt)); in visitLShr()
[all …]
/netbsd/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/sys/external/bsd/acpica/dist/tables/
H A Dtbfadt.c218 UINT8 BitWidth; in AcpiTbInitGenericAddress() local
225 BitWidth = (UINT8) (ByteWidth * 8); in AcpiTbInitGenericAddress()
241 BitWidth = 255; in AcpiTbInitGenericAddress()
253 GenericAddress->BitWidth = BitWidth; in AcpiTbInitGenericAddress()
638 (Address64->BitWidth != ACPI_MUL_8 (Length))) in AcpiTbConvertFadt()
642 Name, ACPI_MUL_8 (Length), Address64->BitWidth)); in AcpiTbConvertFadt()
740 (FadtInfoTable[i].DefaultLength != Target64->BitWidth)) in AcpiTbSetupFadtRegisters()
744 FadtInfoTable[i].Name, Target64->BitWidth, in AcpiTbSetupFadtRegisters()
749 Target64->BitWidth = FadtInfoTable[i].DefaultLength; in AcpiTbSetupFadtRegisters()
760 ACPI_DIV_16 (AcpiGbl_FADT.XPm1aEventBlock.BitWidth); in AcpiTbSetupFadtRegisters()
/netbsd/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/external/apache2/llvm/dist/clang/lib/Basic/
H A DTargetInfo.cpp251 if (getCharWidth() == BitWidth) in getIntTypeByWidth()
253 if (getShortWidth() == BitWidth) in getIntTypeByWidth()
255 if (getIntWidth() == BitWidth) in getIntTypeByWidth()
257 if (getLongWidth() == BitWidth) in getIntTypeByWidth()
266 if (getCharWidth() >= BitWidth) in getLeastIntTypeByWidth()
268 if (getShortWidth() >= BitWidth) in getLeastIntTypeByWidth()
270 if (getIntWidth() >= BitWidth) in getLeastIntTypeByWidth()
272 if (getLongWidth() >= BitWidth) in getLeastIntTypeByWidth()
281 if (getFloatWidth() == BitWidth) in getRealTypeByWidth()
283 if (getDoubleWidth() == BitWidth) in getRealTypeByWidth()
[all …]
/netbsd/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/external/apache2/llvm/dist/llvm/utils/TableGen/
H A DCodeEmitterGen.cpp60 unsigned BitWidth; member in __anond1d1b30b0111::CodeEmitterGen
377 APInt Value(BitWidth, 0); 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()
480 << " if (Inst.getBitWidth() != " << BitWidth << ")\n" in run()
481 << " Inst = Inst.zext(" << BitWidth << ");\n" in run()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DSIRegisterInfo.cpp1867 if (BitWidth <= 64) in getAnyVGPRClassForBitWidth()
1869 if (BitWidth <= 96) in getAnyVGPRClassForBitWidth()
1889 if (BitWidth <= 64) in getAlignedVGPRClassForBitWidth()
1891 if (BitWidth <= 96) in getAlignedVGPRClassForBitWidth()
1911 if (BitWidth == 1) in getVGPRClassForBitWidth()
1913 if (BitWidth <= 16) in getVGPRClassForBitWidth()
1915 if (BitWidth <= 32) in getVGPRClassForBitWidth()
1923 if (BitWidth <= 64) in getAnyAGPRClassForBitWidth()
1925 if (BitWidth <= 96) in getAnyAGPRClassForBitWidth()
1945 if (BitWidth <= 64) in getAlignedAGPRClassForBitWidth()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp76 unsigned BitWidth = Ty.getScalarSizeInBits(); in signBitIsZero() local
132 unsigned BitWidth = DstTy.getScalarSizeInBits(); in computeKnownBitsImpl() local
186 Known.One = APInt::getAllOnesValue(BitWidth); in computeKnownBitsImpl()
187 Known.Zero = APInt::getAllOnesValue(BitWidth); in computeKnownBitsImpl()
226 Known = KnownBits(BitWidth); in computeKnownBitsImpl()
358 BitWidth > 1) in computeKnownBitsImpl()
367 Known = Known.sext(BitWidth); in computeKnownBitsImpl()
380 Known = Known.anyext(BitWidth); in computeKnownBitsImpl()
449 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsImpl()
450 if (BitWidth > SrcBitWidth) in computeKnownBitsImpl()
[all …]
/netbsd/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/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/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/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp425 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()
497 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo()
[all …]

12345678