Home
last modified time | relevance | path

Searched refs:Refs (Results 1 – 25 of 70) sorted by relevance

123

/llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/
H A DTypeIndexDiscovery.cpp267 Refs.push_back({TiRefKind::TypeRef, 0, 1}); in handlePointer()
271 Refs.push_back({TiRefKind::TypeRef, 8, 1}); in handlePointer()
347 handleMethodOverloadList(Content, Refs); in discoverTypeIndices()
350 handleFieldList(Content, Refs); in discoverTypeIndices()
353 handlePointer(Content, Refs); in discoverTypeIndices()
467 if (Refs.empty()) in resolveTypeIndexReferences()
473 for (const auto &Ref : Refs) { in resolveTypeIndexReferences()
488 SmallVector<TiReference, 4> Refs; in discoverTypeIndices() local
489 discoverTypeIndices(RecordData, Refs); in discoverTypeIndices()
513 Refs); in discoverTypeIndicesInSymbol()
[all …]
H A DTypeRecordHelpers.cpp49 SmallVector<TypeIndex, 1> Refs; in getModifiedType() local
50 discoverTypeIndices(CVT, Refs); in getModifiedType()
51 return Refs.front(); in getModifiedType()
H A DTypeHashing.cpp36 SmallVector<TiReference, 4> Refs; in hashType() local
37 discoverTypeIndices(RecordData, Refs); in hashType()
43 for (const auto &Ref : Refs) { in hashType()
/llvm-project-15.0.7/clang/unittests/Basic/
H A DFileEntryTest.cpp57 FileEntryTestHelper Refs; in TEST() local
58 FileEntryRef R1 = Refs.addFile("1"); in TEST()
59 FileEntryRef R2 = Refs.addFile("2"); in TEST()
74 FileEntryTestHelper Refs; in TEST() local
92 FileEntryTestHelper Refs; in TEST() local
93 FileEntryRef R1 = Refs.addFile("1"); in TEST()
94 FileEntryRef R2 = Refs.addFile("2"); in TEST()
113 FileEntryTestHelper Refs; in TEST() local
125 FileEntryTestHelper Refs; in TEST() local
154 FileEntryTestHelper Refs; in TEST() local
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DMemIndex.h25 MemIndex(SymbolRange &&Symbols, RefRange &&Refs, RelationRange &&Relations) { in MemIndex() argument
28 for (const std::pair<SymbolID, llvm::ArrayRef<Ref>> &R : Refs) in MemIndex()
29 this->Refs.try_emplace(R.first, R.second.begin(), R.second.end()); in MemIndex()
38 MemIndex(SymbolRange &&Symbols, RefRange &&Refs, RelationRange &&Relations, in MemIndex() argument
41 std::forward<RefRange>(Refs), in MemIndex()
50 MemIndex(SymbolRange &&Symbols, RefRange &&Refs, RelationRange &&Relations, in MemIndex() argument
54 std::forward<RefRange>(Refs), in MemIndex()
62 static std::unique_ptr<SymbolIndex> build(SymbolSlab Symbols, RefSlab Refs,
88 llvm::DenseMap<SymbolID, llvm::ArrayRef<Ref>> Refs; variable
H A DRef.h119 const_iterator begin() const { return Refs.begin(); } in begin()
120 const_iterator end() const { return Refs.end(); } in end()
122 size_t size() const { return Refs.size(); } in size()
124 bool empty() const { return Refs.empty(); } in empty()
128 sizeof(value_type) * Refs.capacity(); in bytes()
155 RefSlab(std::vector<value_type> Refs, llvm::BumpPtrAllocator Arena,
157 : Arena(std::move(Arena)), Refs(std::move(Refs)), NumRefs(NumRefs) {}
160 std::vector<value_type> Refs;
H A DYAMLSerialization.cpp40 llvm::Optional<RefBundle> Refs; member
253 IO.mapRequired("References", Refs.second); in mapping()
363 Variant.Refs.emplace(); in mapping()
395 if (O.Refs) in writeYAML()
396 for (auto &Sym : *O.Refs) { in writeYAML()
398 Entry.Refs = Sym; in writeYAML()
424 RefSlab::Builder Refs; in readYAML() local
443 if (Variant.Refs) in readYAML()
445 Refs.insert(Variant.Refs->first, Ref); in readYAML()
464 Result.Refs.emplace(std::move(Refs).build()); in readYAML()
[all …]
H A DSerialization.h44 llvm::Optional<RefSlab> Refs; member
57 const RefSlab *Refs = nullptr; member
68 Refs(I.Refs ? I.Refs.getPointer() : nullptr), in IndexFileOut()
H A DRef.cpp52 std::vector<Ref> Refs; in build() local
56 Refs.clear(); in build()
58 Refs.push_back(*I->second); in build()
61 llvm::sort(Refs); // By file, affects xrefs display order. in build()
62 Result.emplace_back(Sym, llvm::ArrayRef<Ref>(Refs).copy(Arena)); in build()
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()
73 auto SymRefs = Refs.find(ReqID); in refs()
74 if (SymRefs == Refs.end()) in refs()
116 return Index.getMemorySize() + Refs.getMemorySize() + in estimateMemoryUsage()
H A DFileIndex.cpp92 auto Refs = Collector.takeRefs(); in indexSymbols() local
100 Syms.bytes(), Refs.size(), Refs.numRefs(), Refs.bytes(), in indexSymbols()
146 if (Index.Refs) { in FileShardedIndex()
147 for (const auto &SymRefs : *Index.Refs) { in FileShardedIndex()
150 It.first->getValue().Refs.insert(&R); in FileShardedIndex()
207 for (const auto *Ref : It->getValue().Refs) { in getShard()
211 IF.Refs = std::move(RefB).build(); in getShard()
255 if (!Refs) { in update()
260 Item.Slab = std::move(Refs); in update()
311 for (const RefSlab *Refs : MainFileRefs) in buildIndex() local
[all …]
H A DSerialization.cpp379 writeVar(Refs.size(), OS); in writeRefs()
380 for (const auto &Ref : Refs) { in writeRefs()
517 RefSlab::Builder Refs; in readRIFF() local
525 Result.Refs = std::move(Refs).build(); in readRIFF()
586 if (Data.Refs) { in writeRIFF()
588 Refs.emplace_back(Sym); in writeRIFF()
632 if (Data.Refs) { in writeRIFF()
635 for (const auto &Sym : Refs) in writeRIFF()
714 RefSlab Refs; in loadIndex() local
721 if (I->Refs) in loadIndex()
[all …]
H A DBackground.cpp245 std::make_unique<RefSlab>(std::move(*IF->Refs)), in update()
310 [&](RefSlab R) { Index.Refs = std::move(R); }, in index()
328 assert(Index.Symbols && Index.Refs && Index.Sources && in index()
333 Index.Refs->numRefs(), Index.Sources->size()); in index()
335 SPAN_ATTACH(Tracer, "refs", int(Index.Refs->numRefs())); in index()
379 auto RS = LS.Shard->Refs in loadProject()
380 ? std::make_unique<RefSlab>(std::move(*LS.Shard->Refs)) in loadProject()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DFindTarget.cpp619 Refs.push_back(ReferenceLoc{ in refInDecl()
701 return V.Refs; in refInDecl()
728 Refs.push_back(ReferenceLoc{ in refInStmt()
746 Refs.push_back(ReferenceLoc{ in refInStmt()
768 Refs.push_back(ReferenceLoc{ in refInStmt()
819 return V.Refs; in refInStmt()
874 Refs.push_back(ReferenceLoc{ in refInTypeLoc()
881 Refs.push_back(ReferenceLoc{ in refInTypeLoc()
896 Refs.push_back( in refInTypeLoc()
904 Refs.push_back( in refInTypeLoc()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/
H A DDex.h39 Dex(SymbolRange &&Symbols, RefsRange &&Refs, RelationsRange &&Relations) in Dex() argument
43 for (auto &&Ref : Refs) in Dex()
44 this->Refs.try_emplace(Ref.first, Ref.second); in Dex()
54 Dex(SymbolRange &&Symbols, RefsRange &&Refs, RelationsRange &&Relations, in Dex() argument
56 : Dex(std::forward<SymbolRange>(Symbols), std::forward<RefsRange>(Refs), in Dex()
65 Dex(SymbolRange &&Symbols, RefsRange &&Refs, RelationsRange &&Relations, in Dex() argument
68 : Dex(std::forward<SymbolRange>(Symbols), std::forward<RefsRange>(Refs), in Dex()
118 llvm::DenseMap<SymbolID, llvm::ArrayRef<Ref>> Refs; variable
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/
H A DTypeIndexDiscovery.h27 SmallVectorImpl<TiReference> &Refs);
29 SmallVectorImpl<TiReference> &Refs);
38 SmallVectorImpl<TiReference> &Refs);
40 SmallVectorImpl<TiReference> &Refs);
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DSmallString.h35 SmallString(std::initializer_list<StringRef> Refs) in SmallString() argument
37 this->append(Refs); in SmallString()
56 void assign(std::initializer_list<StringRef> Refs) { in assign() argument
58 append(Refs); in assign()
73 void append(std::initializer_list<StringRef> Refs) { in append() argument
76 for (const StringRef &Ref : Refs) in append()
79 for (const StringRef &Ref : Refs) { in append()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DSerializationTests.cpp163 ASSERT_TRUE(bool(ParsedYAML->Refs)); in TEST()
165 *ParsedYAML->Refs, in TEST()
168 auto Ref1 = ParsedYAML->Refs->begin()->second.front(); in TEST()
203 for (const auto &Refs : Slab) in yamlFromRefs() local
204 Result.push_back(toYAML(Refs)); in yamlFromRefs()
227 ASSERT_TRUE(In2->Refs); in TEST()
233 EXPECT_THAT(yamlFromRefs(*In2->Refs), in TEST()
234 UnorderedElementsAreArray(yamlFromRefs(*In->Refs))); in TEST()
262 ASSERT_TRUE(In->Refs); in TEST()
268 EXPECT_THAT(yamlFromRefs(*In->Refs), in TEST()
[all …]
H A DSymbolCollectorTests.cpp312 Refs = Factory->Collector->takeRefs();
324 RefSlab Refs; member in clang::clangd::__anon3932027d0111::SymbolCollectorTest
777 TEST_F(SymbolCollectorTest, Refs) { in TEST_F() argument
815 EXPECT_THAT(Refs, Contains(Pair(findSymbol(Symbols, "Foo").ID, in TEST_F()
817 EXPECT_THAT(Refs, Contains(Pair(findSymbol(Symbols, "Bar").ID, in TEST_F()
874 for (auto &Entry : Refs) { in TEST_F()
982 EXPECT_THAT(Refs, IsEmpty()); in TEST_F()
1043 for (const auto &SymbolAndRefs : Refs) { in TEST_F()
1121 EXPECT_THAT(Refs, in TEST_F()
1132 EXPECT_THAT(Refs, in TEST_F()
[all …]
H A DFindTargetTests.cpp1148 std::vector<ReferenceLoc> Refs; in annotateReferencesInFoo() local
1152 [&Refs](ReferenceLoc R) { Refs.push_back(std::move(R)); }, in annotateReferencesInFoo()
1157 [&Refs, &NS](ReferenceLoc R) { in annotateReferencesInFoo()
1161 Refs.push_back(std::move(R)); in annotateReferencesInFoo()
1168 llvm::sort(Refs, [&](const ReferenceLoc &L, const ReferenceLoc &R) { in annotateReferencesInFoo()
1174 for (unsigned I = 0; I < Refs.size(); ++I) { in annotateReferencesInFoo()
1175 auto &R = Refs[I]; in annotateReferencesInFoo()
1198 for (unsigned I = 0; I < Refs.size(); ++I) in annotateReferencesInFoo()
1199 DumpedReferences += std::string(llvm::formatv("{0}: {1}\n", I, Refs[I])); in annotateReferencesInFoo()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DModuleSummaryIndexYAML.h141 std::vector<uint64_t> Refs;
186 io.mapOptional("Refs", summary.Refs);
219 std::vector<ValueInfo> Refs;
220 for (auto &RefGUID : FSum.Refs) {
223 Refs.push_back(ValueInfo(/*IsAnalysis=*/false, &*V.find(RefGUID)));
231 /*NumInsts=*/0, FunctionSummary::FFlags{}, /*EntryCount=*/0, Refs,
245 std::vector<uint64_t> Refs;
247 Refs.push_back(VI.getGUID());
253 static_cast<bool>(FSum->flags().CanAutoHide), Refs,
/llvm-project-15.0.7/clang-tools-extra/clangd/indexer/
H A DIndexerMain.cpp75 Refs.insert(Sym.first, Ref); in create()
100 Result.Refs = std::move(Refs).build(); in ~IndexActionFactory()
111 RefSlab::Builder Refs; member in clang::clangd::__anon30e346fd0111::IndexActionFactory
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransAutoreleasePool.cpp93 clearRefsIn(info.Dcl, info.Refs); in ~AutoreleasePoolRewriter()
98 clearRefsIn(*scope.Begin, info.Refs); in ~AutoreleasePoolRewriter()
99 clearRefsIn(*scope.End, info.Refs); in ~AutoreleasePoolRewriter()
100 clearRefsIn(scope.Releases.begin(), scope.Releases.end(), info.Refs); in ~AutoreleasePoolRewriter()
105 if (info.Refs.empty()) in ~AutoreleasePoolRewriter()
175 collectRefs(VD, S, info.Refs); in VisitCompoundStmt()
421 ExprSet Refs; member
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceOperandsSkip.cpp26 SetVector<Value *> Refs; in collectReferencedValues() local
33 if (!Refs.insert(Val)) in collectReferencedValues()
42 return Refs; in collectReferencedValues()
/llvm-project-15.0.7/llvm/unittests/DebugInfo/CodeView/
H A DTypeIndexDiscoveryTest.cpp27 Refs.clear(); in SetUp()
82 auto &R = Refs[RecordIndex]; in countRefs()
93 auto &RefList = Refs[RecordIndex]; in checkOneTypeReference()
124 Refs.resize(TTB->records().size()); in discoverAllTypeIndices()
127 discoverTypeIndices(Data, Refs[I]); in discoverAllTypeIndices()
132 Refs.resize(Symbols.size()); in discoverTypeIndicesInSymbols()
134 discoverTypeIndicesInSymbol(Symbols[I], Refs[I]); in discoverTypeIndicesInSymbols()
166 std::vector<SmallVector<TiReference, 4>> Refs; member in TypeIndexIteratorTest

123