| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | AllocatorTest.cpp | 226 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 D | FileIndex.cpp | 260 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 D | MemIndex.cpp | 17 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 D | Symbol.cpp | 70 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const SymbolSlab &Slab) { in operator <<() argument 73 for (const auto &S : Slab) { in operator <<()
|
| H A D | StdLib.cpp | 139 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 D | Relation.h | 57 RelationSlab(RelationSlab &&Slab) = default;
|
| H A D | FileIndex.h | 96 std::shared_ptr<RefSlab> Slab; member
|
| H A D | Symbol.h | 236 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const SymbolSlab &Slab);
|
| H A D | Ref.h | 116 RefSlab(RefSlab &&Slab) = default;
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | SerializationTests.cpp | 195 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 D | TestIndex.cpp | 107 SymbolSlab::Builder Slab; in generateSymbols() local 109 Slab.insert(symbol(QName)); in generateSymbols() 110 return std::move(Slab).build(); in generateSymbols()
|
| H A D | SyncAPI.cpp | 140 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 D | FileIndexTests.cpp | 79 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 D | TestTU.cpp | 182 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 D | DiagnosticsTests.cpp | 1065 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 D | IndexTests.cpp | 92 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 D | CodeCompleteTests.cpp | 99 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 D | JITLinkMemoryManager.cpp | 347 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()
|