Home
last modified time | relevance | path

Searched refs:NumBits (Results 1 – 25 of 96) sorted by relevance

1234

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Bitstream/
H A DBitstreamReader.h188 assert(NumBits && NumBits <= BitsInWord && in Read()
194 if (BitsInCurWord >= NumBits) { in Read()
198 CurWord >>= (NumBits & Mask); in Read()
200 BitsInCurWord -= NumBits; in Read()
223 R |= R2 << (NumBits - BitsLeft); in Read()
234 assert(NumBits <= 32 && NumBits >= 1 && "Invalid NumBits value"); in ReadVBR()
249 NextBit += NumBits-1; in ReadVBR()
254 MaybeRead = Read(NumBits); in ReadVBR()
268 assert(NumBits <= 32 && NumBits >= 1 && "Invalid NumBits value"); in ReadVBR64()
283 NextBit += NumBits-1; in ReadVBR64()
[all …]
H A DBitstreamWriter.h210 assert(NumBits && NumBits <= 32 && "Invalid value size!"); in Emit()
213 if (CurBit + NumBits < 32) { in Emit()
214 CurBit += NumBits; in Emit()
225 CurBit = (CurBit+NumBits) & 31; in Emit()
242 Emit((Val & ((1U << (NumBits - 1)) - 1)) | (1U << (NumBits - 1)), in EmitVBR()
243 NumBits); in EmitVBR()
244 Val >>= NumBits-1; in EmitVBR()
247 Emit(Val, NumBits); in EmitVBR()
261 NumBits); in EmitVBR64()
262 Val >>= NumBits-1; in EmitVBR64()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/TextAPI/
H A DArchitecture.cpp24 #define ARCHINFO(Arch, Type, Subtype, NumBits) \ in getArchitectureFromCpuType() argument
36 #define ARCHINFO(Arch, Type, Subtype, NumBits) .Case(#Arch, AK_##Arch) in getArchitectureFromName() argument
44 #define ARCHINFO(Arch, Type, Subtype, NumBits) \ in getArchitectureName() argument
60 #define ARCHINFO(Arch, Type, Subtype, NumBits) \ in getCPUTypeFromArchitecture() argument
80 #define ARCHINFO(Arch, Type, Subtype, NumBits) \ in is64Bit() argument
82 return NumBits == 64; in is64Bit()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DAPSInt.cpp25 unsigned NumBits = ((Str.size() * 64) / 19) + 2; in APSInt() local
26 APInt Tmp(NumBits, Str, /*radix=*/10); in APSInt()
29 if (MinBits < NumBits) in APSInt()
35 if (ActiveBits < NumBits) in APSInt()
/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DVarLenCodeEmitterGen.cpp128 : TheDef(TheDef), NumBits(0U), HasDynamicSegment(false) { in VarLenInst()
131 NumBits += S.BitWidth; in VarLenInst()
170 const Init *OperandName = DI->getArg(0), *NumBits = DI->getArg(1); in buildRec() local
171 if (!isa<StringInit>(OperandName) || !isa<IntInit>(NumBits)) in buildRec()
174 auto NumBitsVal = cast<IntInit>(NumBits)->getValue(); in buildRec()
200 unsigned NumBits = 0U; in buildRec() local
203 NumBits = static_cast<unsigned>(LoBitVal - HiBitVal + 1); in buildRec()
205 NumBits = static_cast<unsigned>(HiBitVal - LoBitVal + 1); in buildRec()
214 Segments.push_back({NumBits, in buildRec()
462 unsigned NumBits = ES.BitWidth; in getInstructionCaseForEncoding() local
[all …]
H A DVarLenCodeEmitterGen.h30 size_t NumBits; variable
40 VarLenInst() : TheDef(nullptr), NumBits(0U), HasDynamicSegment(false) {} in VarLenInst()
45 size_t size() const { return NumBits; } in size()
H A DAsmWriterEmitter.cpp372 unsigned NumBits = Log2_32_Ceil(UniqueOperandCommands.size()); in EmitGetMnemonic() local
375 if (NumBits > BitsLeft) { in EmitGetMnemonic()
376 LLVM_DEBUG(errs() << "Not enough bits to densely encode " << NumBits in EmitGetMnemonic()
397 BitsLeft -= NumBits; in EmitGetMnemonic()
496 unsigned NumBits = Log2_32_Ceil(Commands.size()); in EmitPrintInstruction() local
497 assert(NumBits <= BitsLeft && "consistency error"); in EmitPrintInstruction()
500 O << "\n // Fragment " << i << " encoded into " << NumBits in EmitPrintInstruction()
507 << ((1 << NumBits)-1) << ") {\n" in EmitPrintInstruction()
518 << ((1 << NumBits)-1) << ") {\n" in EmitPrintInstruction()
529 BitsLeft -= NumBits; in EmitPrintInstruction()
H A DDecoderEmitter.cpp285 unsigned NumBits; // number of bits to filter member in __anon983fc5010311::Filter
469 unsigned NumBits) const;
563 : Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed), in Filter()
573 assert(StartBit + NumBits - 1 < Owner->BitWidth); in Filter()
586 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits); in Filter()
617 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) in recurse()
638 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) { in recurse()
681 TableInfo.Table.push_back(NumBits); in emitTableEntry()
1028 for (unsigned i = 0; i < NumBits; ++i) { in fieldFromInsn()
1419 unsigned NumBits = EndBits[I-1] - StartBits[I-1] + 1; in emitSingletonTableEntry() local
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYRegisterInfo.cpp135 unsigned NumBits = 0; in IsLegalOffset() local
140 NumBits = 12; in IsLegalOffset()
144 NumBits = 12; in IsLegalOffset()
148 NumBits = 12; in IsLegalOffset()
152 NumBits = 5; in IsLegalOffset()
156 NumBits = 5; in IsLegalOffset()
160 NumBits = 5; in IsLegalOffset()
164 NumBits = 8; in IsLegalOffset()
174 unsigned Mask = (1 << NumBits) - 1; in IsLegalOffset()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DBoolean.h61 APSInt toAPSInt(unsigned NumBits) const { in toAPSInt() argument
62 return APSInt(toAPSInt().zextOrTrunc(NumBits), true); in toAPSInt()
95 static Boolean min(unsigned NumBits) { return Boolean(false); } in min() argument
96 static Boolean max(unsigned NumBits) { return Boolean(true); } in max() argument
113 static Boolean from(T Value, unsigned NumBits) { in from() argument
117 static bool inRange(int64_t Value, unsigned NumBits) { in inRange() argument
H A DIntegralAP.h96 template <typename T> static IntegralAP from(T Value, unsigned NumBits = 0) {
97 assert(NumBits > 0);
98 APInt Copy = APInt(NumBits, static_cast<uint64_t>(Value), Signed);
104 static IntegralAP from(IntegralAP<InputSigned> V, unsigned NumBits = 0) {
105 if (NumBits == 0)
106 NumBits = V.bitWidth();
109 return IntegralAP<Signed>(V.V.sextOrTrunc(NumBits));
110 return IntegralAP<Signed>(V.V.zextOrTrunc(NumBits));
H A DIntegral.h109 APSInt toAPSInt(unsigned NumBits) const {
111 return APSInt(toAPSInt().sextOrTrunc(NumBits), !Signed);
113 return APSInt(toAPSInt().zextOrTrunc(NumBits), !Signed);
162 static Integral min(unsigned NumBits) {
165 static Integral max(unsigned NumBits) {
184 template <typename T> static Integral from(T Value, unsigned NumBits) {
188 static bool inRange(int64_t Value, unsigned NumBits) {
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/Disassembler/
H A DAMDGPUDisassembler.h45 void insertBits(uint64_t SubBits, unsigned BitPosition, unsigned NumBits) { in insertBits() argument
46 assert(NumBits && NumBits <= 64); in insertBits()
47 assert(SubBits >> 1 >> (NumBits - 1) == 0); in insertBits()
56 uint64_t extractBitsAsZExtValue(unsigned NumBits, in extractBitsAsZExtValue() argument
58 assert(NumBits && NumBits <= 64); in extractBitsAsZExtValue()
65 return Val & ((uint64_t(2) << (NumBits - 1)) - 1); in extractBitsAsZExtValue()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dsize_class_map.h67 static const u8 S = Config::NumBits - 1;
115 static const u8 S = Config::NumBits - 1;
225 static const uptr NumBits = 3; member
237 static const uptr NumBits = 3; member
250 static const uptr NumBits = 7; member
265 static const uptr NumBits = 8;
293 static const uptr NumBits = 1; member
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DThumb2InstrInfo.cpp637 unsigned NumBits = 0; in rewriteT2FrameIndex() local
647 NumBits = 8; in rewriteT2FrameIndex()
652 NumBits = 12; in rewriteT2FrameIndex()
660 NumBits = 8; in rewriteT2FrameIndex()
674 NumBits = 8; in rewriteT2FrameIndex()
688 case ARMII::AddrModeT2_i7s4: NumBits = 9; OffsetMask = 0x3; break; in rewriteT2FrameIndex()
698 NumBits = 8 + 2; in rewriteT2FrameIndex()
704 NumBits = 8; // 8 bits scaled by 4 in rewriteT2FrameIndex()
721 unsigned Mask = (1 << NumBits) - 1; in rewriteT2FrameIndex()
736 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex()
[all …]
H A DARMBaseRegisterInfo.cpp734 unsigned NumBits = 0; in isFrameOffsetLegal() local
746 NumBits = 8; in isFrameOffsetLegal()
749 NumBits = 12; in isFrameOffsetLegal()
754 NumBits = 8; in isFrameOffsetLegal()
759 NumBits = 12; in isFrameOffsetLegal()
762 NumBits = 8; in isFrameOffsetLegal()
765 NumBits = (BaseReg == ARM::SP ? 8 : 5); in isFrameOffsetLegal()
782 unsigned Mask = (1 << NumBits) - 1; in isFrameOffsetLegal()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DBitset.h29 template <unsigned NumBits>
38 static constexpr unsigned NumWords = (NumBits + BITWORD_SIZE-1) / BITWORD_SIZE;
79 constexpr size_t size() const { return NumBits; } in size()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp561 static bool canEvaluateShifted(Value *V, unsigned NumBits, bool IsLeftShift, in canEvaluateShifted() argument
585 return canEvaluateShiftedShift(NumBits, IsLeftShift, I, IC, CxtI); in canEvaluateShifted()
591 return canEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in canEvaluateShifted()
592 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted()
600 if (!canEvaluateShifted(IncValue, NumBits, IsLeftShift, IC, PN)) in canEvaluateShifted()
678 static Value *getShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, in getShiftedValue() argument
683 return IC.Builder.CreateShl(C, NumBits); in getShiftedValue()
685 return IC.Builder.CreateLShr(C, NumBits); in getShiftedValue()
698 0, getShiftedValue(I->getOperand(0), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
705 return foldShiftedShift(cast<BinaryOperator>(I), NumBits, isLeftShift, in getShiftedValue()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/
H A DPDBTypes.h486 #define VARIANT_WIDTH(Enum, NumBits) \ argument
488 return NumBits;
511 #define VARIANT_APSINT(Enum, NumBits, IsUnsigned) \ argument
513 return APSInt(APInt(NumBits, Value.Enum), IsUnsigned);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DGCNRewritePartialRegUses.cpp272 unsigned NumBits = TRI->getRegSizeInBits(*RC); in getRegClassWithShiftedSubregs() local
273 if (NumBits < MinNumBits && NumBits >= RegNumBits) { in getRegClassWithShiftedSubregs()
274 MinNumBits = NumBits; in getRegClassWithShiftedSubregs()
/freebsd-14.2/contrib/llvm-project/clang/lib/Lex/
H A DPPExpressions.cpp396 unsigned NumBits; in EvaluateValue() local
398 NumBits = TI.getIntWidth(); in EvaluateValue()
400 NumBits = TI.getWCharWidth(); in EvaluateValue()
402 NumBits = TI.getChar16Width(); in EvaluateValue()
404 NumBits = TI.getChar32Width(); in EvaluateValue()
406 NumBits = TI.getCharWidth(); in EvaluateValue()
409 llvm::APSInt Val(NumBits); in EvaluateValue()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupVectorConstants.cpp68 unsigned NumBits = C->getType()->getPrimitiveSizeInBits(); in extractConstantBits() local
79 assert((NumBits % Bits->getBitWidth()) == 0 && "Illegal splat"); in extractConstantBits()
80 return APInt::getSplat(NumBits, *Bits); in extractConstantBits()
92 APInt Bits = APInt::getZero(NumBits); in extractConstantBits()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/TextAPI/
H A DArchitecture.h28 #define ARCHINFO(Arch, Type, SubType, NumBits) AK_##Arch, argument
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DType.cpp278 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { in get() argument
279 assert(NumBits >= MIN_INT_BITS && "bitwidth too small"); in get()
280 assert(NumBits <= MAX_INT_BITS && "bitwidth too large"); in get()
283 switch (NumBits) { in get()
294 IntegerType *&Entry = C.pImpl->IntegerTypes[NumBits]; in get()
297 Entry = new (C.pImpl->Alloc) IntegerType(C, NumBits); in get()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h216 KnownBits extractBits(unsigned NumBits, unsigned BitPosition) const { in extractBits()
217 return KnownBits(Zero.extractBits(NumBits, BitPosition), in extractBits()
218 One.extractBits(NumBits, BitPosition)); in extractBits()

1234