Home
last modified time | relevance | path

Searched refs:Slab (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/Support/
H A DAllocatorTest.cpp226 void *Slab = (void *)alignAddr((char*)MemBase + sizeof(void *), Alignment); in Allocate() local
229 ((void**)Slab)[-1] = MemBase; in Allocate()
232 return Slab; in Allocate()
235 void Deallocate(void *Slab, size_t /*Size*/, size_t /*Alignment*/) { in Deallocate() argument
236 free(((void**)Slab)[-1]); in Deallocate()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DFileIndex.cpp260 Item.Slab = std::move(Refs); in update()
284 RefSlabs.push_back(FileAndRefs.second.Slab); in buildIndex()
302 for (const auto &Slab : SymbolSlabs) { in buildIndex() local
303 for (const auto &Sym : *Slab) { in buildIndex()
328 for (const auto &Slab : SymbolSlabs) in buildIndex() local
329 for (const auto &Sym : *Slab) { in buildIndex()
377 for (const auto &Slab : SymbolSlabs) in buildIndex() local
378 StorageSize += Slab->bytes(); in buildIndex()
412 .addUsage(RefSlab.second.Slab->bytes()); in profile()
H A DMemIndex.cpp17 std::unique_ptr<SymbolIndex> MemIndex::build(SymbolSlab Slab, RefSlab Refs, in build() argument
20 const auto BackingDataSize = Slab.bytes() + Refs.bytes(); in build()
21 auto Data = std::make_pair(std::move(Slab), std::move(Refs)); in build()
H A DSymbol.cpp70 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const SymbolSlab &Slab) { in operator <<() argument
73 for (const auto &S : Slab) { in operator <<()
H A DStdLib.cpp139 SymbolSlab filter(SymbolSlab Slab, const StdLibLocation &Loc) { in filter() argument
166 for (const Symbol &S : Slab) { in filter()
193 for (const Symbol &S : Slab) { in filter()
H A DRelation.h57 RelationSlab(RelationSlab &&Slab) = default;
H A DFileIndex.h96 std::shared_ptr<RefSlab> Slab; member
H A DSymbol.h236 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const SymbolSlab &Slab);
H A DRef.h116 RefSlab(RefSlab &&Slab) = default;
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DSerializationTests.cpp195 std::vector<std::string> yamlFromSymbols(const SymbolSlab &Slab) { in yamlFromSymbols() argument
197 for (const auto &Sym : Slab) in yamlFromSymbols()
201 std::vector<std::string> yamlFromRefs(const RefSlab &Slab) { in yamlFromRefs() argument
203 for (const auto &Refs : Slab) in yamlFromRefs()
208 std::vector<std::string> yamlFromRelations(const RelationSlab &Slab) { in yamlFromRelations() argument
210 for (const auto &Rel : Slab) in yamlFromRelations()
H A DTestIndex.cpp107 SymbolSlab::Builder Slab; in generateSymbols() local
109 Slab.insert(symbol(QName)); in generateSymbols()
110 return std::move(Slab).build(); in generateSymbols()
H A DSyncAPI.cpp140 RefSlab::Builder Slab; in getRefs() local
141 Index.refs(Req, [&](const Ref &S) { Slab.insert(ID, S); }); in getRefs()
142 return std::move(Slab).build(); in getRefs()
H A DFileIndexTests.cpp79 SymbolSlab::Builder Slab; in numSlab() local
81 Slab.insert(symbol(std::to_string(I))); in numSlab()
82 return std::make_unique<SymbolSlab>(std::move(Slab).build()); in numSlab()
86 RefSlab::Builder Slab; in refSlab() local
90 Slab.insert(ID, R); in refSlab()
91 return std::make_unique<RefSlab>(std::move(Slab).build()); in refSlab()
736 auto Slab = runFuzzyFind(Idx, ""); in TEST() local
737 auto &FooSymbol = findSymbol(Slab, "FOO"); in TEST()
H A DTestTU.cpp182 const Symbol &findSymbol(const SymbolSlab &Slab, llvm::StringRef QName) { in findSymbol() argument
184 for (const Symbol &S : Slab) { in findSymbol()
197 << llvm::to_string(Slab); in findSymbol()
H A DDiagnosticsTests.cpp1065 SymbolSlab::Builder Slab; in buildIndexWithSymbol() local
1072 Slab.insert(Sym); in buildIndexWithSymbol()
1130 SymbolSlab::Builder Slab; in TEST() local
1131 Slab.insert(Sym); in TEST()
1133 MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in TEST()
1174 SymbolSlab::Builder Slab; in TEST() local
1175 Slab.insert(Sym); in TEST()
1177 MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in TEST()
1495 SymbolSlab::Builder Slab; in TEST() local
1496 Slab.insert(Sym); in TEST()
[all …]
H A DIndexTests.cpp92 RelationSlab Slab = std::move(Builder).build(); in TEST() local
93 EXPECT_THAT(Slab.lookup(A, RelationKind::BaseOf), in TEST()
108 RelationSlab Slab = std::move(Builder).build(); in TEST() local
109 EXPECT_THAT(Slab, UnorderedElementsAre(Relation{A, RelationKind::BaseOf, B}, in TEST()
H A DCodeCompleteTests.cpp99 SymbolSlab::Builder Slab; in memIndex() local
101 Slab.insert(Sym); in memIndex()
102 return MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in memIndex()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.cpp347 sys::MemoryBlock Slab; in allocate() local
356 Slab = sys::Memory::allocateMappedMemory(SegsSizes->total(), nullptr, in allocate()
365 memset(Slab.base(), 0, Slab.allocatedSize()); in allocate()
367 StandardSegsMem = {Slab.base(), in allocate()
369 FinalizeSegsMem = {(void *)((char *)Slab.base() + SegsSizes->StandardSegs), in allocate()