Home
last modified time | relevance | path

Searched refs:StringPool (Results 1 – 24 of 24) sorted by relevance

/llvm-project/clang/include/clang/IndexSerialization/
H A DSerializablePathCollection.h27 class StringPool {
54 StringPool::StringOffsetSize Path;
56 DirPath(RootDirKind Root, const StringPool::StringOffsetSize &Path) in DirPath()
62 StringPool::StringOffsetSize Filename;
64 FilePath(const DirPath &Dir, const StringPool::StringOffsetSize &Filename) in FilePath()
69 size_t addFilePath(RootDirKind Root, const StringPool::StringOffsetSize &Dir,
73 StringPool::StringOffsetSize addDirPath(StringRef Dir);
80 StringPool Paths;
94 const StringPool::StringOffsetSize WorkDirPath;
95 const StringPool::StringOffsetSize SysRootPath;
[all …]
/llvm-project/compiler-rt/lib/orc/tests/unit/
H A Dstring_pool_test.cpp1 //===---------- string_pool_test.cpp - Unit tests for StringPool ----------===//
16 TEST(StringPool, UniquingAndComparisons) { in TEST() argument
17 StringPool SP; in TEST()
35 TEST(StringPool, Dereference) { in TEST() argument
36 StringPool SP; in TEST()
41 TEST(StringPool, ClearDeadEntries) { in TEST() argument
42 StringPool SP; in TEST()
52 TEST(StringPool, NullPtr) { in TEST() argument
58 TEST(StringPool, Hashable) { in TEST() argument
59 StringPool S in TEST()
[all...]
/llvm-project/lldb/source/Utility/
H A DConstString.cpp62 typedef llvm::StringMap<StringPoolValueType, Allocator> StringPool; typedef in Pool
103 const uint32_t string_hash = StringPool::hash(string_ref); in GetConstCStringWithStringRef()
129 const uint32_t demangled_hash = StringPool::hash(demangled); in GetConstCStringAndSetMangledCounterPart()
134 StringPool &map = pool.m_string_map; in GetConstCStringAndSetMangledCounterPart()
179 StringPool m_string_map;
185 return selectPool(StringPool::hash(s)); in selectPool()
201 static Pool &StringPool() { in StringPool() function
212 : m_string(StringPool().GetConstCString(cstr)) {} in ConstString()
215 : m_string(StringPool().GetConstCStringWithLength(cstr, cstr_len)) {} in ConstString()
218 : m_string(StringPool().GetConstCStringWithStringRef(s)) {} in ConstString()
[all …]
/llvm-project/compiler-rt/lib/orc/
H A Dstring_pool.h11 // StringPool::clearDeadEntries.
30 class StringPool {
34 /// Destroy a StringPool.
35 ~StringPool();
56 friend class StringPool; variable
119 using PoolEntry = StringPool::PoolMapEntry;
122 PooledStringPtr(StringPool::PoolMapEntry *S) : S(S) {
130 inline StringPool::~StringPool() {
137 inline PooledStringPtr StringPool
[all...]
/llvm-project/clang/lib/IndexSerialization/
H A DSerializablePathCollection.cpp16 StringPool::StringOffsetSize StringPool::add(StringRef Str) { in add()
19 return StringPool::StringOffsetSize(Offset, Str.size()); in add()
23 const StringPool::StringOffsetSize &Dir, in addFilePath()
29 StringPool::StringOffsetSize PathPool::addDirPath(StringRef Dir) { in addDirPath()
/llvm-project/llvm/include/llvm/DWARFLinker/
H A DStringPool.h50 class StringPool
55 StringPool() in StringPool() function
60 StringPool(size_t InitialSize) in StringPool() function
/llvm-project/llvm/include/llvm/DWARFLinker/Classic/
H A DDWARFLinkerDeclContext.h37 /// StringRef is interned in the given \p StringPool.
39 NonRelocatableStringpool &StringPool) { in resolve() argument
55 return StringPool.internString(ResolvedPath); in resolve()
132 /// required strings will be interned in \a StringPool.
163 NonRelocatableStringpool StringPool; variable
H A DDWARFStreamer.h213 OffsetsStringPool &StringPool) override;
225 OffsetsStringPool &StringPool, uint64_t &OutOffset);
H A DDWARFLinker.h161 OffsetsStringPool &StringPool) = 0;
704 OffsetsStringPool &StringPool, bool StripTemplate = false);
713 OffsetsStringPool &StringPool, bool SkipPubSection);
/llvm-project/llvm/unittests/DWARFLinkerParallel/
H A DStringPoolTest.cpp20 StringPool Strings; in TEST()
47 StringPool Strings; in TEST()
/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFLinkerDeclContext.cpp91 NameRef = StringPool.internString(LinkageName); in getChildDeclContext()
93 NameRef = StringPool.internString(ShortName); in getChildDeclContext()
211 StringRef ResolvedPath = PathResolver.resolve(FileName, StringPool); in getResolvedPath()
H A DDWARFStreamer.cpp1277 OffsetsStringPool &StringPool) { in emitMacroTables()
1283 emitMacroTableImpl(Table, UnitMacroMap, StringPool, MacInfoSectionSize); in emitMacroTables()
1289 emitMacroTableImpl(Table, UnitMacroMap, StringPool, MacroSectionSize); in emitMacroTables()
1295 OffsetsStringPool &StringPool, in emitMacroTableImpl()
1462 StringPool.getEntry(MacroEntry.MacroStr); in emitMacroTableImpl()
1276 emitMacroTables(DWARFContext * Context,const Offset2UnitMap & UnitMacroMap,OffsetsStringPool & StringPool) emitMacroTables() argument
1294 emitMacroTableImpl(const DWARFDebugMacro * MacroTable,const Offset2UnitMap & UnitMacroMap,OffsetsStringPool & StringPool,uint64_t & OutOffset) emitMacroTableImpl() argument
H A DDWARFLinker.cpp155 OffsetsStringPool &StringPool, in getDIENames()
165 Info.MangledName = StringPool.getEntry(MangledName); in getDIENames()
169 Info.Name = StringPool.getEntry(Name); in getDIENames()
177 Info.NameWithoutTemplate = StringPool.getEntry(*StrippedName); in resolveRelativeObjectPath()
1632 OffsetsStringPool &StringPool, in shouldSkipAttribute()
1638 Unit.addNameAccelerator(Die, StringPool.getEntry(Names->Selector), in shouldSkipAttribute()
1640 Unit.addObjCAccelerator(Die, StringPool.getEntry(Names->ClassName), in shouldSkipAttribute()
1644 Die, StringPool.getEntry(*Names->ClassNameNoCategory), SkipPubSection); in shouldSkipAttribute()
1647 Die, StringPool.getEntry(*Names->MethodNameNoCategory), SkipPubSection); in shouldSkipAttribute()
147 getDIENames(const DWARFDie & Die,AttributesInfo & Info,OffsetsStringPool & StringPool,bool StripTemplate) getDIENames() argument
1612 addObjCAccelerator(CompileUnit & Unit,const DIE * Die,DwarfStringPoolEntryRef Name,OffsetsStringPool & StringPool,bool SkipPubSection) addObjCAccelerator() argument
/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDWARFLinkerGlobalData.h95 StringPool &getStringPool() { return Strings; } in getStringPool()
149 StringPool Strings;
H A DDWARFLinkerCompileUnit.h108 StringEntry *getFileName(unsigned FileIdx, StringPool &GlobalStrings);
H A DDWARFLinkerCompileUnit.cpp189 StringPool &GlobalStrings) { in getFileName()
/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DSanitizerBinaryMetadata.cpp185 UniqueStringSaver StringPool{Alloc};
467 return StringPool.save(SectionSuffix + VersionStr + "!C");
474 // StringPool to store the new string. in getSectionStart()
475 return StringPool.save("__start_" + SectionSuffix + VersionStr);
479 return StringPool.save("__stop_" + SectionSuffix + VersionStr);
186 UniqueStringSaver StringPool{Alloc}; global() member in __anon2cce3ac30111::SanitizerBinaryMetadata
/llvm-project/clang/tools/libclang/
H A DCXString.cpp154 return TU->StringPool->getCXStringBuf(TU); in getCXStringBuf()
158 TU->StringPool->Pool.push_back(this); in dispose()
H A DCXTranslationUnit.h31 clang::cxstring::CXStringPool *StringPool; member
H A DCIndex.cpp89 D->StringPool = new cxstring::CXStringPool(); in MakeCXTranslationUnit()
4884 delete CTUnit->StringPool; in clang_getFileTime()
/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/
H A DLVSupport.cpp23 LVStringPool StringPool;
25 LVStringPool &llvm::logicalview::getStringPool() { return StringPool; } variable
/llvm-project/llvm/unittests/DebugInfo/DWARF/
H A DDwarfGenerator.h259 std::unique_ptr<DwarfStringPool> StringPool; // Entries owned by Allocator. variable
326 DwarfStringPool &getStringPool() { return *StringPool; } in getStringPool()
H A DDwarfGenerator.cpp430 StringPool(nullptr), Abbreviations(Allocator), in Generator()
523 StringPool = std::make_unique<DwarfStringPool>(Allocator, *Asm, StringRef()); in init()
587 StringPool->emitStringOffsetsTableHeader(*Asm, TLOF->getDwarfStrOffSection(), in generate()
589 StringPool->emit(*Asm, TLOF->getDwarfStrSection(), in generate()
/llvm-project/clang/lib/Frontend/
H A DCompilerInvocation.cpp873 llvm::StringSaver StringPool(Alloc); in RoundTrip()
874 auto SA = [&StringPool](const Twine &Arg) { in RoundTrip()
875 return StringPool.save(Arg).data(); in RoundTrip()
838 llvm::StringSaver StringPool(Alloc); RoundTrip() local