Home
last modified time | relevance | path

Searched refs:BitsLeft (Results 1 – 4 of 4) sorted by relevance

/external/llvm/include/llvm/Bitcode/
DBitstreamReader.h282 unsigned BitsLeft = NumBits - BitsInCurWord; in Read() local
287 if (BitsLeft > BitsInCurWord) in Read()
290 word_t R2 = CurWord & (~word_t(0) >> (BitsInWord - BitsLeft)); in Read()
293 CurWord >>= (BitsLeft & Mask); in Read()
295 BitsInCurWord -= BitsLeft; in Read()
297 R |= R2 << (NumBits - BitsLeft); in Read()
/external/llvm/utils/TableGen/
DAsmWriterEmitter.cpp316 unsigned BitsLeft = OpcodeInfoBits-AsmStrBits; in EmitPrintInstruction() local
335 if (NumBits > BitsLeft) { in EmitPrintInstruction()
346 (uint64_t)i << (OpcodeInfoBits-BitsLeft); in EmitPrintInstruction()
357 BitsLeft -= NumBits; in EmitPrintInstruction()
369 unsigned BytesNeeded = ((OpcodeInfoBits - BitsLeft) + 7) / 8; in EmitPrintInstruction()
374 BitsOS << " uint" << ((BitsLeft < (OpcodeInfoBits - 32)) ? 64 : 32) in EmitPrintInstruction()
392 if (BitsLeft < (OpcodeInfoBits - 32)) in EmitPrintInstruction()
411 BitsLeft = OpcodeInfoBits-AsmStrBits; in EmitPrintInstruction()
418 assert(NumBits <= BitsLeft && "consistency error"); in EmitPrintInstruction()
427 << (OpcodeInfoBits-BitsLeft) << ") & " in EmitPrintInstruction()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Bitcode/
DBitstreamReader.h289 unsigned BitsLeft = NumBits-BitsInCurWord; in Read() local
292 R |= (CurWord & (~0U >> (32-BitsLeft))) << BitsInCurWord; in Read()
295 if (BitsLeft != 32) in Read()
296 CurWord >>= BitsLeft; in Read()
299 BitsInCurWord = 32-BitsLeft; in Read()
/external/swiftshader/third_party/LLVM/utils/TableGen/
DAsmWriterEmitter.cpp317 unsigned BitsLeft = 32-AsmStrBits; in EmitPrintInstruction() local
336 if (NumBits > BitsLeft) { in EmitPrintInstruction()
343 BitsLeft -= NumBits; in EmitPrintInstruction()
346 OpcodeInfo[i] |= InstIdxs[i] << (BitsLeft+AsmStrBits); in EmitPrintInstruction()
388 BitsLeft = 32-AsmStrBits; in EmitPrintInstruction()
395 assert(NumBits <= BitsLeft && "consistency error"); in EmitPrintInstruction()
398 BitsLeft -= NumBits; in EmitPrintInstruction()
405 O << " if ((Bits >> " << (BitsLeft+AsmStrBits) << ") & " in EmitPrintInstruction()
415 O << " switch ((Bits >> " << (BitsLeft+AsmStrBits) << ") & " in EmitPrintInstruction()