/external/llvm-project/llvm/lib/DebugInfo/CodeView/ |
D | TypeIndexDiscovery.cpp | 70 SmallVectorImpl<TiReference> &Refs) { in handleMethodOverloadList() argument 86 Refs.push_back({TiRefKind::TypeRef, Offset + 4, 1}); in handleMethodOverloadList() 96 SmallVectorImpl<TiReference> &Refs) { in handleBaseClass() argument 101 Refs.push_back({TiRefKind::TypeRef, Offset + 4, 1}); in handleBaseClass() 106 SmallVectorImpl<TiReference> &Refs) { in handleEnumerator() argument 116 SmallVectorImpl<TiReference> &Refs) { in handleDataMember() argument 122 Refs.push_back({TiRefKind::TypeRef, Offset + 4, 1}); in handleDataMember() 128 SmallVectorImpl<TiReference> &Refs) { in handleOverloadedMethod() argument 133 Refs.push_back({TiRefKind::TypeRef, Offset + 4, 1}); in handleOverloadedMethod() 138 SmallVectorImpl<TiReference> &Refs) { in handleOneMethod() argument [all …]
|
D | TypeRecordHelpers.cpp | 49 SmallVector<TypeIndex, 1> Refs; in getModifiedType() local 50 discoverTypeIndices(CVT, Refs); in getModifiedType() 51 return Refs.front(); in getModifiedType()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/ |
D | TypeIndexDiscovery.cpp | 69 SmallVectorImpl<TiReference> &Refs) { in handleMethodOverloadList() argument 85 Refs.push_back({TiRefKind::TypeRef, Offset + 4, 1}); in handleMethodOverloadList() 95 SmallVectorImpl<TiReference> &Refs) { in handleBaseClass() argument 100 Refs.push_back({TiRefKind::TypeRef, Offset + 4, 1}); in handleBaseClass() 105 SmallVectorImpl<TiReference> &Refs) { in handleEnumerator() argument 115 SmallVectorImpl<TiReference> &Refs) { in handleDataMember() argument 121 Refs.push_back({TiRefKind::TypeRef, Offset + 4, 1}); in handleDataMember() 127 SmallVectorImpl<TiReference> &Refs) { in handleOverloadedMethod() argument 132 Refs.push_back({TiRefKind::TypeRef, Offset + 4, 1}); in handleOverloadedMethod() 137 SmallVectorImpl<TiReference> &Refs) { in handleOneMethod() argument [all …]
|
D | TypeRecordHelpers.cpp | 49 SmallVector<TypeIndex, 1> Refs; in getModifiedType() local 50 discoverTypeIndices(CVT, Refs); in getModifiedType() 51 return Refs.front(); in getModifiedType()
|
D | TypeHashing.cpp | 36 SmallVector<TiReference, 4> Refs; in hashType() local 37 discoverTypeIndices(RecordData, Refs); in hashType() 43 for (const auto &Ref : Refs) { in hashType()
|
/external/llvm-project/clang/unittests/Basic/ |
D | FileEntryTest.cpp | 59 RefMaps Refs; in TEST() local 60 FileEntryRef R1 = Refs.addFile("1"); in TEST() 61 FileEntryRef R2 = Refs.addFile("2"); in TEST() 62 FileEntryRef R1Also = Refs.addFileAlias("1-also", R1); in TEST() 76 RefMaps Refs; in TEST() local 78 OptionalFileEntryRefDegradesToFileEntryPtr M1 = Refs.addFile("1"); in TEST() 79 OptionalFileEntryRefDegradesToFileEntryPtr M2 = Refs.addFile("2"); in TEST() 82 Refs.addFileAlias("1-also", *M1); in TEST() 94 RefMaps Refs; in TEST() local 95 FileEntryRef R1 = Refs.addFile("1"); in TEST() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/index/ |
D | MemIndex.h | 24 MemIndex(SymbolRange &&Symbols, RefRange &&Refs, RelationRange &&Relations) { in MemIndex() argument 27 for (const std::pair<SymbolID, llvm::ArrayRef<Ref>> &R : Refs) in MemIndex() 28 this->Refs.try_emplace(R.first, R.second.begin(), R.second.end()); in MemIndex() 37 MemIndex(SymbolRange &&Symbols, RefRange &&Refs, RelationRange &&Relations, in MemIndex() argument 40 std::forward<RefRange>(Refs), in MemIndex() 48 static std::unique_ptr<SymbolIndex> build(SymbolSlab Symbols, RefSlab Refs, 71 llvm::DenseMap<SymbolID, llvm::ArrayRef<Ref>> Refs; variable
|
D | Ref.h | 121 const_iterator begin() const { return Refs.begin(); } in begin() 122 const_iterator end() const { return Refs.end(); } in end() 124 size_t size() const { return Refs.size(); } in size() 126 bool empty() const { return Refs.empty(); } in empty() 130 sizeof(value_type) * Refs.capacity(); in bytes() 157 RefSlab(std::vector<value_type> Refs, llvm::BumpPtrAllocator Arena, 159 : Arena(std::move(Arena)), Refs(std::move(Refs)), NumRefs(NumRefs) {} 162 std::vector<value_type> Refs;
|
D | YAMLSerialization.cpp | 43 llvm::Optional<RefBundle> Refs; member 268 static void mapping(IO &IO, RefBundle &Refs) { in mapping() 270 Refs.first); in mapping() 272 IO.mapRequired("References", Refs.second); in mapping() 380 } else if (IO.mapTag("!Refs", Variant.Refs.hasValue())) { in mapping() 382 Variant.Refs.emplace(); in mapping() 383 MappingTraits<RefBundle>::mapping(IO, *Variant.Refs); in mapping() 414 if (O.Refs) in writeYAML() 415 for (auto &Sym : *O.Refs) { in writeYAML() 417 Entry.Refs = Sym; in writeYAML() [all …]
|
D | Ref.cpp | 52 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()
|
D | Serialization.h | 44 llvm::Optional<RefSlab> Refs; member 57 const RefSlab *Refs = nullptr; member 68 Refs(I.Refs ? I.Refs.getPointer() : nullptr), in IndexFileOut()
|
D | MemIndex.cpp | 19 std::unique_ptr<SymbolIndex> MemIndex::build(SymbolSlab Slab, RefSlab Refs, in build() argument 22 const auto BackingDataSize = Slab.bytes() + Refs.bytes(); in build() 23 auto Data = std::make_pair(std::move(Slab), std::move(Refs)); in build() 76 auto SymRefs = Refs.find(ReqID); in refs() 77 if (SymRefs == Refs.end()) in refs() 113 return Index.getMemorySize() + Refs.getMemorySize() + in estimateMemoryUsage()
|
D | FileIndex.cpp | 89 auto Refs = Collector.takeRefs(); in indexSymbols() local 97 Syms.bytes(), Refs.size(), Refs.numRefs(), Refs.bytes(), in indexSymbols() 99 return std::make_tuple(std::move(Syms), std::move(Refs), in indexSymbols() 143 if (Index.Refs) { in FileShardedIndex() 144 for (const auto &SymRefs : *Index.Refs) { in FileShardedIndex() 147 It.first->getValue().Refs.insert(&R); in FileShardedIndex() 204 for (const auto *Ref : It->getValue().Refs) { in getShard() 208 IF.Refs = std::move(RefB).build(); in getShard() 240 std::unique_ptr<RefSlab> Refs, in update() argument 249 if (!Refs) { in update() [all …]
|
D | Serialization.cpp | 373 void writeRefs(const SymbolID &ID, llvm::ArrayRef<Ref> Refs, in writeRefs() argument 376 writeVar(Refs.size(), OS); in writeRefs() 377 for (const auto &Ref : Refs) { in writeRefs() 513 RefSlab::Builder Refs; in readRIFF() local 517 Refs.insert(RefsBundle.first, Ref); in readRIFF() 521 Result.Refs = std::move(Refs).build(); in readRIFF() 581 std::vector<std::pair<SymbolID, std::vector<Ref>>> Refs; in writeRIFF() local 582 if (Data.Refs) { in writeRIFF() 583 for (const auto &Sym : *Data.Refs) { in writeRIFF() 584 Refs.emplace_back(Sym); in writeRIFF() [all …]
|
/external/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
D | TypeIndexDiscovery.h | 27 SmallVectorImpl<TiReference> &Refs); 29 SmallVectorImpl<TiReference> &Refs); 38 SmallVectorImpl<TiReference> &Refs); 40 SmallVectorImpl<TiReference> &Refs);
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/CodeView/ |
D | TypeIndexDiscovery.h | 27 SmallVectorImpl<TiReference> &Refs); 29 SmallVectorImpl<TiReference> &Refs); 38 SmallVectorImpl<TiReference> &Refs); 40 SmallVectorImpl<TiReference> &Refs);
|
/external/llvm-project/clang-tools-extra/clangd/index/dex/ |
D | Dex.h | 46 Dex(SymbolRange &&Symbols, RefsRange &&Refs, RelationsRange &&Relations) in Dex() argument 50 for (auto &&Ref : Refs) in Dex() 51 this->Refs.try_emplace(Ref.first, Ref.second); in Dex() 61 Dex(SymbolRange &&Symbols, RefsRange &&Refs, RelationsRange &&Relations, in Dex() argument 63 : Dex(std::forward<SymbolRange>(Symbols), std::forward<RefsRange>(Refs), in Dex() 110 llvm::DenseMap<SymbolID, llvm::ArrayRef<Ref>> Refs; variable
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | SmallString.h | 34 SmallString(std::initializer_list<StringRef> Refs) in SmallString() argument 36 this->append(Refs); in SmallString() 75 void assign(std::initializer_list<StringRef> Refs) { in assign() argument 77 append(Refs); in assign() 105 void append(std::initializer_list<StringRef> Refs) { in append() argument 107 for (const StringRef &Ref : Refs) in append() 111 for (const StringRef &Ref : Refs) { in append()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | SerializationTests.cpp | 162 ASSERT_TRUE(bool(ParsedYAML->Refs)); in TEST() 164 *ParsedYAML->Refs, in TEST() 167 auto Ref1 = ParsedYAML->Refs->begin()->second.front(); in TEST() 202 for (const auto &Refs : Slab) in YAMLFromRefs() local 203 Result.push_back(toYAML(Refs)); in YAMLFromRefs() 226 ASSERT_TRUE(In2->Refs); in TEST() 232 EXPECT_THAT(YAMLFromRefs(*In2->Refs), in TEST() 233 UnorderedElementsAreArray(YAMLFromRefs(*In->Refs))); in TEST() 261 ASSERT_TRUE(In->Refs); in TEST() 267 EXPECT_THAT(YAMLFromRefs(*In->Refs), in TEST() [all …]
|
D | SymbolCollectorTests.cpp | 279 Refs = Factory->Collector->takeRefs(); 291 RefSlab Refs; member in clang::clangd::__anon67d79e040111::SymbolCollectorTest 665 TEST_F(SymbolCollectorTest, Refs) { in TEST_F() argument 703 EXPECT_THAT(Refs, Contains(Pair(findSymbol(Symbols, "Foo").ID, in TEST_F() 705 EXPECT_THAT(Refs, Contains(Pair(findSymbol(Symbols, "Bar").ID, in TEST_F() 707 EXPECT_THAT(Refs, Contains(Pair(findSymbol(Symbols, "func").ID, in TEST_F() 709 EXPECT_THAT(Refs, Not(Contains(Pair(findSymbol(Symbols, "NS").ID, _)))); in TEST_F() 710 EXPECT_THAT(Refs, Contains(Pair(findSymbol(Symbols, "MACRO").ID, in TEST_F() 716 EXPECT_THAT(Refs, Contains(Pair(findSymbol(MainSymbols, "a").ID, _))); in TEST_F() 717 EXPECT_THAT(Refs, Contains(Pair(findSymbol(MainSymbols, "b").ID, _))); in TEST_F() [all …]
|
D | FindTargetTests.cpp | 934 std::vector<ReferenceLoc> Refs; in annotateReferencesInFoo() local 936 findExplicitReferences(Func->getBody(), [&Refs](ReferenceLoc R) { in annotateReferencesInFoo() 937 Refs.push_back(std::move(R)); in annotateReferencesInFoo() 940 findExplicitReferences(NS, [&Refs, &NS](ReferenceLoc R) { in annotateReferencesInFoo() 944 Refs.push_back(std::move(R)); in annotateReferencesInFoo() 950 llvm::sort(Refs, [&](const ReferenceLoc &L, const ReferenceLoc &R) { in annotateReferencesInFoo() 956 for (unsigned I = 0; I < Refs.size(); ++I) { in annotateReferencesInFoo() 957 auto &R = Refs[I]; in annotateReferencesInFoo() 980 for (unsigned I = 0; I < Refs.size(); ++I) in annotateReferencesInFoo() 981 DumpedReferences += std::string(llvm::formatv("{0}: {1}\n", I, Refs[I])); in annotateReferencesInFoo()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | ModuleSummaryIndexYAML.h | 140 std::vector<uint64_t> Refs; 184 io.mapOptional("Refs", summary.Refs); 217 std::vector<ValueInfo> Refs; 218 for (auto &RefGUID : FSum.Refs) { 221 Refs.push_back(ValueInfo(/*IsAnalysis=*/false, &*V.find(RefGUID))); 227 /*NumInsts=*/0, FunctionSummary::FFlags{}, /*EntryCount=*/0, Refs, 240 std::vector<uint64_t> Refs; 242 Refs.push_back(VI.getGUID()); 248 static_cast<bool>(FSum->flags().CanAutoHide), Refs,
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | ModuleSummaryIndexYAML.h | 141 std::vector<uint64_t> Refs; 185 io.mapOptional("Refs", summary.Refs); 218 std::vector<ValueInfo> Refs; 219 for (auto &RefGUID : FSum.Refs) { 222 Refs.push_back(ValueInfo(/*IsAnalysis=*/false, &*V.find(RefGUID))); 229 /*NumInsts=*/0, FunctionSummary::FFlags{}, /*EntryCount=*/0, Refs, 243 std::vector<uint64_t> Refs; 245 Refs.push_back(VI.getGUID()); 251 static_cast<bool>(FSum->flags().CanAutoHide), Refs,
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | FindTarget.cpp | 755 llvm::SmallVector<ReferenceLoc, 2> Refs; in refInDecl() member 760 Refs.push_back(ReferenceLoc{D->getQualifierLoc(), in refInDecl() 768 Refs.push_back( in refInDecl() 779 Refs.push_back(ReferenceLoc{D->getQualifierLoc(), in refInDecl() 801 Refs.push_back(ReferenceLoc{getQualifierLoc(*ND), in refInDecl() 810 Refs.push_back(ReferenceLoc{DG->getQualifierLoc(), in refInDecl() 819 return V.Refs; in refInDecl() 825 llvm::SmallVector<ReferenceLoc, 2> Refs; in refInStmt() member 828 Refs.push_back(ReferenceLoc{E->getNestedNameSpecifierLoc(), in refInStmt() 835 Refs.push_back(ReferenceLoc{E->getQualifierLoc(), in refInStmt() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/indexer/ |
D | IndexerMain.cpp | 73 Refs.insert(Sym.first, Ref); in create() 89 Result.Refs = std::move(Refs).build(); in ~IndexActionFactory() 100 RefSlab::Builder Refs; member in clang::clangd::__anon17bd40e40111::IndexActionFactory
|