Lines Matching full:abbrev
337 static void AddSourceLocationAbbrev(llvm::BitCodeAbbrev *Abbrev) {
339 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // File ID.
340 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Line.
341 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Column.
342 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Offset;
345 static void AddRangeLocationAbbrev(llvm::BitCodeAbbrev *Abbrev) {
346 AddSourceLocationAbbrev(Abbrev);
347 AddSourceLocationAbbrev(Abbrev);
361 BitCodeAbbrev *Abbrev = new BitCodeAbbrev();
362 Abbrev->Add(BitCodeAbbrevOp(RECORD_VERSION));
363 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32));
364 Abbrevs.set(RECORD_VERSION, Stream.EmitBlockInfoAbbrev(BLOCK_META, Abbrev));
379 Abbrev = new BitCodeAbbrev();
380 Abbrev->Add(BitCodeAbbrevOp(RECORD_DIAG));
381 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 3)); // Diag level.
382 AddSourceLocationAbbrev(Abbrev);
383 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // Category.
384 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // Mapped Diag ID.
385 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Text size.
386 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // Diagnostc text.
387 Abbrevs.set(RECORD_DIAG, Stream.EmitBlockInfoAbbrev(BLOCK_DIAG, Abbrev));
390 Abbrev = new BitCodeAbbrev();
391 Abbrev->Add(BitCodeAbbrevOp(RECORD_CATEGORY));
392 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Category ID.
393 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 8)); // Text size.
394 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // Category text.
395 Abbrevs.set(RECORD_CATEGORY, Stream.EmitBlockInfoAbbrev(BLOCK_DIAG, Abbrev));
398 Abbrev = new BitCodeAbbrev();
399 Abbrev->Add(BitCodeAbbrevOp(RECORD_SOURCE_RANGE));
400 AddRangeLocationAbbrev(Abbrev);
402 Stream.EmitBlockInfoAbbrev(BLOCK_DIAG, Abbrev));
405 Abbrev = new BitCodeAbbrev();
406 Abbrev->Add(BitCodeAbbrevOp(RECORD_DIAG_FLAG));
407 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // Mapped Diag ID.
408 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Text size.
409 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // Flag name text.
411 Abbrev));
414 Abbrev = new BitCodeAbbrev();
415 Abbrev->Add(BitCodeAbbrevOp(RECORD_FILENAME));
416 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // Mapped file ID.
417 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Size.
418 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Modifcation time.
419 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Text size.
420 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // File name text.
422 Abbrev));
425 Abbrev = new BitCodeAbbrev();
426 Abbrev->Add(BitCodeAbbrevOp(RECORD_FIXIT));
427 AddRangeLocationAbbrev(Abbrev);
428 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Text size.
429 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // FixIt text.
431 Abbrev));