/llvm-project/clang-tools-extra/clangd/index/ |
H A D | Serialization.cpp | 102 llvm::StringRef consumeString(llvm::ArrayRef<llvm::StringRef> Strings) { in consumeString() argument 104 if (LLVM_UNLIKELY(StringIndex >= Strings.size())) { in consumeString() 108 return Strings[StringIndex]; in consumeString() 166 // Strings remain owned externally (e.g. by SymbolSlab). 214 std::vector<llvm::StringRef> Strings; member 252 Table.Strings.push_back(Saver.save(R.consume(Len))); in readStringTable() 266 void writeLocation(const SymbolLocation &Loc, const StringTableOut &Strings, in writeLocation() argument 268 writeVar(Strings.index(Loc.FileURI), OS); in writeLocation() 276 llvm::ArrayRef<llvm::StringRef> Strings) { in readLocation() argument 278 Loc.FileURI = Data.consumeString(Strings) in readLocation() 287 readIncludeGraphNode(Reader & Data,llvm::ArrayRef<llvm::StringRef> Strings) readIncludeGraphNode() argument 301 writeIncludeGraphNode(const IncludeGraphNode & IGN,const StringTableOut & Strings,llvm::raw_ostream & OS) writeIncludeGraphNode() argument 313 writeSymbol(const Symbol & Sym,const StringTableOut & Strings,llvm::raw_ostream & OS) writeSymbol() argument 341 readSymbol(Reader & Data,llvm::ArrayRef<llvm::StringRef> Strings,SymbolOrigin Origin) readSymbol() argument 379 writeRefs(const SymbolID & ID,llvm::ArrayRef<Ref> Refs,const StringTableOut & Strings,llvm::raw_ostream & OS) writeRefs() argument 390 readRefs(Reader & Data,llvm::ArrayRef<llvm::StringRef> Strings) readRefs() argument 429 writeCompileCommand(const InternedCompileCommand & Cmd,const StringTableOut & Strings,llvm::raw_ostream & CmdOS) writeCompileCommand() argument 438 readCompileCommand(Reader CmdReader,llvm::ArrayRef<llvm::StringRef> Strings) readCompileCommand() argument 486 auto Strings = readStringTable(Chunks.lookup("stri")); readRIFF() local 572 StringTableOut Strings; writeRIFF() local [all...] |
/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
H A D | StringsAndChecksums.h | 29 explicit StringsAndChecksumsRef(const DebugStringTableSubsectionRef &Strings); 32 StringsAndChecksumsRef(const DebugStringTableSubsectionRef &Strings, 35 void setStrings(const DebugStringTableSubsectionRef &Strings); 44 if (Strings && Checksums) in initialize() 50 if (R.kind() == DebugSubsectionKind::StringTable && !Strings) { in initialize() 66 const DebugStringTableSubsectionRef &strings() const { return *Strings; } in strings() 69 bool hasStrings() const { return Strings != nullptr; } in hasStrings() 79 const DebugStringTableSubsectionRef *Strings = nullptr; variable 91 void setStrings(const StringsPtr &SP) { Strings = SP; } in setStrings() 94 const StringsPtr &strings() const { return Strings; } in strings() [all …]
|
H A D | DebugCrossImpSubsection.h | 73 DebugStringTableSubsection &Strings) 75 Strings(Strings) {} 87 DebugStringTableSubsection &Strings;
|
H A D | DebugSubsectionVisitor.h | 90 const DebugStringTableSubsectionRef &Strings) { in visitDebugSubsections() argument 91 StringsAndChecksumsRef State(Strings); in visitDebugSubsections() 98 const DebugStringTableSubsectionRef &Strings, in visitDebugSubsections() argument 100 StringsAndChecksumsRef State(Strings, Checksums); in visitDebugSubsections()
|
/llvm-project/clang-tools-extra/clangd/unittests/remote/ |
H A D | MarshallingTests.cpp | 40 llvm::UniqueStringSaver &Strings) { in testPathURI() argument 42 return Strings.save(URI.toString()).begin(); in testPathURI() 46 llvm::UniqueStringSaver &Strings) { in createSymbol() argument 58 Sym.Name = Strings.save("Foo"); in createSymbol() 59 Sym.Scope = Strings.save("llvm::foo::bar::"); in createSymbol() 66 Location.FileURI = testPathURI(PathPrefix.str() + "Definition.cpp", Strings); in createSymbol() 73 Location.FileURI = testPathURI(PathPrefix.str() + "Declaration.h", Strings); in createSymbol() 78 Sym.Signature = Strings.save("(int X, char Y, Type T)"); in createSymbol() 79 Sym.TemplateSpecializationArgs = Strings.save("<int, char, bool, Type>"); in createSymbol() 81 Strings.save("({1: int X}, {2: char Y}, {3: Type T})"); in createSymbol() [all …]
|
/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | NativeEnumInjectedSources.cpp | 39 const PDBStringTable &Strings; 44 PDBFile &File, const PDBStringTable &Strings) in NativeInjectedSource() 45 : Entry(Entry), Strings(Strings), File(File) {} in NativeInjectedSource() argument 51 StringRef Ret = cantFail(Strings.getStringForID(Entry.FileNI), in getFileName() 57 StringRef Ret = cantFail(Strings.getStringForID(Entry.ObjNI), in getObjectFileName() 63 StringRef Ret = cantFail(Strings.getStringForID(Entry.VFileNI), in getVirtualFileName() 73 cantFail(Strings.getStringForID(Entry.VFileNI), in getCode() 99 const PDBStringTable &Strings) in NativeEnumInjectedSources() 100 : File(File), Stream(IJS), Strings(String in NativeEnumInjectedSources() argument 40 const PDBStringTable &Strings; global() member in llvm::pdb::__anonb0c5f9a60111::NativeInjectedSource [all...] |
H A D | PDBStringTableBuilder.cpp | 48 return Strings.insert(S); in insert() 52 return Strings.getIdForString(S); in getIdForString() 56 return Strings.getStringForId(Id); in getStringForId() 136 Size += sizeof(uint32_t) * computeBucketCount(Strings.size()); in calculateHashTableSize() 144 Size += Strings.calculateSerializedSize(); in calculateSerializedSize() 151 const codeview::DebugStringTableSubsection &Strings) { in setStrings() argument 152 this->Strings = Strings; in setStrings() 160 H.ByteSize = Strings.calculateSerializedSize(); in writeHeader() 168 if (auto EC = Strings.commit(Writer)) in writeStrings() 177 uint32_t BucketCount = computeBucketCount(Strings.size()); in writeHashTable() [all …]
|
H A D | InjectedSourceStream.cpp | 27 Error InjectedSourceStream::reload(const PDBStringTable &Strings) { in reload() argument 51 auto Name = Strings.getStringForID(Entry.second.FileNI); in reload() 54 auto ObjName = Strings.getStringForID(Entry.second.ObjNI); in reload() 57 auto VName = Strings.getStringForID(Entry.second.VFileNI); in reload()
|
/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | StringsAndChecksums.cpp | 23 const DebugStringTableSubsectionRef &Strings) in StringsAndChecksumsRef() argument 24 : Strings(&Strings) {} in StringsAndChecksumsRef() 27 const DebugStringTableSubsectionRef &Strings, in StringsAndChecksumsRef() argument 29 : Strings(&Strings), Checksums(&Checksums) {} in StringsAndChecksumsRef() 34 assert(!Strings && "Found a string table even though we already have one!"); in initializeStrings() 38 Strings = OwnedStrings.get(); in initializeStrings() 48 Strings = nullptr; in resetStrings() 60 Strings = OwnedStrings.get(); in setStrings()
|
H A D | DebugChecksumsSubsection.cpp | 64 DebugStringTableSubsection &Strings) in DebugChecksumsSubsection() argument 65 : DebugSubsection(DebugSubsectionKind::FileChecksums), Strings(Strings) {} in DebugChecksumsSubsection() 77 Entry.FileNameOffset = Strings.insert(FileName); in addChecksum() 111 uint32_t Offset = Strings.getIdForString(FileName); in mapChecksumOffset()
|
H A D | DebugCrossImpSubsection.cpp | 55 Strings.insert(Module); in addImport() 81 return Strings.getIdForString(L1->getKey()) < in commit() 82 Strings.getIdForString(L2->getKey()); in commit() 87 Imp.ModuleNameOffset = Strings.getIdForString(Item->getKey()); in commit()
|
/llvm-project/llvm/unittests/DWARFLinkerParallel/ |
H A D | StringPoolTest.cpp | 20 StringPool Strings; in TEST() local 28 std::pair<StringEntry *, bool> Entry = Strings.insert("test"); in TEST() 34 Entry = Strings.insert("test"); in TEST() 39 Entry = Strings.insert("test2"); in TEST() 47 StringPool Strings; in TEST() local 51 std::pair<StringEntry *, bool> Entry = Strings.insert(std::to_string(Idx)); in TEST() 58 std::pair<StringEntry *, bool> Entry = Strings.insert(std::to_string(Idx)); in TEST()
|
/llvm-project/llvm/lib/IR/ |
H A D | Assumptions.cpp | 30 SmallVector<StringRef, 8> Strings; in hasAssumption() local 31 A.getValueAsString().split(Strings, ","); in hasAssumption() 33 return llvm::is_contained(Strings, AssumptionStr); in hasAssumption() 42 SmallVector<StringRef, 8> Strings; in getAssumptions() local 43 A.getValueAsString().split(Strings, ","); in getAssumptions() 45 for (StringRef Str : Strings) in getAssumptions()
|
/llvm-project/clang/tools/libclang/ |
H A D | CXString.cpp | 122 CXStringSet *createSet(const std::vector<std::string> &Strings) { in createSet() argument 124 Set->Count = Strings.size(); in createSet() 125 Set->Strings = new CXString[Set->Count]; in createSet() 127 Set->Strings[SI] = createDup(Strings[SI]); in createSet() 196 clang_disposeString(set->Strings[SI]); in clang_disposeStringSet() 197 delete[] set->Strings; in clang_disposeStringSet()
|
/llvm-project/llvm/lib/ObjectYAML/ |
H A D | CodeViewYAMLDebugSections.cpp | 112 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 126 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 142 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 172 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 200 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings); 202 std::vector<StringRef> Strings; 214 fromCodeViewSubsection(const DebugStringTableSubsectionRef &Strings, 355 IO.mapRequired("Strings", Strings); in map() 501 for (const auto &Str : this->Strings) in toCodeViewSubsection() 204 std::vector<StringRef> Strings; global() member 541 convertOneChecksum(const DebugStringTableSubsectionRef & Strings,const FileChecksumEntry & CS) convertOneChecksum() argument 555 getFileName(const DebugStringTableSubsectionRef & Strings,const DebugChecksumsSubsectionRef & Checksums,uint32_t FileID) getFileName() argument 566 fromCodeViewSubsection(const DebugStringTableSubsectionRef & Strings,const DebugChecksumsSubsectionRef & FC) fromCodeViewSubsection() argument 581 fromCodeViewSubsection(const DebugStringTableSubsectionRef & Strings,const DebugChecksumsSubsectionRef & Checksums,const DebugLinesSubsectionRef & Lines) fromCodeViewSubsection() argument 619 fromCodeViewSubsection(const DebugStringTableSubsectionRef & Strings,const DebugChecksumsSubsectionRef & Checksums,const DebugInlineeLinesSubsectionRef & Lines) fromCodeViewSubsection() argument 656 fromCodeViewSubsection(const DebugStringTableSubsectionRef & Strings,const DebugCrossModuleImportsSubsectionRef & Imports) fromCodeViewSubsection() argument 691 fromCodeViewSubsection(const DebugStringTableSubsectionRef & Strings) fromCodeViewSubsection() argument 709 fromCodeViewSubsection(const DebugStringTableSubsectionRef & Strings,const DebugFrameDataSubsectionRef & Frames) fromCodeViewSubsection() argument 853 visitStringTable(DebugStringTableSubsectionRef & Strings,const StringsAndChecksumsRef & State) visitStringTable() argument [all...] |
/llvm-project/llvm/lib/CodeGen/ |
H A D | NonRelocatableStringpool.cpp | 15 auto I = Strings.insert({S, DwarfStringPoolEntry()}); in getEntry() 29 auto InsertResult = Strings.insert({S, Entry}); in internString() 36 Result.reserve(Strings.size()); in getEntriesForEmission() 37 for (const auto &E : Strings) in getEntriesForEmission()
|
/llvm-project/llvm/unittests/DebugInfo/DWARF/ |
H A D | DWARFDieManualExtractTest.cpp | 70 SmallVector<StringRef, NumOfLines> Strings; in TEST() local 75 Output.str().split(Strings, '\n', -1, false); in TEST() 76 ASSERT_EQ(Strings.size(), NumOfLines); in TEST() 78 EXPECT_EQ(ValidStrings[I], Strings[I]); in TEST()
|
/llvm-project/llvm/unittests/Object/ |
H A D | OffloadingTest.cpp | 20 std::vector<std::pair<std::string, std::string>> Strings(SizeDist(Rng)); in TEST() local 21 for (auto &KeyAndValue : Strings) { in TEST() 34 for (auto &KeyAndValue : Strings) in TEST() 58 for (auto &KeyAndValue : Strings) in TEST()
|
/llvm-project/llvm/lib/MC/ |
H A D | StringTableBuilder.cpp | 142 std::vector<StringPair *> Strings; in finalizeStringTable() local 143 Strings.reserve(StringIndexMap.size()); in finalizeStringTable() 145 Strings.push_back(&P); in finalizeStringTable() 147 multikeySort(Strings, 0); in finalizeStringTable() 151 for (StringPair *P : Strings) { in finalizeStringTable()
|
/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
H A D | VTuneSharedStructs.h | 47 VTuneStringTable Strings; member 88 return SPSVTuneMethodBatch::AsArgList::size(MB.Methods, MB.Strings); in size() 93 MB.Strings); in deserialize() 98 MB.Strings); in serialize()
|
/llvm-project/llvm/test/MC/MachO/ |
H A D | linker-options.ll | 12 ; CHECK-OBJ: Strings [ 18 ; CHECK-OBJ: Strings [ 25 ; CHECK-OBJ: Strings [
|
/llvm-project/llvm/lib/Remarks/ |
H A D | RemarkStringTable.cpp | 66 std::vector<StringRef> Strings{StrTab.size()}; in serialize() local 68 Strings[KV.second] = KV.first(); in serialize() 69 return Strings; in serialize()
|
/llvm-project/llvm/unittests/Support/ |
H A D | BinaryStreamTest.cpp | 269 StringRef Strings[] = {"1", "2", "3", "4"}; in TEST_F() local 285 EXPECT_THAT_ERROR(Writer.writeCString(Strings[0]), Succeeded()); in TEST_F() 291 EXPECT_EQ(Str, Strings[0]); in TEST_F() 299 EXPECT_THAT_ERROR(Writer.writeCString(Strings[1]), Succeeded()); in TEST_F() 306 EXPECT_THAT_ERROR(Writer.writeCString(Strings[2]), Succeeded()); in TEST_F() 313 EXPECT_THAT_ERROR(Writer.writeCString(Strings[3]), Succeeded()); in TEST_F() 462 StringLiteral Strings("1. Test2. Longer Test3. Really Long Test4. Super " in TEST_F() local 465 reinterpret_cast<const uint8_t *>(Strings.data()), Strings.size()); in TEST_F() 812 StringRef Strings[] = {"First", "Second", "Third", "Fourth"}; in TEST_F() local 815 for (auto S : Strings) in TEST_F() [all …]
|
/llvm-project/llvm/test/DebugInfo/PDB/ |
H A D | annotation.test | 15 # READOBJ-NEXT: Strings [ 57 Strings: 61 Strings:
|
/llvm-project/clang-tools-extra/modularize/ |
H A D | ModularizeUtilities.cpp | 152 SmallVector<StringRef, 32> Strings; in loadSingleHeaderListsAndDependencies() local 153 listBuffer.get()->getBuffer().split(Strings, "\n", -1, false); in loadSingleHeaderListsAndDependencies() 156 for (SmallVectorImpl<StringRef>::iterator I = Strings.begin(), in loadSingleHeaderListsAndDependencies() 157 E = Strings.end(); in loadSingleHeaderListsAndDependencies() 225 SmallVector<StringRef, 32> Strings; in loadProblemHeaderList() local 226 listBuffer.get()->getBuffer().split(Strings, "\n", -1, false); in loadProblemHeaderList() 229 for (SmallVectorImpl<StringRef>::iterator I = Strings.begin(), in loadProblemHeaderList() 230 E = Strings.end(); in loadProblemHeaderList()
|