Searched refs:Shard (Results 1 – 9 of 9) sorted by relevance
| /llvm-project-15.0.7/mlir/lib/Support/ |
| H A D | StorageUniquer.cpp | 81 struct Shard { struct in __anon95dc17a30111::ParametricStorageUniquer 97 getOrCreateUnsafe(Shard &shard, LookupKey &key, in getOrCreateUnsafe() 107 void destroyShardInstances(Shard &shard) { in destroyShardInstances() 131 if (Shard *shard = shards[i].load()) { in ~ParametricStorageUniquer() 142 Shard &shard = getShard(hashValue); in getOrCreate() 171 Shard &shard = getShardFor(storage); in mutate() 181 Shard &getShard(unsigned hashValue) { in getShard() 191 Shard *newShard = new Shard(); in getShard() 201 Shard &getShardFor(BaseStorage *storage) { in getShardFor() 219 std::unique_ptr<std::atomic<Shard *>[]> shards; [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | BackgroundIndexLoader.cpp | 61 auto Shard = Storage->loadShard(StartSourceFile); in loadShard() local 62 if (!Shard || !Shard->Sources) { in loadShard() 67 LS.Shard = std::move(Shard); in loadShard() 68 for (const auto &It : *LS.Shard->Sources) { in loadShard()
|
| H A D | BackgroundIndexStorage.cpp | 68 IndexFileOut Shard) const override { in storeShard() 71 [&Shard](llvm::raw_ostream &OS) { in storeShard() 72 OS << Shard; in storeShard() 88 IndexFileOut Shard) const override { in storeShard()
|
| H A D | Background.cpp | 373 if (!LS.Shard) in loadProject() 376 LS.Shard->Symbols in loadProject() 377 ? std::make_unique<SymbolSlab>(std::move(*LS.Shard->Symbols)) in loadProject() 379 auto RS = LS.Shard->Refs in loadProject() 380 ? std::make_unique<RefSlab>(std::move(*LS.Shard->Refs)) in loadProject() 383 LS.Shard->Relations in loadProject() 384 ? std::make_unique<RelationSlab>(std::move(*LS.Shard->Relations)) in loadProject()
|
| H A D | BackgroundIndexLoader.h | 37 std::unique_ptr<IndexFileIn> Shard; member
|
| H A D | Background.h | 47 IndexFileOut Shard) const = 0;
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | FileIndexTests.cpp | 643 ASSERT_TRUE(Shard); in TEST() 645 EXPECT_THAT(*Shard->Refs, IsEmpty()); in TEST() 647 *Shard->Relations, in TEST() 653 EXPECT_TRUE(Shard->Cmd); in TEST() 657 ASSERT_TRUE(Shard); in TEST() 661 *Shard->Relations, in TEST() 664 ASSERT_THAT(Shard->Sources->keys(), in TEST() 668 EXPECT_TRUE(Shard->Cmd); in TEST() 672 ASSERT_TRUE(Shard); in TEST() 676 ASSERT_THAT(Shard->Sources->keys(), in TEST() [all …]
|
| H A D | BackgroundIndexTests.cpp | 62 IndexFileOut Shard) const override { in storeShard() 65 Storage[ShardIdentifier] = llvm::to_string(Shard); in storeShard() 587 auto Shard = MSS.loadShard(testPath("A.cc")); in TEST_F() local 589 EXPECT_THAT(Shard->Sources->keys(), in TEST_F() 596 auto Shard = MSS.loadShard(testPath("A.h")); in TEST_F() local 598 EXPECT_THAT(Shard->Sources->keys(), in TEST_F() 604 auto Shard = MSS.loadShard(testPath("B.h")); in TEST_F() local 606 EXPECT_THAT(Shard->Sources->keys(), in TEST_F() 612 auto Shard = MSS.loadShard(testPath("C.h")); in TEST_F() local 613 EXPECT_THAT(*Shard->Symbols, UnorderedElementsAre()); in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/DependencyScanning/ |
| H A D | DependencyScanningFilesystem.cpp | 195 auto &Shard = SharedCache.getShardForUID(TEntry.Status.getUniqueID()); in getOrEmplaceSharedEntryForUID() local 196 return Shard.getOrEmplaceEntryForUID(TEntry.Status.getUniqueID(), in getOrEmplaceSharedEntryForUID() 206 auto &Shard = SharedCache.getShardForFilename(Filename); in findEntryByFilenameWithWriteThrough() local 207 if (const auto *Entry = Shard.findEntryByFilename(Filename)) in findEntryByFilenameWithWriteThrough()
|