/external/llvm-project/llvm/lib/Remarks/ |
D | YAMLRemarkSerializer.cpp | 61 assert(Serializer->StrTab.hasValue() && in mapping() 63 StringTable &StrTab = *Serializer->StrTab; in mapping() local 64 unsigned PassID = StrTab.add(Remark->PassName).first; in mapping() 65 unsigned NameID = StrTab.add(Remark->RemarkName).first; in mapping() 66 unsigned FunctionID = StrTab.add(Remark->FunctionName).first; in mapping() 86 assert(Serializer->StrTab.hasValue() && in mapping() 88 StringTable &StrTab = *Serializer->StrTab; in mapping() local 89 unsigned FileID = StrTab.add(File).first; in mapping() 141 assert(Serializer->StrTab.hasValue() && in mapping() 143 StringTable &StrTab = *Serializer->StrTab; in mapping() local [all …]
|
D | BitstreamRemarkSerializer.cpp | 94 const StringTable &StrTab) { in emitMetaStrTab() argument 102 StrTab.serialize(OS); in emitMetaStrTab() 235 Optional<const StringTable *> StrTab, Optional<StringRef> Filename) { in emitMetaBlock() argument 248 assert(StrTab != None && *StrTab != nullptr); in emitMetaBlock() 249 emitMetaStrTab(**StrTab); in emitMetaBlock() 260 assert(StrTab != None && *StrTab != nullptr); in emitMetaBlock() 261 emitMetaStrTab(**StrTab); in emitMetaBlock() 269 StringTable &StrTab) { in emitRemarkBlock() argument 275 R.push_back(StrTab.add(Remark.RemarkName).first); in emitRemarkBlock() 276 R.push_back(StrTab.add(Remark.PassName).first); in emitRemarkBlock() [all …]
|
D | RemarkParser.cpp | 71 ParsedStringTable StrTab) { in createRemarkParser() argument 78 return std::make_unique<YAMLStrTabRemarkParser>(Buf, std::move(StrTab)); in createRemarkParser() 80 return std::make_unique<BitstreamRemarkParser>(Buf, std::move(StrTab)); in createRemarkParser() 90 Format ParserFormat, StringRef Buf, Optional<ParsedStringTable> StrTab, in createRemarkParserFromMeta() argument 97 return createYAMLParserFromMeta(Buf, std::move(StrTab), in createRemarkParserFromMeta() 100 return createBitstreamParserFromMeta(Buf, std::move(StrTab), in createRemarkParserFromMeta() 116 Optional<ParsedStringTable> StrTab = None) in CParser() 118 StrTab ? createRemarkParser(ParserFormat, Buf, std::move(*StrTab)) in CParser()
|
D | BitstreamRemarkParser.h | 32 Optional<ParsedStringTable> StrTab; member 50 BitstreamRemarkParser(StringRef Buf, ParsedStringTable StrTab) in BitstreamRemarkParser() 52 StrTab(std::move(StrTab)) {} in BitstreamRemarkParser() 78 StringRef Buf, Optional<ParsedStringTable> StrTab = None,
|
D | RemarkStringTable.cpp | 23 StringTable::StringTable(const ParsedStringTable &Other) : StrTab() { in StringTable() 32 size_t NextID = StrTab.size(); in add() 33 auto KV = StrTab.insert({Str, NextID}); in add() 66 std::vector<StringRef> Strings{StrTab.size()}; in serialize() 67 for (const auto &KV : StrTab) in serialize()
|
D | RemarkSerializer.cpp | 39 raw_ostream &OS, remarks::StringTable StrTab) { in createRemarkSerializer() argument 45 return std::make_unique<YAMLRemarkSerializer>(OS, Mode, std::move(StrTab)); in createRemarkSerializer() 48 std::move(StrTab)); in createRemarkSerializer() 51 std::move(StrTab)); in createRemarkSerializer()
|
D | YAMLRemarkParser.h | 52 Optional<ParsedStringTable> StrTab; member 75 YAMLRemarkParser(StringRef Buf, Optional<ParsedStringTable> StrTab); 100 YAMLStrTabRemarkParser(StringRef Buf, ParsedStringTable StrTab) in YAMLStrTabRemarkParser() 101 : YAMLRemarkParser(Buf, std::move(StrTab)) {} in YAMLStrTabRemarkParser() 114 Optional<ParsedStringTable> StrTab = None,
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Remarks/ |
D | YAMLRemarkSerializer.cpp | 61 assert(Serializer->StrTab.hasValue() && in mapping() 63 StringTable &StrTab = *Serializer->StrTab; in mapping() local 64 unsigned PassID = StrTab.add(Remark->PassName).first; in mapping() 65 unsigned NameID = StrTab.add(Remark->RemarkName).first; in mapping() 66 unsigned FunctionID = StrTab.add(Remark->FunctionName).first; in mapping() 86 assert(Serializer->StrTab.hasValue() && in mapping() 88 StringTable &StrTab = *Serializer->StrTab; in mapping() local 89 unsigned FileID = StrTab.add(File).first; in mapping() 141 assert(Serializer->StrTab.hasValue() && in mapping() 143 StringTable &StrTab = *Serializer->StrTab; in mapping() local [all …]
|
D | BitstreamRemarkSerializer.cpp | 94 const StringTable &StrTab) { in emitMetaStrTab() argument 102 StrTab.serialize(OS); in emitMetaStrTab() 235 Optional<const StringTable *> StrTab, Optional<StringRef> Filename) { in emitMetaBlock() argument 248 assert(StrTab != None && *StrTab != nullptr); in emitMetaBlock() 249 emitMetaStrTab(**StrTab); in emitMetaBlock() 260 assert(StrTab != None && *StrTab != nullptr); in emitMetaBlock() 261 emitMetaStrTab(**StrTab); in emitMetaBlock() 269 StringTable &StrTab) { in emitRemarkBlock() argument 275 R.push_back(StrTab.add(Remark.RemarkName).first); in emitRemarkBlock() 276 R.push_back(StrTab.add(Remark.PassName).first); in emitRemarkBlock() [all …]
|
D | RemarkParser.cpp | 71 ParsedStringTable StrTab) { in createRemarkParser() argument 78 return std::make_unique<YAMLStrTabRemarkParser>(Buf, std::move(StrTab)); in createRemarkParser() 80 return std::make_unique<BitstreamRemarkParser>(Buf, std::move(StrTab)); in createRemarkParser() 90 Format ParserFormat, StringRef Buf, Optional<ParsedStringTable> StrTab, in createRemarkParserFromMeta() argument 97 return createYAMLParserFromMeta(Buf, std::move(StrTab), in createRemarkParserFromMeta() 100 return createBitstreamParserFromMeta(Buf, std::move(StrTab), in createRemarkParserFromMeta() 116 Optional<ParsedStringTable> StrTab = None) in CParser() 118 StrTab ? createRemarkParser(ParserFormat, Buf, std::move(*StrTab)) in CParser()
|
D | BitstreamRemarkParser.h | 32 Optional<ParsedStringTable> StrTab; member 50 BitstreamRemarkParser(StringRef Buf, ParsedStringTable StrTab) in BitstreamRemarkParser() 52 StrTab(std::move(StrTab)) {} in BitstreamRemarkParser() 78 StringRef Buf, Optional<ParsedStringTable> StrTab = None,
|
D | RemarkStringTable.cpp | 23 StringTable::StringTable(const ParsedStringTable &Other) : StrTab() { in StringTable() 32 size_t NextID = StrTab.size(); in add() 33 auto KV = StrTab.insert({Str, NextID}); in add() 66 std::vector<StringRef> Strings{StrTab.size()}; in serialize() 67 for (const auto &KV : StrTab) in serialize()
|
D | RemarkSerializer.cpp | 39 raw_ostream &OS, remarks::StringTable StrTab) { in createRemarkSerializer() argument 45 return std::make_unique<YAMLRemarkSerializer>(OS, Mode, std::move(StrTab)); in createRemarkSerializer() 48 std::move(StrTab)); in createRemarkSerializer() 51 std::move(StrTab)); in createRemarkSerializer()
|
D | YAMLRemarkParser.h | 52 Optional<ParsedStringTable> StrTab; member 75 YAMLRemarkParser(StringRef Buf, Optional<ParsedStringTable> StrTab); 100 YAMLStrTabRemarkParser(StringRef Buf, ParsedStringTable StrTab) in YAMLStrTabRemarkParser() 101 : YAMLRemarkParser(Buf, std::move(StrTab)) {} in YAMLStrTabRemarkParser() 114 Optional<ParsedStringTable> StrTab = None,
|
/external/llvm-project/llvm/unittests/Remarks/ |
D | BitstreamRemarksSerializerTest.cpp | 37 Optional<remarks::StringTable> StrTab) { in check() argument 42 if (StrTab) in check() 44 std::move(*StrTab)); in check() 69 Optional<remarks::StringTable> StrTab = None) { in check() argument 71 std::move(StrTab)); in check() 75 Optional<remarks::StringTable> StrTab = None) { in checkStandalone() argument 77 /*ExpectedMeta=*/None, std::move(StrTab)); in checkStandalone() 106 remarks::StringTable StrTab; in TEST() local 107 StrTab.add("function"); in TEST() 108 StrTab.add("pass"); in TEST() [all …]
|
D | RemarksStrTabParsingTest.cpp | 17 remarks::ParsedStringTable StrTab(Empty); in TEST() local 18 Expected<StringRef> Nothing = StrTab[0]; in TEST() 26 remarks::ParsedStringTable StrTab(Strings); in TEST() local 27 Expected<StringRef> Result = StrTab[0]; in TEST() 30 Result = StrTab[1]; in TEST() 33 Result = StrTab[2]; in TEST() 36 Result = StrTab[3]; in TEST()
|
D | YAMLRemarksSerializerTest.cpp | 28 Optional<remarks::StringTable> StrTab = None) { in check() argument 32 if (StrTab) in check() 34 std::move(*StrTab)); in check() 56 Optional<remarks::StringTable> StrTab = None) { in check() argument 59 std::move(StrTab)); in check() 64 Optional<remarks::StringTable> StrTab = None) { in checkStandalone() argument 67 /*ExpectedMeta=*/None, std::move(StrTab)); in checkStandalone() 169 StringRef StrTab("pass\0name\0func\0path\0value\0valuedebug\0argpath\0", 45); in TEST() local 202 remarks::StringTable(remarks::ParsedStringTable(StrTab))); in TEST() 207 StringRef StrTab("pass\0name\0func\0path\0value\0valuedebug\0argpath\0", 45); in TEST() local [all …]
|
D | RemarksAPITest.cpp | 81 remarks::StringTable StrTab; in TEST() local 84 EXPECT_EQ(StrTab.SerializedSize, 0UL); in TEST() 99 StrTab.internalize(R2); in TEST() 112 EXPECT_EQ(StrTab.add(R.PassName).second.data(), R2.PassName.data()); in TEST() 113 EXPECT_EQ(StrTab.add(R.RemarkName).second.data(), R2.RemarkName.data()); in TEST() 114 EXPECT_EQ(StrTab.add(R.FunctionName).second.data(), R2.FunctionName.data()); in TEST() 115 EXPECT_EQ(StrTab.add(R.Loc->SourceFilePath).second.data(), in TEST() 117 EXPECT_EQ(StrTab.add(R.Args.back().Key).second.data(), in TEST() 119 EXPECT_EQ(StrTab.add(R.Args.back().Val).second.data(), in TEST() 121 EXPECT_EQ(StrTab.add(R.Args.back().Loc->SourceFilePath).second.data(), in TEST()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Remarks/ |
D | BitstreamRemarkSerializer.h | 97 void emitMetaStrTab(const StringTable &StrTab); 108 Optional<const StringTable *> StrTab = None, 112 void emitRemarkBlock(const Remark &Remark, StringTable &StrTab); 139 StringTable StrTab); 168 Optional<const StringTable *> StrTab; member 174 Optional<const StringTable *> StrTab = None, 176 : MetaSerializer(OS), TmpHelper(None), Helper(nullptr), StrTab(StrTab), in MetaSerializer() 185 Optional<const StringTable *> StrTab = None, 187 : MetaSerializer(OS), TmpHelper(None), Helper(&Helper), StrTab(StrTab), in MetaSerializer()
|
D | YAMLRemarkSerializer.h | 38 Optional<StringTable> StrTab = None); 52 Optional<StringTable> StrTab = None); 75 StrTab.emplace(); in YAMLStrTabRemarkSerializer() 78 StringTable StrTab) in YAMLStrTabRemarkSerializer() 79 : YAMLRemarkSerializer(Format::YAMLStrTab, OS, Mode, std::move(StrTab)) {} in YAMLStrTabRemarkSerializer() 95 const StringTable &StrTab; member 99 const StringTable &StrTab) in YAMLStrTabMetaSerializer() 100 : YAMLMetaSerializer(OS, ExternalFilename), StrTab(StrTab) {} in YAMLStrTabMetaSerializer()
|
D | RemarkSerializer.h | 47 Optional<StringTable> StrTab; member 51 : SerializerFormat(SerializerFormat), OS(OS), Mode(Mode), StrTab() {} in RemarkSerializer() 83 raw_ostream &OS, remarks::StringTable StrTab);
|
/external/llvm-project/llvm/include/llvm/Remarks/ |
D | BitstreamRemarkSerializer.h | 97 void emitMetaStrTab(const StringTable &StrTab); 108 Optional<const StringTable *> StrTab = None, 112 void emitRemarkBlock(const Remark &Remark, StringTable &StrTab); 139 StringTable StrTab); 168 Optional<const StringTable *> StrTab; member 174 Optional<const StringTable *> StrTab = None, 176 : MetaSerializer(OS), TmpHelper(None), Helper(nullptr), StrTab(StrTab), in MetaSerializer() 185 Optional<const StringTable *> StrTab = None, 187 : MetaSerializer(OS), TmpHelper(None), Helper(&Helper), StrTab(StrTab), in MetaSerializer()
|
D | YAMLRemarkSerializer.h | 38 Optional<StringTable> StrTab = None); 52 Optional<StringTable> StrTab = None); 75 StrTab.emplace(); in YAMLStrTabRemarkSerializer() 78 StringTable StrTab) in YAMLStrTabRemarkSerializer() 79 : YAMLRemarkSerializer(Format::YAMLStrTab, OS, Mode, std::move(StrTab)) {} in YAMLStrTabRemarkSerializer() 95 const StringTable &StrTab; member 99 const StringTable &StrTab) in YAMLStrTabMetaSerializer() 100 : YAMLMetaSerializer(OS, ExternalFilename), StrTab(StrTab) {} in YAMLStrTabMetaSerializer()
|
/external/swiftshader/third_party/subzero/src/ |
D | IceELFObjectWriter.cpp | 99 StrTab = in ELFObjectWriter() 196 StrTab->setNumber(CurSectionNumber++); in assignSectionNumbersInfo() 197 StrTab->setNameStrIndex(ShStrTab->getIndex(StrTab->getName())); in assignSectionNumbersInfo() 198 AllSections.push_back(StrTab); in assignSectionNumbersInfo() 200 SymTab->setLinkNum(StrTab->getNumber()); in assignSectionNumbersInfo() 259 StrTab->add(FuncName); in writeFunctionCode() 413 StrTab->add(Name); in writeDataOfType() 553 StrTab->add(SymName); in writeConstantPool() 603 StrTab->add(JumpTableName); in writeJumpTable() 623 StrTab->add(Name); in setUndefinedSyms() [all …]
|
/external/llvm-project/llvm/lib/InterfaceStub/ |
D | ELFObjHandler.cpp | 286 void fillStrTabShdr(ContentSection<ELFStringTableBuilder, ELFT> &StrTab, in fillStrTabShdr() argument 288 StrTab.Shdr.sh_type = SHT_STRTAB; in fillStrTabShdr() 289 StrTab.Shdr.sh_flags = ShFlags; in fillStrTabShdr() 290 StrTab.Shdr.sh_addr = StrTab.Addr; in fillStrTabShdr() 291 StrTab.Shdr.sh_offset = StrTab.Offset; in fillStrTabShdr() 292 StrTab.Shdr.sh_info = 0; in fillStrTabShdr() 293 StrTab.Shdr.sh_size = StrTab.Size; in fillStrTabShdr() 294 StrTab.Shdr.sh_name = ShStrTab.Content.getOffset(StrTab.Name); in fillStrTabShdr() 295 StrTab.Shdr.sh_addralign = StrTab.Align; in fillStrTabShdr() 296 StrTab.Shdr.sh_entsize = 0; in fillStrTabShdr() [all …]
|