Home
last modified time | relevance | path

Searched refs:BitCodeAbbrevOp (Results 1 – 15 of 15) sorted by relevance

/external/clang/lib/Serialization/
DASTWriterDecl.cpp1673 Abv->Add(BitCodeAbbrevOp(serialization::DECL_FIELD)); in WriteDeclAbbrevs()
1675 Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // DeclContext in WriteDeclAbbrevs()
1676 Abv->Add(BitCodeAbbrevOp(0)); // LexicalDeclContext in WriteDeclAbbrevs()
1677 Abv->Add(BitCodeAbbrevOp(0)); // isInvalidDecl in WriteDeclAbbrevs()
1678 Abv->Add(BitCodeAbbrevOp(0)); // HasAttrs in WriteDeclAbbrevs()
1679 Abv->Add(BitCodeAbbrevOp(0)); // isImplicit in WriteDeclAbbrevs()
1680 Abv->Add(BitCodeAbbrevOp(0)); // isUsed in WriteDeclAbbrevs()
1681 Abv->Add(BitCodeAbbrevOp(0)); // isReferenced in WriteDeclAbbrevs()
1682 Abv->Add(BitCodeAbbrevOp(0)); // TopLevelDeclInObjCContainer in WriteDeclAbbrevs()
1683 Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 2)); // AccessSpecifier in WriteDeclAbbrevs()
[all …]
DASTWriter.cpp720 Abv->Add(BitCodeAbbrevOp(serialization::TYPE_EXT_QUAL)); in WriteTypeAbbrevs()
721 Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Type in WriteTypeAbbrevs()
722 Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 3)); // Quals in WriteTypeAbbrevs()
727 Abv->Add(BitCodeAbbrevOp(serialization::TYPE_FUNCTION_PROTO)); in WriteTypeAbbrevs()
729 Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // ReturnType in WriteTypeAbbrevs()
730 Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // NoReturn in WriteTypeAbbrevs()
731 Abv->Add(BitCodeAbbrevOp(0)); // HasRegParm in WriteTypeAbbrevs()
732 Abv->Add(BitCodeAbbrevOp(0)); // RegParm in WriteTypeAbbrevs()
733 Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 4)); // CC in WriteTypeAbbrevs()
734 Abv->Add(BitCodeAbbrevOp(0)); // ProducesResult in WriteTypeAbbrevs()
[all …]
DGlobalModuleIndex.cpp754 Abbrev->Add(BitCodeAbbrevOp(IDENTIFIER_INDEX)); in writeIndex()
755 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); in writeIndex()
756 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); in writeIndex()
/external/llvm/lib/Bitcode/Reader/
DBitstreamReader.cpp55 const BitCodeAbbrevOp &Op) { in readAbbreviatedField()
60 case BitCodeAbbrevOp::Array: in readAbbreviatedField()
61 case BitCodeAbbrevOp::Blob: in readAbbreviatedField()
63 case BitCodeAbbrevOp::Fixed: in readAbbreviatedField()
66 case BitCodeAbbrevOp::VBR: in readAbbreviatedField()
69 case BitCodeAbbrevOp::Char6: in readAbbreviatedField()
70 return BitCodeAbbrevOp::DecodeChar6(Cursor.Read(6)); in readAbbreviatedField()
76 const BitCodeAbbrevOp &Op) { in skipAbbreviatedField()
81 case BitCodeAbbrevOp::Array: in skipAbbreviatedField()
82 case BitCodeAbbrevOp::Blob: in skipAbbreviatedField()
[all …]
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp559 if (AbbrevToUse && !BitCodeAbbrevOp::isChar6(Str[i])) in writeStringRecord()
760 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_POINTER)); in writeTypeTable()
761 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, NumBits)); in writeTypeTable()
762 Abbv->Add(BitCodeAbbrevOp(0)); // Addrspace = 0 in writeTypeTable()
767 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_FUNCTION)); in writeTypeTable()
768 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // isvararg in writeTypeTable()
769 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Array)); in writeTypeTable()
770 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, NumBits)); in writeTypeTable()
776 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_STRUCT_ANON)); in writeTypeTable()
777 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // ispacked in writeTypeTable()
[all …]
/external/swiftshader/third_party/LLVM/lib/Bitcode/Writer/
DBitcodeWriter.cpp147 if (AbbrevToUse && !BitCodeAbbrevOp::isChar6(Str[i])) in WriteStringRecord()
199 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_POINTER)); in WriteTypeTable()
200 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, in WriteTypeTable()
202 Abbv->Add(BitCodeAbbrevOp(0)); // Addrspace = 0 in WriteTypeTable()
207 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_FUNCTION)); in WriteTypeTable()
208 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // isvararg in WriteTypeTable()
209 Abbv->Add(BitCodeAbbrevOp(0)); // FIXME: DEAD value, remove in LLVM 3.0 in WriteTypeTable()
210 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Array)); in WriteTypeTable()
211 Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, in WriteTypeTable()
217 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_STRUCT_ANON)); in WriteTypeTable()
[all …]
/external/clang/lib/Frontend/
DSerializedDiagnosticPrinter.cpp430 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // File ID. in AddSourceLocationAbbrev()
431 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Line. in AddSourceLocationAbbrev()
432 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Column. in AddSourceLocationAbbrev()
433 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Offset; in AddSourceLocationAbbrev()
456 Abbrev->Add(BitCodeAbbrevOp(RECORD_VERSION)); in EmitBlockInfoBlock()
457 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); in EmitBlockInfoBlock()
474 Abbrev->Add(BitCodeAbbrevOp(RECORD_DIAG)); in EmitBlockInfoBlock()
475 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 3)); // Diag level. in EmitBlockInfoBlock()
477 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // Category. in EmitBlockInfoBlock()
478 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // Mapped Diag ID. in EmitBlockInfoBlock()
[all …]
DTestModuleFileExtension.cpp28 Abv->Add(BitCodeAbbrevOp(FIRST_EXTENSION_RECORD_ID)); in writeExtensionContents()
29 Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // # of characters in writeExtensionContents()
30 Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // message in writeExtensionContents()
/external/llvm/include/llvm/Bitcode/
DBitCodes.h87 class BitCodeAbbrevOp {
100 explicit BitCodeAbbrevOp(uint64_t V) : Val(V), IsLiteral(true) {} in BitCodeAbbrevOp() function
101 explicit BitCodeAbbrevOp(Encoding E, uint64_t Data = 0)
156 template <> struct isPodLike<BitCodeAbbrevOp> { static const bool value=true; };
162 SmallVector<BitCodeAbbrevOp, 32> OperandList;
171 const BitCodeAbbrevOp &getOperandInfo(unsigned N) const {
175 void Add(const BitCodeAbbrevOp &OpInfo) {
DBitstreamWriter.h263 void EmitAbbreviatedLiteral(const BitCodeAbbrevOp &Op, uintty V) { in EmitAbbreviatedLiteral()
274 void EmitAbbreviatedField(const BitCodeAbbrevOp &Op, uintty V) { in EmitAbbreviatedField()
280 case BitCodeAbbrevOp::Fixed: in EmitAbbreviatedField()
284 case BitCodeAbbrevOp::VBR: in EmitAbbreviatedField()
288 case BitCodeAbbrevOp::Char6: in EmitAbbreviatedField()
289 Emit(BitCodeAbbrevOp::EncodeChar6((char)V), 6); in EmitAbbreviatedField()
314 const BitCodeAbbrevOp &Op = Abbv->getOperandInfo(i++); in EmitRecordWithAbbrevImpl()
319 assert(Op.getEncoding() != BitCodeAbbrevOp::Array && in EmitRecordWithAbbrevImpl()
320 Op.getEncoding() != BitCodeAbbrevOp::Blob && in EmitRecordWithAbbrevImpl()
328 const BitCodeAbbrevOp &Op = Abbv->getOperandInfo(i); in EmitRecordWithAbbrevImpl()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Bitcode/
DBitCodes.h84 class BitCodeAbbrevOp {
97 explicit BitCodeAbbrevOp(uint64_t V) : Val(V), IsLiteral(true) {} in BitCodeAbbrevOp() function
98 explicit BitCodeAbbrevOp(Encoding E, uint64_t Data = 0)
163 SmallVector<BitCodeAbbrevOp, 8> OperandList;
175 const BitCodeAbbrevOp &getOperandInfo(unsigned N) const { in getOperandInfo()
179 void Add(const BitCodeAbbrevOp &OpInfo) { in Add()
DBitstreamReader.h448 void ReadAbbreviatedLiteral(const BitCodeAbbrevOp &Op, in ReadAbbreviatedLiteral()
455 void ReadAbbreviatedField(const BitCodeAbbrevOp &Op, in ReadAbbreviatedField()
462 case BitCodeAbbrevOp::Fixed: in ReadAbbreviatedField()
465 case BitCodeAbbrevOp::VBR: in ReadAbbreviatedField()
468 case BitCodeAbbrevOp::Char6: in ReadAbbreviatedField()
469 Vals.push_back(BitCodeAbbrevOp::DecodeChar6(Read(6))); in ReadAbbreviatedField()
495 const BitCodeAbbrevOp &Op = Abbv->getOperandInfo(i);
498 } else if (Op.getEncoding() == BitCodeAbbrevOp::Array) {
504 const BitCodeAbbrevOp &EltEnc = Abbv->getOperandInfo(++i);
509 } else if (Op.getEncoding() == BitCodeAbbrevOp::Blob) {
[all …]
DBitstreamWriter.h262 void EmitAbbreviatedLiteral(const BitCodeAbbrevOp &Op, uintty V) { in EmitAbbreviatedLiteral()
273 void EmitAbbreviatedField(const BitCodeAbbrevOp &Op, uintty V) { in EmitAbbreviatedField()
279 case BitCodeAbbrevOp::Fixed: in EmitAbbreviatedField()
283 case BitCodeAbbrevOp::VBR: in EmitAbbreviatedField()
287 case BitCodeAbbrevOp::Char6: in EmitAbbreviatedField()
288 Emit(BitCodeAbbrevOp::EncodeChar6((char)V), 6); in EmitAbbreviatedField()
311 const BitCodeAbbrevOp &Op = Abbv->getOperandInfo(i); in EmitRecordWithAbbrevImpl()
316 } else if (Op.getEncoding() == BitCodeAbbrevOp::Array) { in EmitRecordWithAbbrevImpl()
319 const BitCodeAbbrevOp &EltEnc = Abbv->getOperandInfo(++i); in EmitRecordWithAbbrevImpl()
343 } else if (Op.getEncoding() == BitCodeAbbrevOp::Blob) { in EmitRecordWithAbbrevImpl()
[all …]
/external/llvm/unittests/Bitcode/
DBitstreamReaderTest.cpp201 Abbrev->Add(BitCodeAbbrevOp(RecordID)); in TEST()
202 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); in TEST()
/external/llvm/tools/llvm-bcanalyzer/
Dllvm-bcanalyzer.cpp642 const BitCodeAbbrevOp &Op = Abbv->getOperandInfo(i); in ParseBlock()
643 if (!Op.isEncoding() || Op.getEncoding() != BitCodeAbbrevOp::Array) in ParseBlock()