Lines Matching refs:Emit
90 void Emit(uint32_t Val, unsigned NumBits) {
115 Emit((uint32_t)Val, NumBits);
117 Emit((uint32_t)Val, 32);
118 Emit((uint32_t)(Val >> 32), NumBits-32);
137 // Emit the bits with VBR encoding, NumBits-1 bits at a time.
139 Emit((Val & ((1 << (NumBits-1))-1)) | (1 << (NumBits-1)), NumBits);
143 Emit(Val, NumBits);
152 // Emit the bits with VBR encoding, NumBits-1 bits at a time.
154 Emit(((uint32_t)Val & ((1 << (NumBits-1))-1)) |
159 Emit((uint32_t)Val, NumBits);
162 /// EmitCode - Emit the specified code.
164 Emit(Val, CurCodeSize);
205 // Emit a placeholder, which will be replaced when the block is popped.
206 Emit(0, bitc::BlockSizeWidth);
259 /// EmitAbbreviatedLiteral - Emit a literal value according to its abbrev
264 // If the abbrev specifies the literal value to use, don't emit
270 /// EmitAbbreviatedField - Emit a single scalar field value with the specified
281 Emit((unsigned)V, (unsigned)Op.getEncodingData());
288 Emit(BitCodeAbbrevOp::EncodeChar6((char)V), 6);
321 // If this record has blob data, emit it, otherwise we must have record
326 // Emit a vbr6 to indicate the number of elements present.
329 // Emit each field.
336 // Emit a vbr6 to indicate the number of elements present.
339 // Emit each field.
344 // If this record has blob data, emit it, otherwise we must have record
347 // Emit a vbr6 to indicate the number of elements present.
360 // Emit each field as a literal byte.
369 assert(Vals[RecordIdx] < 256 && "Value too large to emit as blob");
390 /// EmitRecord - Emit the specified record to the stream, using an abbrev if
396 // If we don't have an abbrev to use, emit this in its fully unabbreviated
412 /// EmitRecordWithAbbrev - Emit a record with the specified abbreviation.
420 /// EmitRecordWithBlob - Emit the specified record to the stream, using an
421 /// abbrev that includes a blob at the end. The blob data to emit is
455 // Emit the abbreviation as a DEFINE_ABBREV record.
462 Emit(Op.isLiteral(), 1);
466 Emit(Op.getEncoding(), 3);
477 // Emit the abbreviation as a record.
495 /// ID, emit a BLOCKINFO_CODE_SETBID record.
516 /// EmitBlockInfoAbbrev - Emit a DEFINE_ABBREV record for the specified