| /freebsd-12.1/contrib/llvm/include/llvm/Bitcode/ |
| H A D | BitstreamReader.h | 182 word_t Read(unsigned NumBits) { in Read() argument 185 assert(NumBits && NumBits <= BitsInWord && in Read() 191 if (BitsInCurWord >= NumBits) { in Read() 195 CurWord >>= (NumBits & Mask); in Read() 197 BitsInCurWord -= NumBits; in Read() 223 uint32_t Piece = Read(NumBits); in ReadVBR() 235 NextBit += NumBits-1; in ReadVBR() 236 Piece = Read(NumBits); in ReadVBR() 243 uint32_t Piece = Read(NumBits); in ReadVBR64() 255 NextBit += NumBits-1; in ReadVBR64() [all …]
|
| H A D | BitstreamWriter.h | 121 assert(NumBits && NumBits <= 32 && "Invalid value size!"); in Emit() 124 if (CurBit + NumBits < 32) { in Emit() 125 CurBit += NumBits; in Emit() 136 CurBit = (CurBit+NumBits) & 31; in Emit() 149 uint32_t Threshold = 1U << (NumBits-1); in EmitVBR() 153 Emit((Val & ((1 << (NumBits-1))-1)) | (1 << (NumBits-1)), NumBits); in EmitVBR() 154 Val >>= NumBits-1; in EmitVBR() 157 Emit(Val, NumBits); in EmitVBR() 170 (1 << (NumBits-1)), NumBits); in EmitVBR64() 171 Val >>= NumBits-1; in EmitVBR64() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | APSInt.cpp | 25 unsigned NumBits = ((Str.size() * 64) / 19) + 2; in APSInt() local 26 APInt Tmp(NumBits, Str, /*Radix=*/10); in APSInt() 29 if (MinBits > 0 && MinBits < NumBits) in APSInt() 35 if (ActiveBits > 0 && ActiveBits < NumBits) in APSInt()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 122 static bool canEvaluateShifted(Value *V, unsigned NumBits, bool IsLeftShift, in canEvaluateShifted() argument 138 if (CI->getValue() == NumBits) { in canEvaluateShifted() 167 canEvaluateShifted(I->getOperand(1), NumBits, IsLeftShift, IC, I); in canEvaluateShifted() 171 return canEvaluateShiftedShift(NumBits, IsLeftShift, I, IC, CxtI); in canEvaluateShifted() 177 return canEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in canEvaluateShifted() 178 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted() 186 if (!canEvaluateShifted(IncValue, NumBits, IsLeftShift, IC, PN)) in canEvaluateShifted() 258 static Value *getShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, in getShiftedValue() argument 263 V = IC.Builder.CreateShl(C, NumBits); in getShiftedValue() 265 V = IC.Builder.CreateLShr(C, NumBits); in getShiftedValue() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/ARM/ |
| H A D | Thumb2InstrInfo.cpp | 570 unsigned NumBits = 0; in rewriteT2FrameIndex() local 579 NumBits = 8; in rewriteT2FrameIndex() 584 NumBits = 12; in rewriteT2FrameIndex() 592 NumBits = 8; in rewriteT2FrameIndex() 606 NumBits = 8; in rewriteT2FrameIndex() 616 NumBits = 10; // 8 bits scaled by 4 in rewriteT2FrameIndex() 622 NumBits = 8; // 8 bits scaled by 4 in rewriteT2FrameIndex() 637 unsigned Mask = (1 << NumBits) - 1; in rewriteT2FrameIndex() 644 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex() 658 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex()
|
| H A D | ARMBaseRegisterInfo.cpp | 677 unsigned NumBits = 0; in isFrameOffsetLegal() local 687 NumBits = 8; in isFrameOffsetLegal() 690 NumBits = 12; in isFrameOffsetLegal() 695 NumBits = 8; in isFrameOffsetLegal() 700 NumBits = 12; in isFrameOffsetLegal() 703 NumBits = 8; in isFrameOffsetLegal() 706 NumBits = (BaseReg == ARM::SP ? 8 : 5); in isFrameOffsetLegal() 723 unsigned Mask = (1 << NumBits) - 1; in isFrameOffsetLegal()
|
| H A D | ThumbRegisterInfo.cpp | 387 unsigned NumBits = (FrameReg == ARM::SP) ? 8 : 5; in rewriteFrameIndex() local 396 unsigned Mask = (1 << NumBits) - 1; in rewriteFrameIndex() 412 NumBits = 5; in rewriteFrameIndex() 413 Mask = (1 << NumBits) - 1; in rewriteFrameIndex()
|
| /freebsd-12.1/contrib/llvm/utils/TableGen/ |
| H A D | AsmWriterEmitter.cpp | 350 unsigned NumBits = Log2_32_Ceil(UniqueOperandCommands.size()); in EmitPrintInstruction() local 353 if (NumBits > BitsLeft) { in EmitPrintInstruction() 354 LLVM_DEBUG(errs() << "Not enough bits to densely encode " << NumBits in EmitPrintInstruction() 375 BitsLeft -= NumBits; in EmitPrintInstruction() 435 unsigned NumBits = Log2_32_Ceil(Commands.size()); in EmitPrintInstruction() local 436 assert(NumBits <= BitsLeft && "consistency error"); in EmitPrintInstruction() 439 O << "\n // Fragment " << i << " encoded into " << NumBits in EmitPrintInstruction() 446 << ((1 << NumBits)-1) << ") {\n" in EmitPrintInstruction() 457 << ((1 << NumBits)-1) << ") {\n" in EmitPrintInstruction() 468 BitsLeft -= NumBits; in EmitPrintInstruction()
|
| H A D | FixedLenDecoderEmitter.cpp | 251 unsigned NumBits; // number of bits to filter member in __anonc01b33bf0311::Filter 422 unsigned NumBits) const; 514 : Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed), in Filter() 524 assert(StartBit + NumBits - 1 < Owner->BitWidth); in Filter() 537 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits); in Filter() 568 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) in recurse() 590 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) { in recurse() 633 TableInfo.Table.push_back(NumBits); in emitTableEntry() 966 for (unsigned i = 0; i < NumBits; ++i) { in fieldFromInsn() 1334 unsigned NumBits = EndBits[I-1] - StartBits[I-1] + 1; in emitSingletonTableEntry() local [all …]
|
| H A D | SearchableTableEmitter.cpp | 156 unsigned NumBits = BI->getNumBits(); in searchableFieldType() local 157 if (NumBits <= 8) in searchableFieldType() 159 if (NumBits <= 16) in searchableFieldType() 161 if (NumBits <= 32) in searchableFieldType() 163 if (NumBits <= 64) in searchableFieldType()
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | Type.cpp | 240 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { in get() argument 241 assert(NumBits >= MIN_INT_BITS && "bitwidth too small"); in get() 242 assert(NumBits <= MAX_INT_BITS && "bitwidth too large"); in get() 245 switch (NumBits) { in get() 256 IntegerType *&Entry = C.pImpl->IntegerTypes[NumBits]; in get() 259 Entry = new (C.pImpl->TypeAllocator) IntegerType(C, NumBits); in get()
|
| H A D | DataLayout.cpp | 758 unsigned NumBits = getIndexTypeSizeInBits(Ty); in getIntPtrType() local 759 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIntPtrType() 780 unsigned NumBits = getIndexTypeSizeInBits(Ty); in getIndexType() local 781 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIndexType()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/ |
| H A D | PPExpressions.cpp | 357 unsigned NumBits; in EvaluateValue() local 359 NumBits = TI.getIntWidth(); in EvaluateValue() 361 NumBits = TI.getWCharWidth(); in EvaluateValue() 363 NumBits = TI.getChar16Width(); in EvaluateValue() 365 NumBits = TI.getChar32Width(); in EvaluateValue() 367 NumBits = TI.getCharWidth(); in EvaluateValue() 370 llvm::APSInt Val(NumBits); in EvaluateValue()
|
| /freebsd-12.1/contrib/llvm/include/llvm/CodeGen/ |
| H A D | TargetRegisterInfo.h | 1119 void moveNBits(unsigned NumBits) { in moveNBits() argument 1120 assert(NumBits < 32 && "Undefined behavior spotted!"); in moveNBits() 1122 CurrentChunk >>= NumBits; in moveNBits() 1124 Idx += NumBits; in moveNBits()
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | DerivedTypes.h | 44 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() argument 45 setSubclassData(NumBits); in IntegerType() 63 static IntegerType *get(LLVMContext &C, unsigned NumBits);
|
| /freebsd-12.1/contrib/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRAsmBackend.cpp | 372 auto NumBits = Info.TargetSize + Info.TargetOffset; in applyFixup() local 373 auto NumBytes = (NumBits / 8) + ((NumBits % 8) == 0 ? 0 : 1); in applyFixup()
|
| /freebsd-12.1/contrib/llvm/tools/llvm-bcanalyzer/ |
| H A D | llvm-bcanalyzer.cpp | 430 uint64_t NumBits; member 446 : NumInstances(0), NumBits(0), in PerBlockIDStats() 573 BlockStats.NumBits += BlockBitEnd-BlockBitStart; in ParseBlock() 928 PrintSize(Stats.NumBits); in AnalyzeBitcode() 930 double pct = (Stats.NumBits * 100.0) / BufferSizeBits; in AnalyzeBitcode() 934 PrintSize(Stats.NumBits/(double)Stats.NumInstances); in AnalyzeBitcode()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AsmPrinter.cpp | 165 unsigned NumBits = 0; in getGVAlignmentLog2() local 167 NumBits = DL.getPreferredAlignmentLog(GVar); in getGVAlignmentLog2() 170 if (InBits > NumBits) in getGVAlignmentLog2() 171 NumBits = InBits; in getGVAlignmentLog2() 175 return NumBits; in getGVAlignmentLog2() 181 if (GVAlign > NumBits || GV->hasSection()) in getGVAlignmentLog2() 182 NumBits = GVAlign; in getGVAlignmentLog2() 183 return NumBits; in getGVAlignmentLog2() 2101 NumBits = getGVAlignmentLog2(GV, GV->getParent()->getDataLayout(), NumBits); in EmitAlignment() 2105 assert(NumBits < in EmitAlignment() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/BPF/ |
| H A D | BTFDebug.h | 43 uint32_t roundupToBytes(uint32_t NumBits) { return (NumBits + 7) >> 3; } in roundupToBytes() argument
|
| /freebsd-12.1/contrib/llvm/include/llvm/ADT/ |
| H A D | SparseBitVector.h | 121 unsigned NumBits = 0; in count() local 123 NumBits += countPopulation(Bits[i]); in count() 124 return NumBits; in count()
|
| H A D | BitVector.h | 174 unsigned NumBits = 0; in count() local 176 NumBits += countPopulation(Bits[i]); in count() 177 return NumBits; in count()
|
| /freebsd-12.1/contrib/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 479 uint64_t NumBits = atoull(StartChar, CurPtr); in LexIdentifier() local 480 if (NumBits < IntegerType::MIN_INT_BITS || in LexIdentifier() 481 NumBits > IntegerType::MAX_INT_BITS) { in LexIdentifier() 485 TyVal = IntegerType::get(Context, NumBits); in LexIdentifier()
|
| /freebsd-12.1/contrib/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelDAGToDAG.h | 136 bool keepsLowBits(const SDValue &Val, unsigned NumBits, SDValue &Src);
|
| /freebsd-12.1/contrib/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelDAGToDAG.cpp | 1195 Bits.resize(NumBits); in getValueBits() 1205 for (unsigned i = 0; i < NumBits; ++i) in getValueBits() 1217 for (unsigned i = ShiftAmt; i < NumBits; ++i) in getValueBits() 1232 for (unsigned i = 0; i < NumBits - ShiftAmt; ++i) in getValueBits() 1235 for (unsigned i = NumBits - ShiftAmt; i < NumBits; ++i) in getValueBits() 1252 for (unsigned i = 0; i < NumBits; ++i) in getValueBits() 1274 for (unsigned i = 0; i < NumBits; ++i) { in getValueBits() 1329 for (unsigned i = NumOperandBits; i < NumBits; ++i) in getValueBits() 1375 for (unsigned i = NumValidBits; i < NumBits; ++i) in getValueBits() 1392 for (unsigned i = NumValidBits; i < NumBits; ++i) in getValueBits() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/TableGen/ |
| H A D | Record.cpp | 355 ProfileBitsInit(ID, makeArrayRef(getTrailingObjects<Init *>(), NumBits)); in Profile() 465 static bool canFitInBitfield(int64_t Value, unsigned NumBits) { in canFitInBitfield() argument 467 return (NumBits >= sizeof(Value) * 8) || in canFitInBitfield() 468 (Value >> NumBits == 0) || (Value >> (NumBits-1) == -1); in canFitInBitfield() 1370 unsigned NumBits = T->getNumBits(); in convertInitializerBitRange() local 1375 if (Bit >= NumBits) in convertInitializerBitRange()
|