Lines Matching defs:Vals

312   void EmitRecordWithAbbrevImpl(unsigned Abbrev, SmallVectorImpl<uintty> &Vals,
327 assert(RecordIdx < Vals.size() && "Invalid abbrev/record");
328 EmitAbbreviatedLiteral(Op, Vals[RecordIdx]);
338 assert(RecordIdx == Vals.size() &&
351 EmitVBR(static_cast<uint32_t>(Vals.size()-RecordIdx), 6);
354 for (unsigned e = Vals.size(); RecordIdx != e; ++RecordIdx)
355 EmitAbbreviatedField(EltEnc, Vals[RecordIdx]);
364 assert(RecordIdx == Vals.size() &&
367 EmitVBR(static_cast<uint32_t>(Vals.size()-RecordIdx), 6);
381 for (unsigned e = Vals.size(); RecordIdx != e; ++RecordIdx) {
382 assert(Vals[RecordIdx] < 256 && "Value too large to emit as blob");
383 WriteByte((unsigned char)Vals[RecordIdx]);
391 assert(RecordIdx < Vals.size() && "Invalid abbrev/record");
392 EmitAbbreviatedField(Op, Vals[RecordIdx]);
396 assert(RecordIdx == Vals.size() && "Not all record operands emitted!");
406 void EmitRecord(unsigned Code, SmallVectorImpl<uintty> &Vals,
413 EmitVBR(static_cast<uint32_t>(Vals.size()), 6);
414 for (unsigned i = 0, e = static_cast<unsigned>(Vals.size()); i != e; ++i)
415 EmitVBR64(Vals[i], 6);
419 // Insert the code into Vals to treat it uniformly.
420 Vals.insert(Vals.begin(), Code);
422 EmitRecordWithAbbrev(Abbrev, Vals);
426 /// Unlike EmitRecord, the code for the record should be included in Vals as
429 void EmitRecordWithAbbrev(unsigned Abbrev, SmallVectorImpl<uintty> &Vals) {
430 EmitRecordWithAbbrevImpl(Abbrev, Vals, StringRef());
436 /// EmitRecord, this routine expects that the first entry in Vals is the code
439 void EmitRecordWithBlob(unsigned Abbrev, SmallVectorImpl<uintty> &Vals,
441 EmitRecordWithAbbrevImpl(Abbrev, Vals, Blob);
444 void EmitRecordWithBlob(unsigned Abbrev, SmallVectorImpl<uintty> &Vals,
446 return EmitRecordWithAbbrevImpl(Abbrev, Vals, StringRef(BlobData, BlobLen));
452 void EmitRecordWithArray(unsigned Abbrev, SmallVectorImpl<uintty> &Vals,
454 EmitRecordWithAbbrevImpl(Abbrev, Vals, Array);
457 void EmitRecordWithArray(unsigned Abbrev, SmallVectorImpl<uintty> &Vals,
459 return EmitRecordWithAbbrevImpl(Abbrev, Vals, StringRef(ArrayData,