Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/Bitcode/
DBitstreamReader.h341 word_t Read(unsigned NumBits) { in Read() argument
344 assert(NumBits && NumBits <= BitsInWord && in Read()
350 if (BitsInCurWord >= NumBits) { in Read()
351 word_t R = CurWord & (~word_t(0) >> (BitsInWord - NumBits)); in Read()
354 CurWord >>= (NumBits & Mask); in Read()
356 BitsInCurWord -= NumBits; in Read()
361 unsigned BitsLeft = NumBits - BitsInCurWord; in Read()
376 R |= R2 << (NumBits - BitsLeft); in Read()
381 uint32_t ReadVBR(unsigned NumBits) { in ReadVBR() argument
382 uint32_t Piece = Read(NumBits); in ReadVBR()
[all …]
DBitstreamWriter.h115 void Emit(uint32_t Val, unsigned NumBits) { in Emit() argument
116 assert(NumBits && NumBits <= 32 && "Invalid value size!"); in Emit()
117 assert((Val & ~(~0U >> (32-NumBits))) == 0 && "High bits set!"); in Emit()
119 if (CurBit + NumBits < 32) { in Emit()
120 CurBit += NumBits; in Emit()
131 CurBit = (CurBit+NumBits) & 31; in Emit()
134 void Emit64(uint64_t Val, unsigned NumBits) { in Emit64() argument
135 if (NumBits <= 32) in Emit64()
136 Emit((uint32_t)Val, NumBits); in Emit64()
139 Emit((uint32_t)(Val >> 32), NumBits-32); in Emit64()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp70 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift, in CanEvaluateShifted() argument
86 if (CI->getZExtValue() == NumBits) { in CanEvaluateShifted()
114 return CanEvaluateShifted(I->getOperand(0), NumBits, isLeftShift, IC, I) && in CanEvaluateShifted()
115 CanEvaluateShifted(I->getOperand(1), NumBits, isLeftShift, IC, I); in CanEvaluateShifted()
126 if (CI->getValue() == NumBits) return true; in CanEvaluateShifted()
132 if (CI->getZExtValue() > NumBits) { in CanEvaluateShifted()
135 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits, in CanEvaluateShifted()
151 if (CI->getValue() == NumBits) return true; in CanEvaluateShifted()
157 if (CI->getValue().ult(TypeWidth) && CI->getZExtValue() > NumBits) { in CanEvaluateShifted()
158 unsigned LowBits = CI->getZExtValue() - NumBits; in CanEvaluateShifted()
[all …]
/external/llvm/lib/Support/
DAPSInt.cpp24 unsigned NumBits = ((Str.size() * 64) / 19) + 2; in APSInt() local
25 APInt Tmp(NumBits, Str, /*Radix=*/10); in APSInt()
28 if (MinBits > 0 && MinBits < NumBits) in APSInt()
34 if (ActiveBits > 0 && ActiveBits < NumBits) in APSInt()
/external/lzma/Java/SevenZip/
DLzmaBench.java30 int NumBits; field in LzmaBench.CBitRandomGenerator
34 NumBits = 0; in Init()
39 if (NumBits > numBits) in GetRnd()
43 NumBits -= numBits; in GetRnd()
46 numBits -= NumBits; in GetRnd()
51 NumBits = 32 - numBits; in GetRnd()
/external/lzma/CS/7zip/Compress/LzmaAlone/
DLzmaBench.cs35 int NumBits; field in SevenZip.LzmaBench.CBitRandomGenerator
39 NumBits = 0; in Init()
44 if (NumBits > numBits) in GetRnd()
48 NumBits -= numBits; in GetRnd()
51 numBits -= NumBits; in GetRnd()
56 NumBits = 32 - numBits; in GetRnd()
/external/llvm/lib/Target/ARM/
DThumb2InstrInfo.cpp545 unsigned NumBits = 0; in rewriteT2FrameIndex() local
554 NumBits = 8; in rewriteT2FrameIndex()
559 NumBits = 12; in rewriteT2FrameIndex()
567 NumBits = 8; in rewriteT2FrameIndex()
577 NumBits = 10; // 8 bits scaled by 4 in rewriteT2FrameIndex()
593 unsigned Mask = (1 << NumBits) - 1; in rewriteT2FrameIndex()
600 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex()
614 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex()
DARMBaseRegisterInfo.cpp625 unsigned NumBits = 0; in isFrameOffsetLegal() local
635 NumBits = 8; in isFrameOffsetLegal()
638 NumBits = 12; in isFrameOffsetLegal()
643 NumBits = 8; in isFrameOffsetLegal()
648 NumBits = 12; in isFrameOffsetLegal()
651 NumBits = 8; in isFrameOffsetLegal()
654 NumBits = (BaseReg == ARM::SP ? 8 : 5); in isFrameOffsetLegal()
671 unsigned Mask = (1 << NumBits) - 1; in isFrameOffsetLegal()
DThumbRegisterInfo.cpp380 unsigned NumBits = (FrameReg == ARM::SP) ? 8 : 5; in rewriteFrameIndex() local
389 unsigned Mask = (1 << NumBits) - 1; in rewriteFrameIndex()
405 NumBits = 5; in rewriteFrameIndex()
406 Mask = (1 << NumBits) - 1; in rewriteFrameIndex()
/external/llvm/utils/TableGen/
DAsmWriterEmitter.cpp363 unsigned NumBits = Log2_32_Ceil(UniqueOperandCommands.size()); in EmitPrintInstruction() local
366 if (NumBits > BitsLeft) { in EmitPrintInstruction()
367 DEBUG(errs() << "Not enough bits to densely encode " << NumBits in EmitPrintInstruction()
377 BitsLeft -= NumBits; in EmitPrintInstruction()
450 unsigned NumBits = Log2_32_Ceil(Commands.size()); in EmitPrintInstruction() local
451 assert(NumBits <= BitsLeft && "consistency error"); in EmitPrintInstruction()
454 O << "\n // Fragment " << i << " encoded into " << NumBits in EmitPrintInstruction()
461 << ((1 << NumBits)-1) << ") {\n" in EmitPrintInstruction()
472 << ((1 << NumBits)-1) << ") {\n" in EmitPrintInstruction()
483 BitsLeft -= NumBits; in EmitPrintInstruction()
DFixedLenDecoderEmitter.cpp223 unsigned NumBits; // number of bits to filter member in __anon60e3a3c10511::Filter
397 unsigned NumBits) const;
491 : Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed), in Filter()
500 : Owner(&owner), StartBit(startBit), NumBits(numBits), Mixed(mixed) { in Filter()
501 assert(StartBit + NumBits - 1 < Owner->BitWidth); in Filter()
514 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits); in Filter()
548 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) in recurse()
571 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) { in recurse()
613 TableInfo.Table.push_back(NumBits); in emitTableEntry()
925 unsigned StartBit, unsigned NumBits) const { in fieldFromInsn()
[all …]
/external/clang/lib/Lex/
DPPExpressions.cpp290 unsigned NumBits; in EvaluateValue() local
292 NumBits = TI.getIntWidth(); in EvaluateValue()
294 NumBits = TI.getWCharWidth(); in EvaluateValue()
296 NumBits = TI.getChar16Width(); in EvaluateValue()
298 NumBits = TI.getChar32Width(); in EvaluateValue()
300 NumBits = TI.getCharWidth(); in EvaluateValue()
303 llvm::APSInt Val(NumBits); in EvaluateValue()
/external/llvm/tools/llvm-bcanalyzer/
Dllvm-bcanalyzer.cpp366 uint64_t NumBits; member
382 : NumInstances(0), NumBits(0), in PerBlockIDStats()
414 BlockStats.NumBits += BlockBitEnd-BlockBitStart; in ParseBlock()
455 BlockStats.NumBits += BlockBitEnd-BlockBitStart; in ParseBlock()
713 PrintSize(Stats.NumBits); in AnalyzeBitcode()
715 double pct = (Stats.NumBits * 100.0) / BufferSizeBits; in AnalyzeBitcode()
719 PrintSize(Stats.NumBits/(double)Stats.NumInstances); in AnalyzeBitcode()
/external/lzma/CPP/7zip/Bundles/LzmaSpec/
DLzmaSpec.cpp237 template <unsigned NumBits>
240 CProb Probs[(unsigned)1 << NumBits];
252 for (unsigned i = 0; i < NumBits; i++) in Decode()
254 return m - ((unsigned)1 << NumBits); in Decode()
259 return BitTreeReverseDecode(Probs, NumBits, rc); in ReverseDecode()
/external/llvm/include/llvm/IR/
DDerivedTypes.h41 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() argument
42 setSubclassData(NumBits); in IntegerType()
59 static IntegerType *get(LLVMContext &C, unsigned NumBits);
/external/llvm/lib/IR/
DType.cpp298 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { in get() argument
299 assert(NumBits >= MIN_INT_BITS && "bitwidth too small"); in get()
300 assert(NumBits <= MAX_INT_BITS && "bitwidth too large"); in get()
303 switch (NumBits) { in get()
314 IntegerType *&Entry = C.pImpl->IntegerTypes[NumBits]; in get()
317 Entry = new (C.pImpl->TypeAllocator) IntegerType(C, NumBits); in get()
DDataLayout.cpp707 unsigned NumBits = getPointerTypeSizeInBits(Ty); in getIntPtrType() local
708 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIntPtrType()
/external/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinter.cpp81 unsigned NumBits = 0; in getGVAlignmentLog2() local
83 NumBits = DL.getPreferredAlignmentLog(GVar); in getGVAlignmentLog2()
86 if (InBits > NumBits) in getGVAlignmentLog2()
87 NumBits = InBits; in getGVAlignmentLog2()
91 return NumBits; in getGVAlignmentLog2()
97 if (GVAlign > NumBits || GV->hasSection()) in getGVAlignmentLog2()
98 NumBits = GVAlign; in getGVAlignmentLog2()
99 return NumBits; in getGVAlignmentLog2()
1688 void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalObject *GV) const { in EmitAlignment() argument
1690 NumBits = getGVAlignmentLog2(GV, GV->getParent()->getDataLayout(), NumBits); in EmitAlignment()
[all …]
/external/llvm/include/llvm/ADT/
DBitVector.h122 unsigned NumBits = 0; in count() local
124 NumBits += countPopulation(Bits[i]); in count()
125 return NumBits; in count()
DSparseBitVector.h124 unsigned NumBits = 0;
126 NumBits += countPopulation(Bits[i]);
127 return NumBits;
/external/llvm/lib/AsmParser/
DLLLexer.cpp476 uint64_t NumBits = atoull(StartChar, CurPtr); in LexIdentifier() local
477 if (NumBits < IntegerType::MIN_INT_BITS || in LexIdentifier()
478 NumBits > IntegerType::MAX_INT_BITS) { in LexIdentifier()
482 TyVal = IntegerType::get(Context, NumBits); in LexIdentifier()
/external/lzma/DOC/
Dlzma-specification.txt520 If that size of decoded symbol is "NumBits" bits, the tree structure
521 uses the array of (2 << NumBits) counters of CProb type.
522 But only ((2 << NumBits) - 1) items are used by encoder and decoder.
540 template <unsigned NumBits>
543 CProb Probs[(unsigned)1 << NumBits];
555 for (unsigned i = 0; i < NumBits; i++)
557 return m - ((unsigned)1 << NumBits);
562 return BitTreeReverseDecode(Probs, NumBits, rc);
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DBitSet.cs260 public int NumBits() { in NumBits() method in Antlr.Runtime.BitSet
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DBitSet.cs307 public int NumBits() in NumBits() method in Antlr.Runtime.BitSet
/external/llvm/lib/TableGen/
DRecord.cpp408 static bool canFitInBitfield(int64_t Value, unsigned NumBits) { in canFitInBitfield() argument
410 return (NumBits >= sizeof(Value) * 8) || in canFitInBitfield()
411 (Value >> NumBits == 0) || (Value >> (NumBits-1) == -1); in canFitInBitfield()
1181 unsigned NumBits = T->getNumBits(); in convertInitializerBitRange() local
1185 if (Bits[i] >= NumBits) in convertInitializerBitRange()

12