HomeSort by relevance Sort by last modified time
    Searched refs:NumBits (Results 1 - 25 of 36) sorted by null

1 2

  /external/llvm/include/llvm/Bitcode/
BitstreamWriter.h 121 void Emit(uint32_t Val, unsigned NumBits) {
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) {
141 if (NumBits <= 32)
142 Emit((uint32_t)Val, NumBits);
    [all...]
BitstreamReader.h 289 uint32_t Read(unsigned NumBits) {
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;
295 BitsInCurWord -= NumBits;
312 // Extract NumBits-BitsInCurWord from what we just read.
313 unsigned BitsLeft = NumBits-BitsInCurWord;
327 uint64_t Read64(unsigned NumBits) {
328 if (NumBits <= 32) return Read(NumBits)
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineShifts.cpp 68 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift,
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->getValue().ult(TypeWidth) && CI->getZExtValue() > NumBits) {
155 unsigned LowBits = CI->getZExtValue() - NumBits;
    [all...]
  /external/llvm/lib/Target/ARM/
Thumb1RegisterInfo.cpp 144 unsigned NumBits, unsigned Scale) {
146 unsigned Chunk = ((1 << NumBits) - 1) * Scale;
152 NumBits = 8;
154 Chunk = ((1 << NumBits) - 1) * Scale;
180 unsigned NumBits = 1;
188 NumBits = 7;
201 NumBits = 8;
210 NumBits = 8;
214 NumBits = 7;
218 NumBits = 8
    [all...]
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;
ARMBaseRegisterInfo.cpp     [all...]
  /external/llvm/include/llvm/
DerivedTypes.h 40 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){
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/tools/llvm-bcanalyzer/
llvm-bcanalyzer.cpp 289 /// NumBits - The total size in bits of all of these blocks.
290 uint64_t NumBits;
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/utils/TableGen/
AsmWriterEmitter.cpp 381 unsigned NumBits = Log2_32_Ceil(UniqueOperandCommands.size());
384 if (NumBits > BitsLeft) {
385 DEBUG(errs() << "Not enough bits to densely encode " << NumBits
391 BitsLeft -= NumBits;
442 unsigned NumBits = Log2_32_Ceil(Commands.size());
443 assert(NumBits <= BitsLeft && "consistency error");
446 BitsLeft -= NumBits;
448 O << "\n // Fragment " << i << " encoded into " << NumBits
454 << ((1 << NumBits)-1) << ") {\n"
464 << ((1 << NumBits)-1) << ") {\n
    [all...]
FixedLenDecoderEmitter.cpp 224 unsigned NumBits; // number of bits to filter
257 Filter(FilterChooser &owner, unsigned startBit, unsigned numBits, bool mixed);
404 unsigned NumBits) const;
495 : Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed),
502 Filter::Filter(FilterChooser &owner, unsigned startBit, unsigned numBits,
504 : Owner(&owner), StartBit(startBit), NumBits(numBits), Mixed(mixed) {
505 assert(StartBit + NumBits - 1 < Owner->BitWidth);
518 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits);
    [all...]
  /external/llvm/include/llvm/ADT/
BitVector.h 120 unsigned NumBits = 0;
123 NumBits += CountPopulation_32((uint32_t)Bits[i]);
125 NumBits += CountPopulation_64(Bits[i]);
128 return NumBits;
SparseBitVector.h 124 unsigned NumBits = 0;
127 NumBits += CountPopulation_32(Bits[i]);
129 NumBits += CountPopulation_64(Bits[i]);
132 return NumBits;
  /external/llvm/lib/Target/Hexagon/
HexagonAsmPrinter.cpp 64 void HexagonAsmPrinter::EmitAlignment(unsigned NumBits,
72 AsmPrinter::EmitAlignment(NumBits, GV);
HexagonAsmPrinter.h 40 virtual void EmitAlignment(unsigned NumBits,
  /external/clang/lib/Lex/
PPExpressions.cpp 275 unsigned NumBits;
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/
Type.cpp 326 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) {
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/
AsmPrinter.cpp 75 unsigned NumBits = 0;
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;
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
BitSet.cs 260 public int NumBits() {
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
BitSet.cs 307 public int NumBits()
  /external/llvm/include/llvm/CodeGen/
AsmPrinter.h 225 void EmitAlignment(unsigned NumBits, const GlobalValue *GV = 0) const;
  /external/llvm/lib/AsmParser/
LLLexer.cpp 433 uint64_t NumBits = atoull(StartChar, CurPtr);
434 if (NumBits < IntegerType::MIN_INT_BITS ||
435 NumBits > IntegerType::MAX_INT_BITS) {
439 TyVal = IntegerType::get(Context, NumBits);
776 uint32_t numBits = ((Len * 64) / 19) + 2;
777 APInt Tmp(numBits, StringRef(TokStart, Len), 10);
780 if (minBits > 0 && minBits < numBits)
785 if (activeBits > 0 && activeBits < numBits)
  /external/llvm/lib/Target/NVPTX/
NVPTXAsmPrinter.h 206 void EmitAlignment(unsigned NumBits, const GlobalValue *GV = 0) const {}
  /external/llvm/lib/Analysis/
ConstantFolding.cpp 482 unsigned NumBits = Ty->getPrimitiveSizeInBits();
485 if ((NumBits >> 3) == StrLen + 1 && (NumBits & 7) == 0 &&
487 APInt StrVal(NumBits, 0);
488 APInt SingleChar(NumBits, 0);
    [all...]
  /external/llvm/lib/Bitcode/Writer/
BitcodeWriter.cpp 197 uint64_t NumBits = Log2_32_Ceil(VE.getTypes().size()+1);
202 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, NumBits));
211 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, NumBits));
220 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, NumBits));
236 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, NumBits));
244 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, NumBits));
    [all...]
  /external/llvm/lib/TableGen/
Record.cpp 153 static bool canFitInBitfield(int64_t Value, unsigned NumBits) {
154 // For example, with NumBits == 4, we permit Values from [-7 .. 15].
155 return (NumBits >= sizeof(Value) * 8) ||
156 (Value >> NumBits == 0) || (Value >> (NumBits-1) == -1);
    [all...]

Completed in 1009 milliseconds

1 2