/external/llvm/include/llvm/Bitcode/ |
H A D | BitstreamWriter.h | 121 void Emit(uint32_t Val, unsigned NumBits) { argument 122 assert(NumBits && NumBits <= 32 && "Invalid value size!"); 123 assert((Val & ~(~0U >> (32-NumBits))) == 0 && "High bits set!"); 125 if (CurBit + NumBits < 32) { 126 CurBit += NumBits; 137 CurBit = (CurBit+NumBits) & 31; 140 void Emit64(uint64_t Val, unsigned NumBits) { argument 141 if (NumBits <= 32) 142 Emit((uint32_t)Val, NumBits); 157 EmitVBR(uint32_t Val, unsigned NumBits) argument 169 EmitVBR64(uint64_t Val, unsigned NumBits) argument [all...] |
H A D | BitstreamReader.h | 289 uint32_t Read(unsigned NumBits) { argument 290 assert(NumBits <= 32 && "Cannot return more than 32 bits!"); 292 if (BitsInCurWord >= NumBits) { 293 uint32_t R = CurWord & ((1U << NumBits)-1); 294 CurWord >>= NumBits; local 295 BitsInCurWord -= NumBits; 312 // Extract NumBits-BitsInCurWord from what we just read. 313 unsigned BitsLeft = NumBits-BitsInCurWord; 327 uint64_t Read64(unsigned NumBits) { argument 328 if (NumBits < 334 ReadVBR(unsigned NumBits) argument 354 ReadVBR64(unsigned NumBits) argument [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineShifts.cpp | 68 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift, argument 84 if (CI->getZExtValue() == NumBits) { 112 return CanEvaluateShifted(I->getOperand(0), NumBits, isLeftShift, IC) && 113 CanEvaluateShifted(I->getOperand(1), NumBits, isLeftShift, IC); 124 if (CI->getValue() == NumBits) return true; 130 if (CI->getZExtValue() > NumBits) { 133 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits)) 148 if (CI->getValue() == NumBits) return true; 154 if (CI->getZExtValue() > NumBits) { 155 unsigned LowBits = CI->getZExtValue() - NumBits; 183 GetShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, InstCombiner &IC) argument [all...] |
/external/llvm/lib/Target/ARM/ |
H A D | Thumb1RegisterInfo.cpp | 143 unsigned NumBits, unsigned Scale) { 145 unsigned Chunk = ((1 << NumBits) - 1) * Scale; 151 NumBits = 8; 153 Chunk = ((1 << NumBits) - 1) * Scale; 179 unsigned NumBits = 1; 187 NumBits = 7; 200 NumBits = 8; 209 NumBits = 8; 213 NumBits = 7; 217 NumBits 142 calcNumMI(int Opc, int ExtraOpc, unsigned Bytes, unsigned NumBits, unsigned Scale) argument 486 unsigned NumBits = (FrameReg == ARM::SP) ? 8 : 5; variable [all...] |
H A D | Thumb2InstrInfo.cpp | 487 unsigned NumBits = 0; 496 NumBits = 8; 501 NumBits = 12; 509 NumBits = 8; 529 unsigned Mask = (1 << NumBits) - 1; 536 ImmedOffset |= 1 << NumBits; 550 ImmedOffset |= 1 << NumBits;
|
H A D | ARMBaseRegisterInfo.cpp | 987 unsigned NumBits = 0; local 997 NumBits = 8; 1000 NumBits = 12; 1005 NumBits = 8; 1010 NumBits = 12; 1013 NumBits = 8; 1016 NumBits = 5; 1033 unsigned Mask = (1 << NumBits) - 1;
|
H A D | ARMBaseInstrInfo.cpp | 1656 unsigned NumBits = 0; 1662 NumBits = 12; 1670 NumBits = 12; 1678 NumBits = 8; 1690 NumBits = 8; 1706 if (NumBits > 0) { 1710 unsigned Mask = (1 << NumBits) - 1; 1721 ImmedOffset |= 1 << NumBits; 1734 ImmedOffset |= 1 << NumBits;
|
/external/llvm/utils/TableGen/ |
H A D | FixedLenDecoderEmitter.cpp | 131 unsigned NumBits; // number of bits to filter member in class:Filter 313 unsigned NumBits) const; 396 : Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed), 405 : Owner(&owner), StartBit(startBit), NumBits(numBits), Mixed(mixed) { 406 assert(StartBit + NumBits - 1 < Owner->BitWidth); 419 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits); 463 for (bitIndex = 0; bitIndex < NumBits; bitIndex++) 492 for (bitIndex = 0; bitIndex < NumBits; bitIndex++) { 516 if (NumBits > 896 unsigned I, NumBits; local [all...] |
H A D | AsmWriterEmitter.cpp | 350 unsigned NumBits = Log2_32_Ceil(UniqueOperandCommands.size()); local 353 if (NumBits > BitsLeft) { 354 DEBUG(errs() << "Not enough bits to densely encode " << NumBits 360 BitsLeft -= NumBits; 411 unsigned NumBits = Log2_32_Ceil(Commands.size()); local 412 assert(NumBits <= BitsLeft && "consistency error"); 415 BitsLeft -= NumBits; 417 O << "\n // Fragment " << i << " encoded into " << NumBits 423 << ((1 << NumBits)-1) << ") {\n" 433 << ((1 << NumBits) [all...] |
/external/llvm/lib/Target/Hexagon/ |
H A D | HexagonAsmPrinter.cpp | 64 void HexagonAsmPrinter::EmitAlignment(unsigned NumBits, argument 72 AsmPrinter::EmitAlignment(NumBits, GV);
|
H A D | HexagonAsmPrinter.h | 40 virtual void EmitAlignment(unsigned NumBits,
|
/external/llvm/tools/llvm-bcanalyzer/ |
H A D | llvm-bcanalyzer.cpp | 289 /// NumBits - The total size in bits of all of these blocks. 290 uint64_t NumBits; member in struct:PerBlockIDStats 306 : NumInstances(0), NumBits(0), 338 BlockStats.NumBits += BlockBitEnd-BlockBitStart; 377 BlockStats.NumBits += BlockBitEnd-BlockBitStart; 556 PrintSize(Stats.NumBits); 558 double pct = (Stats.NumBits * 100.0) / BufferSizeBits; 562 PrintSize(Stats.NumBits/(double)Stats.NumInstances);
|
/external/llvm/include/llvm/ |
H A D | DerivedTypes.h | 40 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ argument 41 setSubclassData(NumBits); 53 /// If an IntegerType with the same NumBits value was previously instantiated, 55 /// one instance with a given NumBits value is ever created. 57 static IntegerType *get(LLVMContext &C, unsigned NumBits);
|
/external/llvm/include/llvm/ADT/ |
H A D | BitVector.h | 112 unsigned NumBits = 0; local 115 NumBits += CountPopulation_32((uint32_t)Bits[i]); 117 NumBits += CountPopulation_64(Bits[i]); 120 return NumBits;
|
H A D | SparseBitVector.h | 124 unsigned NumBits = 0; 127 NumBits += CountPopulation_32(Bits[i]); 129 NumBits += CountPopulation_64(Bits[i]); 132 return NumBits;
|
/external/clang/lib/Lex/ |
H A D | PPExpressions.cpp | 275 unsigned NumBits; local 277 NumBits = TI.getIntWidth(); 279 NumBits = TI.getWCharWidth(); 281 NumBits = TI.getChar16Width(); 283 NumBits = TI.getChar32Width(); 285 NumBits = TI.getCharWidth(); 288 llvm::APSInt Val(NumBits);
|
/external/llvm/lib/VMCore/ |
H A D | Type.cpp | 326 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { argument 327 assert(NumBits >= MIN_INT_BITS && "bitwidth too small"); 328 assert(NumBits <= MAX_INT_BITS && "bitwidth too large"); 331 switch (NumBits) { 341 IntegerType *&Entry = C.pImpl->IntegerTypes[NumBits]; 344 Entry = new (C.pImpl->TypeAllocator) IntegerType(C, NumBits);
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
H A D | AsmPrinter.cpp | 75 unsigned NumBits = 0; local 77 NumBits = TD.getPreferredAlignmentLog(GVar); 80 if (InBits > NumBits) 81 NumBits = InBits; 85 return NumBits; 89 // If the GVAlign is larger than NumBits, or if we are required to obey 90 // NumBits because the GV has an assigned section, obey it. 91 if (GVAlign > NumBits || GV->hasSection()) 92 NumBits = GVAlign; 93 return NumBits; 1437 EmitAlignment(unsigned NumBits, const GlobalValue *GV) const argument [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
H A D | BitSet.cs | 260 public int NumBits() { method in class:Antlr.Runtime.BitSet
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
H A D | BitSet.cs | 307 public int NumBits() method in class:Antlr.Runtime.BitSet
|
/external/llvm/include/llvm/CodeGen/ |
H A D | AsmPrinter.h | 224 void EmitAlignment(unsigned NumBits, const GlobalValue *GV = 0) const;
|
/external/llvm/lib/AsmParser/ |
H A D | LLLexer.cpp | 433 uint64_t NumBits = atoull(StartChar, CurPtr); local 434 if (NumBits < IntegerType::MIN_INT_BITS || 435 NumBits > IntegerType::MAX_INT_BITS) { 439 TyVal = IntegerType::get(Context, NumBits);
|
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 479 unsigned NumBits = Ty->getPrimitiveSizeInBits(); local 482 if ((NumBits >> 3) == StrLen + 1 && (NumBits & 7) == 0 && 484 APInt StrVal(NumBits, 0); 485 APInt SingleChar(NumBits, 0);
|
/external/llvm/lib/Bitcode/Writer/ |
H A D | BitcodeWriter.cpp | 205 uint64_t NumBits = Log2_32_Ceil(VE.getTypes().size()+1); local 210 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, NumBits)); 219 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, NumBits)); 228 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, NumBits)); 244 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, NumBits)); 252 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, NumBits));
|
/external/llvm/lib/TableGen/ |
H A D | Record.cpp | 150 static bool canFitInBitfield(int64_t Value, unsigned NumBits) { argument 151 // For example, with NumBits == 4, we permit Values from [-7 .. 15]. 152 return (NumBits >= sizeof(Value) * 8) || 153 (Value >> NumBits == 0) || (Value >> (NumBits-1) == -1); 1274 unsigned NumBits = T->getNumBits(); local 1278 if (Bits[i] >= NumBits)
|