Home
last modified time | relevance | path

Searched refs:Strings (Results 1 – 25 of 183) sorted by relevance

12345678

/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSerialization.cpp108 return Strings[StringIndex]; in consumeString()
214 std::vector<llvm::StringRef> Strings; member
485 if (!Strings) in readRIFF()
486 return Strings.takeError(); in readRIFF()
493 auto IGN = readIncludeGraphNode(SrcsReader, Strings->Strings); in readRIFF()
510 Symbols.insert(readSymbol(SymbolReader, Strings->Strings, Origin)); in readRIFF()
519 auto RefsBundle = readRefs(RefsReader, Strings->Strings); in readRIFF()
539 readCompileCommand(CmdReader, Strings->Strings); in readRIFF()
570 StringTableOut Strings; in writeRIFF() local
591 Strings.intern(File); in writeRIFF()
[all …]
H A DSymbol.cpp46 static void own(Symbol &S, llvm::UniqueStringSaver &Strings) { in own() argument
47 visitStrings(S, [&](llvm::StringRef &V) { V = Strings.save(V); }); in own()
64 llvm::UniqueStringSaver Strings(NewArena); in build() local
66 own(S, Strings); in build()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/
H A DStringsAndChecksums.h32 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()
97 bool hasStrings() const { return Strings != nullptr; } in hasStrings()
[all …]
H A DDebugCrossImpSubsection.h73 DebugStringTableSubsection &Strings)
75 Strings(Strings) {}
87 DebugStringTableSubsection &Strings;
H A DDebugSubsectionVisitor.h90 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-15.0.7/llvm/lib/DebugInfo/CodeView/
H A DStringsAndChecksums.cpp23 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 DDebugChecksumsSubsection.cpp64 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 DDebugCrossImpSubsection.cpp56 Strings.insert(Module); in addImport()
82 return Strings.getIdForString(L1->getKey()) < in commit()
83 Strings.getIdForString(L2->getKey()); in commit()
88 Imp.ModuleNameOffset = Strings.getIdForString(Item->getKey()); in commit()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DNativeEnumInjectedSources.cpp39 const PDBStringTable &Strings; member in llvm::pdb::__anon5c1a43630111::NativeInjectedSource
44 PDBFile &File, const PDBStringTable &Strings) in NativeInjectedSource() argument
45 : Entry(Entry), Strings(Strings), File(File) {} in NativeInjectedSource()
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() argument
100 : File(File), Stream(IJS), Strings(Strings), Cur(Stream.begin()) {} in NativeEnumInjectedSources()
111 File, Strings); in getChildAtIndex()
[all …]
H A DPDBStringTableBuilder.cpp47 return Strings.insert(S); in insert()
51 return Strings.getIdForString(S); in getIdForString()
55 return Strings.getStringForId(Id); in getStringForId()
143 Size += Strings.calculateSerializedSize(); in calculateSerializedSize()
150 const codeview::DebugStringTableSubsection &Strings) { in setStrings() argument
151 this->Strings = Strings; in setStrings()
159 H.ByteSize = Strings.calculateSerializedSize(); in writeHeader()
167 if (auto EC = Strings.commit(Writer)) in writeStrings()
176 uint32_t BucketCount = computeBucketCount(Strings.size()); in writeHashTable()
181 for (auto &Pair : Strings) { in writeHashTable()
[all …]
H A DInjectedSourceStream.cpp28 Error InjectedSourceStream::reload(const PDBStringTable &Strings) { in reload() argument
52 auto Name = Strings.getStringForID(Entry.second.FileNI); in reload()
55 auto ObjName = Strings.getStringForID(Entry.second.ObjNI); in reload()
58 auto VName = Strings.getStringForID(Entry.second.VFileNI); in reload()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/remote/
H A DMarshallingTests.cpp42 return Strings.save(URI.toString()).begin(); in testPathURI()
58 Sym.Name = Strings.save("Foo"); in createSymbol()
83 Sym.ReturnType = Strings.save("Foo"); in createSymbol()
92 llvm::UniqueStringSaver Strings(Arena); in TEST() local
100 Strings); in TEST()
110 Strings)); in TEST()
147 llvm::UniqueStringSaver Strings(Arena); in TEST() local
216 llvm::UniqueStringSaver Strings(Arena); in TEST() local
239 llvm::UniqueStringSaver Strings(Arena); in TEST() local
405 llvm::UniqueStringSaver Strings(Arena); in TEST() local
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DNonRelocatableStringpool.cpp15 if (S.empty() && !Strings.empty()) in getEntry()
20 auto I = Strings.insert({S, DwarfStringPoolEntry()}); in getEntry()
37 auto InsertResult = Strings.insert({S, Entry}); in internString()
44 Result.reserve(Strings.size()); in getEntriesForEmission()
45 for (const auto &E : Strings) in getEntriesForEmission()
/llvm-project-15.0.7/llvm/lib/IR/
H A DAssumptions.cpp30 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-15.0.7/clang/tools/libclang/
H A DCXString.cpp113 CXStringSet *createSet(const std::vector<std::string> &Strings) { in createSet() argument
115 Set->Count = Strings.size(); in createSet()
116 Set->Strings = new CXString[Set->Count]; in createSet()
118 Set->Strings[SI] = createDup(Strings[SI]); in createSet()
187 clang_disposeString(set->Strings[SI]); in clang_disposeStringSet()
188 delete[] set->Strings; in clang_disposeStringSet()
/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DCodeViewYAMLDebugSections.cpp204 std::vector<StringRef> Strings; member
357 IO.mapRequired("Strings", Strings); in map()
503 for (const auto &Str : this->Strings) in toCodeViewSubsection()
561 return Strings.getString(Offset); in getFileName()
566 const DebugStringTableSubsectionRef &Strings, in fromCodeViewSubsection() argument
581 const DebugStringTableSubsectionRef &Strings, in fromCodeViewSubsection() argument
619 const DebugStringTableSubsectionRef &Strings, in fromCodeViewSubsection() argument
656 const DebugStringTableSubsectionRef &Strings, in fromCodeViewSubsection() argument
702 Result->Strings.push_back(S); in fromCodeViewSubsection()
723 auto ES = Strings.getString(F.FrameFunc); in fromCodeViewSubsection()
[all …]
/llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/
H A DDWARFDieManualExtractTest.cpp70 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-15.0.7/llvm/unittests/Object/
H A DOffloadingTest.cpp20 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-15.0.7/llvm/lib/MC/
H A DStringTableBuilder.cpp141 std::vector<StringPair *> Strings; in finalizeStringTable() local
142 Strings.reserve(StringIndexMap.size()); in finalizeStringTable()
144 Strings.push_back(&P); in finalizeStringTable()
146 multikeySort(Strings, 0); in finalizeStringTable()
150 for (StringPair *P : Strings) { in finalizeStringTable()
/llvm-project-15.0.7/llvm/test/MC/MachO/
H A Dlinker-options.ll12 ; CHECK-OBJ: Strings [
18 ; CHECK-OBJ: Strings [
25 ; CHECK-OBJ: Strings [
/llvm-project-15.0.7/llvm/test/tools/yaml2obj/XCOFF/
H A Dstring-table.yaml2 ## `ContentSize`, `Length`, `Strings` and/or `RawContent` can be specified in
73 ## We can specify `Strings` for a string table. Default contents (ie. symbol
77 ## Case 7: produce a string table with specified `Strings` directly. In this
99 Strings:
103 ## Case 8: if the number of `Strings` is greater than or equal to the number
144 ## Case 9: if the number of `Strings` is less than the number of default
188 ## We can specify both `ContentSize` and `Strings` when `ContentSize` is equal
191 ## Case 10: produce a string table with specified `ContentSize` and `Strings`
204 ## `ContentSize` and `Strings` when the `ContentSize` is greater
218 ## than the final content size. None of `ContentSize`, `Strings` or
[all …]
/llvm-project-15.0.7/llvm/lib/Remarks/
H A DRemarkStringTable.cpp66 std::vector<StringRef> Strings{StrTab.size()}; in serialize() local
68 Strings[KV.second] = KV.first(); in serialize()
69 return Strings; in serialize()
/llvm-project-15.0.7/llvm/test/DebugInfo/PDB/
H A Dannotation.test15 # READOBJ-NEXT: Strings [
57 Strings:
61 Strings:
/llvm-project-15.0.7/llvm/unittests/Support/
H A DBinaryStreamTest.cpp268 StringRef Strings[] = {"1", "2", "3", "4"}; in TEST_F() local
284 EXPECT_THAT_ERROR(Writer.writeCString(Strings[0]), Succeeded()); in TEST_F()
290 EXPECT_EQ(Str, Strings[0]); in TEST_F()
464 reinterpret_cast<const uint8_t *>(Strings.data()), Strings.size()); in TEST_F()
811 StringRef Strings[] = {"First", "Second", "Third", "Fourth"}; in TEST_F() local
814 for (auto S : Strings) in TEST_F()
821 for (auto S : Strings) in TEST_F()
830 EXPECT_EQ(makeArrayRef(Strings), makeArrayRef(InStrings)); in TEST_F()
876 StringRef Strings[] = {"First", "Second", "Third", "Fourth"}; in TEST_F() local
880 for (auto &Str : Strings) { in TEST_F()
[all …]
/llvm-project-15.0.7/clang-tools-extra/modularize/
H A DModularizeUtilities.cpp153 SmallVector<StringRef, 32> Strings; in loadSingleHeaderListsAndDependencies() local
154 listBuffer.get()->getBuffer().split(Strings, "\n", -1, false); in loadSingleHeaderListsAndDependencies()
157 for (SmallVectorImpl<StringRef>::iterator I = Strings.begin(), in loadSingleHeaderListsAndDependencies()
158 E = Strings.end(); in loadSingleHeaderListsAndDependencies()
226 SmallVector<StringRef, 32> Strings; in loadProblemHeaderList() local
227 listBuffer.get()->getBuffer().split(Strings, "\n", -1, false); in loadProblemHeaderList()
230 for (SmallVectorImpl<StringRef>::iterator I = Strings.begin(), in loadProblemHeaderList()
231 E = Strings.end(); in loadProblemHeaderList()

12345678