| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Bitstream/ |
| H A D | BitstreamReader.h | 190 Expected<word_t> Read(unsigned NumBits) { in Read() argument 193 assert(NumBits && NumBits <= BitsInWord && in Read() 199 if (BitsInCurWord >= NumBits) { in Read() 200 word_t R = CurWord & (~word_t(0) >> (BitsInWord - NumBits)); in Read() 203 CurWord >>= (NumBits & Mask); in Read() 205 BitsInCurWord -= NumBits; in Read() 210 unsigned BitsLeft = NumBits - BitsInCurWord; in Read() 228 R |= R2 << (NumBits - BitsLeft); in Read() 233 Expected<uint32_t> ReadVBR(unsigned NumBits) { in ReadVBR() argument 234 Expected<unsigned> MaybeRead = Read(NumBits); in ReadVBR() [all …]
|
| H A D | BitstreamWriter.h | 202 void Emit(uint32_t Val, unsigned NumBits) { in Emit() argument 203 assert(NumBits && NumBits <= 32 && "Invalid value size!"); in Emit() 204 assert((Val & ~(~0U >> (32-NumBits))) == 0 && "High bits set!"); in Emit() 206 if (CurBit + NumBits < 32) { in Emit() 207 CurBit += NumBits; in Emit() 218 CurBit = (CurBit+NumBits) & 31; in Emit() 229 void EmitVBR(uint32_t Val, unsigned NumBits) { in EmitVBR() argument 230 assert(NumBits <= 32 && "Too many bits to emit!"); in EmitVBR() 231 uint32_t Threshold = 1U << (NumBits-1); in EmitVBR() 235 Emit((Val & ((1 << (NumBits-1))-1)) | (1 << (NumBits-1)), NumBits); in EmitVBR() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/TextAPI/ |
| H A D | Architecture.cpp | 24 #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()
|
| /netbsd-src/external/apache2/llvm/dist/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 < NumBits) in APSInt() 35 if (ActiveBits < NumBits) in APSInt()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/ |
| H A D | Boolean.h | 56 APSInt toAPSInt(unsigned NumBits) const { in toAPSInt() argument 57 return APSInt(toAPSInt().zextOrTrunc(NumBits), true); in toAPSInt() 84 static Boolean min(unsigned NumBits) { return Boolean(false); } in min() argument 85 static Boolean max(unsigned NumBits) { return Boolean(true); } in max() argument 106 static Boolean from(T Value, unsigned NumBits) { in from() argument 110 static bool inRange(int64_t Value, unsigned NumBits) { in inRange() argument
|
| H A D | Integral.h | 109 APSInt toAPSInt(unsigned NumBits) const { 111 return APSInt(toAPSInt().sextOrTrunc(NumBits), !Signed); 113 return APSInt(toAPSInt().zextOrTrunc(NumBits), !Signed); 151 static Integral min(unsigned NumBits) { 154 static Integral max(unsigned NumBits) { 178 template <typename T> static Integral from(T Value, unsigned NumBits) { 182 static bool inRange(int64_t Value, unsigned NumBits) {
|
| H A D | ByteCodeExprGen.h | 194 bool emitConst(PrimType T, unsigned NumBits, const llvm::APInt &Value, 200 unsigned NumBits = getIntWidth(Ty); in emitConst() local 201 APInt WrappedValue(NumBits, Value, std::is_signed<T>::value); in emitConst() 202 return emitConst(*Ctx.classify(Ty), NumBits, WrappedValue, E); in emitConst()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 209 KnownBits extractBits(unsigned NumBits, unsigned BitPosition) const { in extractBits() 210 return KnownBits(Zero.extractBits(NumBits, BitPosition), in extractBits() 211 One.extractBits(NumBits, BitPosition)); in extractBits() 380 KnownBits extractBits(unsigned NumBits, unsigned BitPosition) { in extractBits() 381 return KnownBits(Zero.extractBits(NumBits, BitPosition), in extractBits() 382 One.extractBits(NumBits, BitPosition)); in extractBits()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
| H A D | Thumb2InstrInfo.cpp | 623 unsigned NumBits = 0; in rewriteT2FrameIndex() local 632 NumBits = 8; in rewriteT2FrameIndex() 637 NumBits = 12; in rewriteT2FrameIndex() 645 NumBits = 8; in rewriteT2FrameIndex() 659 NumBits = 8; in rewriteT2FrameIndex() 673 case ARMII::AddrModeT2_i7s4: NumBits = 9; OffsetMask = 0x3; break; in rewriteT2FrameIndex() 674 case ARMII::AddrModeT2_i7s2: NumBits = 8; OffsetMask = 0x1; break; in rewriteT2FrameIndex() 675 default: NumBits = 7; OffsetMask = 0x0; break; in rewriteT2FrameIndex() 683 NumBits = 8 + 2; in rewriteT2FrameIndex() 689 NumBits = 8; // 8 bits scaled by 4 in rewriteT2FrameIndex() [all …]
|
| H A D | ARMBaseRegisterInfo.cpp | 713 unsigned NumBits = 0; in isFrameOffsetLegal() local 723 NumBits = 8; in isFrameOffsetLegal() 726 NumBits = 12; in isFrameOffsetLegal() 731 NumBits = 8; in isFrameOffsetLegal() 736 NumBits = 12; in isFrameOffsetLegal() 739 NumBits = 8; in isFrameOffsetLegal() 742 NumBits = (BaseReg == ARM::SP ? 8 : 5); in isFrameOffsetLegal() 759 unsigned Mask = (1 << NumBits) - 1; in isFrameOffsetLegal()
|
| H A D | ThumbRegisterInfo.cpp | 386 unsigned NumBits = (FrameReg == ARM::SP) ? 8 : 5; in rewriteFrameIndex() local 395 unsigned Mask = (1 << NumBits) - 1; in rewriteFrameIndex() 411 NumBits = 5; in rewriteFrameIndex() 412 Mask = (1 << NumBits) - 1; in rewriteFrameIndex()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/ |
| H A D | Waymarking.h | 119 template <unsigned NumBits> struct WaymarkingTraits { 122 NUM_BITS = NumBits, 191 template <unsigned NumBits> 193 const uint8_t WaymarkingTraits<NumBits>::TagsData<
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 483 static bool canEvaluateShifted(Value *V, unsigned NumBits, bool IsLeftShift, in canEvaluateShifted() argument 502 return canEvaluateShifted(I->getOperand(0), NumBits, IsLeftShift, IC, I) && in canEvaluateShifted() 503 canEvaluateShifted(I->getOperand(1), NumBits, IsLeftShift, IC, I); in canEvaluateShifted() 507 return canEvaluateShiftedShift(NumBits, IsLeftShift, I, IC, CxtI); in canEvaluateShifted() 513 return canEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in canEvaluateShifted() 514 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted() 522 if (!canEvaluateShifted(IncValue, NumBits, IsLeftShift, IC, PN)) in canEvaluateShifted() 594 static Value *getShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, in getShiftedValue() argument 599 return IC.Builder.CreateShl(C, NumBits); in getShiftedValue() 601 return IC.Builder.CreateLShr(C, NumBits); in getShiftedValue() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Bitcode/ |
| H A D | BitcodeAnalyzer.h | 67 uint64_t NumBits; member 78 : NumInstances(0), NumBits(0), NumSubBlocks(0), NumAbbrevs(0), in PerBlockIDStats()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/ |
| H A D | AsmWriterEmitter.cpp | 372 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() 487 unsigned NumBits = Log2_32_Ceil(Commands.size()); in EmitPrintInstruction() local 488 assert(NumBits <= BitsLeft && "consistency error"); in EmitPrintInstruction() 491 O << "\n // Fragment " << i << " encoded into " << NumBits in EmitPrintInstruction() 498 << ((1 << NumBits)-1) << ") {\n" in EmitPrintInstruction() 509 << ((1 << NumBits)-1) << ") {\n" in EmitPrintInstruction() 520 BitsLeft -= NumBits; in EmitPrintInstruction()
|
| H A D | FixedLenDecoderEmitter.cpp | 273 unsigned NumBits; // number of bits to filter member in __anonb45472a50311::Filter 456 unsigned NumBits) const; 548 : Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed), in Filter() 557 : Owner(&owner), StartBit(startBit), NumBits(numBits), Mixed(mixed) { in Filter() 558 assert(StartBit + NumBits - 1 < Owner->BitWidth); in Filter() 571 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits); in Filter() 602 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) in recurse() 623 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) { in recurse() 666 TableInfo.Table.push_back(NumBits); in emitTableEntry() 1002 unsigned StartBit, unsigned NumBits) const { in fieldFromInsn() [all …]
|
| H A D | SearchableTableEmitter.cpp | 165 unsigned NumBits = BI->getNumBits(); in searchableFieldType() local 166 if (NumBits <= 8) in searchableFieldType() 168 if (NumBits <= 16) in searchableFieldType() 170 if (NumBits <= 32) in searchableFieldType() 172 if (NumBits <= 64) in searchableFieldType()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/M68k/Disassembler/ |
| H A D | M68kDisassembler.cpp | 75 uint64_t readBits(unsigned NumBits); 184 uint64_t M68kInstructionReader::readBits(unsigned NumBits) { in readBits() argument 185 assert((size() >= NumBits) && "not enough bits to read"); in readBits() 194 while (BitsRead < NumBits) { in readBits() 196 unsigned ToRead = std::min(NumBits, AvailableThisWord); in readBits()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/PDB/ |
| H A D | PDBTypes.h | 485 #define VARIANT_WIDTH(Enum, NumBits) \ argument 487 return NumBits; 510 #define VARIANT_APSINT(Enum, NumBits, IsUnsigned) \ argument 512 return APSInt(APInt(NumBits, Value.Enum), IsUnsigned);
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/ |
| H A D | PPExpressions.cpp | 384 unsigned NumBits; in EvaluateValue() local 386 NumBits = TI.getIntWidth(); in EvaluateValue() 388 NumBits = TI.getWCharWidth(); in EvaluateValue() 390 NumBits = TI.getChar16Width(); in EvaluateValue() 392 NumBits = TI.getChar32Width(); in EvaluateValue() 394 NumBits = TI.getCharWidth(); in EvaluateValue() 397 llvm::APSInt Val(NumBits); in EvaluateValue()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
| H A D | Type.cpp | 269 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { in get() argument 270 assert(NumBits >= MIN_INT_BITS && "bitwidth too small"); in get() 271 assert(NumBits <= MAX_INT_BITS && "bitwidth too large"); in get() 274 switch (NumBits) { in get() 285 IntegerType *&Entry = C.pImpl->IntegerTypes[NumBits]; in get() 288 Entry = new (C.pImpl->Alloc) IntegerType(C, NumBits); in get()
|
| H A D | DataLayout.cpp | 846 unsigned NumBits = getPointerTypeSizeInBits(Ty); in getIntPtrType() local 847 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIntPtrType() 868 unsigned NumBits = getIndexTypeSizeInBits(Ty); in getIndexType() local 869 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIndexType()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
| H A D | TargetRegisterInfo.h | 1210 void moveNBits(unsigned NumBits) { in moveNBits() argument 1211 assert(NumBits < 32 && "Undefined behavior spotted!"); in moveNBits() 1213 CurrentChunk >>= NumBits; in moveNBits() 1215 Idx += NumBits; in moveNBits()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRAsmBackend.cpp | 373 auto NumBits = Info.TargetSize + Info.TargetOffset; in applyFixup() local 374 auto NumBytes = (NumBits / 8) + ((NumBits % 8) == 0 ? 0 : 1); in applyFixup()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/TextAPI/ |
| H A D | Architecture.h | 28 #define ARCHINFO(Arch, Type, SubType, NumBits) AK_##Arch, argument
|