Home
last modified time | relevance | path

Searched full:refs (Results 1 – 25 of 395) sorted by relevance

12345678910>>...16

/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DTypeIndexDiscovery.cpp70 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 …]
/llvm-project/clang/unittests/Basic/
H A DFileEntryTest.cpp69 FileEntryTestHelper Refs; in TEST() local
70 FileEntryRef R1 = Refs.addFile("1"); in TEST()
71 FileEntryRef R2 = Refs.addFile("2"); in TEST()
72 FileEntryRef R1Also = Refs.addFileAlias("1-also", R1); in TEST()
73 FileEntryRef R1Redirect = Refs.addFileRedirect("1-redirect", R1); in TEST()
74 FileEntryRef R1Redirect2 = Refs.addFileRedirect("1-redirect2", R1Redirect); in TEST()
96 FileEntryTestHelper Refs; in TEST() local
97 FileEntryRef R1 = Refs.addFile("1"); in TEST()
98 FileEntryRef R2 = Refs.addFile("2"); in TEST()
99 FileEntryRef R1Also = Refs.addFileAlias("1-also", R1); in TEST()
[all …]
/llvm-project/lld/test/MachO/
H A Dweak-definition-direct-fetch.s7 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/refs-foo.s -o %t/refs-foo.o
8 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/weak-refs-foo.s -o %t/weak-refs-foo.o
45 # RUN: %lld -lSystem -o %t/weak-nonweak-dylibs -L%t -lweakfoo -lfoo %t/refs-foo.o
47 # RUN: %lld -lSystem -o %t/nonweak-weak-dylibs -L%t -lfoo -lweakfoo %t/refs-foo.o
50 # RUN: %lld -lSystem -o %t/weak-nonweak-objs %t/weakfoo.o %t/foo.o %t/refs-foo.o
52 # RUN: %lld -lSystem -o %t/nonweak-weak-objs %t/foo.o %t/weakfoo.o %t/refs-foo.o
55 # RUN: %lld -lSystem -o %t/weak-nonweak-archives %t/weakfoo.a %t/foo.a %t/refs-foo.o
57 # RUN: %lld -lSystem -o %t/nonweak-weak-archives %t/foo.a %t/weakfoo.a %t/refs-foo.o
60 ## The next 5 chunks refs-foo.symbol pairs of different types.
63 # RUN: %lld -lSystem -o %t/weak-dylib-weak-ar -L%t -lweakfoo %t/weakfoo.a %t/refs-foo.o
[all …]
H A Dlto-explicit-exports.ll9 ; RUN: llvm-as %t/refs-foo.ll -o %t/refs-foo.o
11 ; RUN: %lld -lSystem -dylib %t/foo.o %t/refs-foo.o -o %t/test-fulllto \
35 ; RUN: opt -module-summary %t/refs-foo.ll -o %t/refs-foo.thinlto.o
37 ; RUN: %lld -lSystem -dylib %t/foo.thinlto.o %t/refs-foo.thinlto.o -o %t/test-thinlto \
41 ; RUN: llvm-dis %t/refs-foo.thinlto.o.2.internalize.bc -o - | FileCheck %s --check-prefix=THINLTO-R…
46 ; THINLTO-REFS-FOO: declare dso_local void @foo()
47 ; THINLTO-REFS-FOO: define dso_local void @refs_foo()
71 ;--- refs-foo.ll
H A Dobjc.s59 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/refs-dup.s -o %t/refs-dup.o
60 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/refs-objc.s -o %t/refs-objc.o
64 # RUN: %lld -dylib %t/refs-dup.o %t/refs-objc.o -o %t/refs-dup -L%t -lHasSomeObjC -ObjC
65 # RUN: llvm-objdump --macho --syms %t/refs-dup | FileCheck %s --check-prefix=DUP-FROM-OBJC
70 # RUN: not %lld -dylib %t/refs-dup.o %t/refs-objc.o -o %t/refs-dup -L%t \
75 # RUN: not %lld -dylib %t/refs-dup.o %t/refs-objc.o -o %t/refs-dup --start-lib %t/no-objc.o \
139 #--- refs-dup.s
143 #--- refs-objc.s
H A Dlto-common-symbol-resolution.ll12 ; RUN: opt -module-summary %t/refs-foo.ll -o %t/refs-foo.o
31 ; RUN: %lld -dylib %t/defined-and-common.a %t/refs-foo.o -o %t/refs-foo
32 ; RUN: llvm-objdump --syms %t/refs-foo | FileCheck %s --check-prefix=DEFINED
33 ; RUN: %lld -dylib %t/common-and-defined.a %t/refs-foo.o -o %t/refs-foo
34 ; RUN: llvm-objdump --syms %t/refs-foo | FileCheck %s --check-prefix=COMMON
60 ; RUN: %lld -dylib %t/libfoo.dylib %t/common.o %t/refs-foo.o -o %t/test
63 ; RUN: %lld -dylib %t/common.o %t/libfoo.dylib %t/refs-foo.o -o %t/test
102 ;--- refs-foo.ll
/llvm-project/clang-tools-extra/clangd/index/
H A DMemIndex.h23 // All symbols and refs must outlive this index.
25 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,
72 bool refs(cons
88 llvm::DenseMap<SymbolID, llvm::ArrayRef<Ref>> Refs; global() variable
[all...]
H A DMemIndex.cpp18 std::unique_ptr<SymbolIndex> MemIndex::build(SymbolSlab Slab, RefSlab Refs, in build()
21 const auto BackingDataSize = Slab.bytes() + Refs.bytes(); in build()
22 auto Data = std::make_pair(std::move(Slab), std::move(Refs)); in build()
69 bool MemIndex::refs(const RefsRequest &Req, in refs()
71 trace::Span Tracer("MemIndex refs"); in refs()
74 auto SymRefs = Refs.find(ReqID); in refs()
75 if (SymRefs == Refs.end()) in refs()
81 return true; // More refs were available. in refs()
86 return false; // We reported all refs. in refs()
94 for (const auto &Pair : Refs) { in relations()
17 build(SymbolSlab Slab,RefSlab Refs,RelationSlab Relations) build() argument
68 bool MemIndex::refs(const RefsRequest &Req, refs() function in clang::clangd::MemIndex
[all...]
H A DYAMLSerialization.cpp45 std::optional<RefBundle> Refs; member
300 static void mapping(IO &IO, RefBundle &Refs) { in mapping()
302 Refs.first); in mapping()
304 IO.mapRequired("References", Refs.second); in mapping()
412 } else if (IO.mapTag("!Refs", Variant.Refs.has_value())) { in mapping()
414 Variant.Refs.emplace(); in mapping()
415 MappingTraits<RefBundle>::mapping(IO, *Variant.Refs); in mapping()
446 if (O.Refs) in writeYAML()
447 for (auto &Sym : *O.Refs) { in writeYAML()
449 Entry.Refs = Sym; in writeYAML()
[all …]
H A DSerialization.cpp371 // REFS ENCODING
372 // A refs section has data grouped by Symbol. Each symbol has:
378 void writeRefs(const SymbolID &ID, llvm::ArrayRef<Ref> Refs, in writeRefs() argument
381 writeVar(Refs.size(), OS); in writeRefs()
382 for (const auto &Ref : Refs) { in writeRefs()
455 // - refs: references to symbols
517 if (Chunks.count("refs")) { in readRIFF()
518 Reader RefsReader(Chunks.lookup("refs")); in readRIFF()
519 RefSlab::Builder Refs; in readRIFF() local
523 Refs in readRIFF()
587 std::vector<std::pair<SymbolID, std::vector<Ref>>> Refs; writeRIFF() local
716 RefSlab Refs; loadIndex() local
[all...]
/llvm-project/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct/locale.moneypunct.members/
H A Dnegative_sign.pass.cpp31 explicit Fnf(std::size_t refs = 0) in Fnf() argument
32 : std::moneypunct<char, false>(refs) {} in Fnf()
39 explicit Fnt(std::size_t refs = 0) in Fnt() argument
40 : std::moneypunct<char, true>(refs) {} in Fnt()
48 explicit Fwf(std::size_t refs = 0) in Fwf() argument
49 : std::moneypunct<wchar_t, false>(refs) {} in Fwf()
56 explicit Fwt(std::size_t refs = 0) in Fwt() argument
57 : std::moneypunct<wchar_t, true>(refs) {} in Fwt()
H A Dpositive_sign.pass.cpp30 explicit Fnf(std::size_t refs = 0) in Fnf() argument
31 : std::moneypunct<char, false>(refs) {} in Fnf()
38 explicit Fnt(std::size_t refs = 0) in Fnt() argument
39 : std::moneypunct<char, true>(refs) {} in Fnt()
47 explicit Fwf(std::size_t refs = 0) in Fwf() argument
48 : std::moneypunct<wchar_t, false>(refs) {} in Fwf()
55 explicit Fwt(std::size_t refs = 0) in Fwt() argument
56 : std::moneypunct<wchar_t, true>(refs) {} in Fwt()
H A Dfrac_digits.pass.cpp30 explicit Fnf(std::size_t refs = 0) in Fnf() argument
31 : std::moneypunct<char, false>(refs) {} in Fnf()
38 explicit Fnt(std::size_t refs = 0) in Fnt() argument
39 : std::moneypunct<char, true>(refs) {} in Fnt()
47 explicit Fwf(std::size_t refs = 0) in Fwf() argument
48 : std::moneypunct<wchar_t, false>(refs) {} in Fwf()
55 explicit Fwt(std::size_t refs = 0) in Fwt() argument
56 : std::moneypunct<wchar_t, true>(refs) {} in Fwt()
H A Dgrouping.pass.cpp30 explicit Fnf(std::size_t refs = 0) in Fnf() argument
31 : std::moneypunct<char, false>(refs) {} in Fnf()
38 explicit Fnt(std::size_t refs = 0) in Fnt() argument
39 : std::moneypunct<char, true>(refs) {} in Fnt()
47 explicit Fwf(std::size_t refs = 0) in Fwf() argument
48 : std::moneypunct<wchar_t, false>(refs) {} in Fwf()
55 explicit Fwt(std::size_t refs = 0) in Fwt() argument
56 : std::moneypunct<wchar_t, true>(refs) {} in Fwt()
H A Dcurr_symbol.pass.cpp30 explicit Fnf(std::size_t refs = 0) in Fnf() argument
31 : std::moneypunct<char, false>(refs) {} in Fnf()
38 explicit Fnt(std::size_t refs = 0) in Fnt() argument
39 : std::moneypunct<char, true>(refs) {} in Fnt()
47 explicit Fwf(std::size_t refs = 0) in Fwf() argument
48 : std::moneypunct<wchar_t, false>(refs) {} in Fwf()
55 explicit Fwt(std::size_t refs = 0) in Fwt() argument
56 : std::moneypunct<wchar_t, true>(refs) {} in Fwt()
H A Dthousands_sep.pass.cpp30 explicit Fnf(std::size_t refs = 0) in Fnf() argument
31 : std::moneypunct<char, false>(refs) {} in Fnf()
38 explicit Fnt(std::size_t refs = 0) in Fnt() argument
39 : std::moneypunct<char, true>(refs) {} in Fnt()
47 explicit Fwf(std::size_t refs = 0) in Fwf() argument
48 : std::moneypunct<wchar_t, false>(refs) {} in Fwf()
55 explicit Fwt(std::size_t refs = 0) in Fwt() argument
56 : std::moneypunct<wchar_t, true>(refs) {} in Fwt()
H A Ddecimal_point.pass.cpp30 explicit Fnf(std::size_t refs = 0) in Fnf() argument
31 : std::moneypunct<char, false>(refs) {} in Fnf()
38 explicit Fnt(std::size_t refs = 0) in Fnt() argument
39 : std::moneypunct<char, true>(refs) {} in Fnt()
47 explicit Fwf(std::size_t refs = 0) in Fwf() argument
48 : std::moneypunct<wchar_t, false>(refs) {} in Fwf()
55 explicit Fwt(std::size_t refs = 0) in Fwt() argument
56 : std::moneypunct<wchar_t, true>(refs) {} in Fwt()
H A Dneg_format.pass.cpp27 explicit Fnf(std::size_t refs = 0) in Fnf() argument
28 : std::moneypunct<char, false>(refs) {} in Fnf()
35 explicit Fnt(std::size_t refs = 0) in Fnt() argument
36 : std::moneypunct<char, true>(refs) {} in Fnt()
44 explicit Fwf(std::size_t refs = 0) in Fwf() argument
45 : std::moneypunct<wchar_t, false>(refs) {} in Fwf()
52 explicit Fwt(std::size_t refs = 0) in Fwt() argument
53 : std::moneypunct<wchar_t, true>(refs) {} in Fwt()
H A Dpos_format.pass.cpp27 explicit Fnf(std::size_t refs = 0) in Fnf() argument
28 : std::moneypunct<char, false>(refs) {} in Fnf()
35 explicit Fnt(std::size_t refs = 0) in Fnt() argument
36 : std::moneypunct<char, true>(refs) {} in Fnt()
44 explicit Fwf(std::size_t refs = 0) in Fwf() argument
45 : std::moneypunct<wchar_t, false>(refs) {} in Fwf()
52 explicit Fwt(std::size_t refs = 0) in Fwt() argument
53 : std::moneypunct<wchar_t, true>(refs) {} in Fwt()
/llvm-project/clang/test/Driver/
H A Dindirect-tls-seg-refs.c2 // RUN: %clang -### -target x86_64-unknown-linux -mno-tls-direct-seg-refs -mtls-direct-seg-refs %s …
3 // RUN: %clang -### -target x86_64-unknown-linux -mtls-direct-seg-refs -mno-tls-direct-seg-refs %s …
5 // NO-TLSDIRECT: -mno-tls-direct-seg-refs
6 // TLSDIRECT-NOT: -mno-tls-direct-seg-refs
/llvm-project/clang-tools-extra/include-cleaner/lib/
H A DHTMLReport.cpp146 // Implicit refs will be marked with a symbol just before the token.
157 std::vector<Ref> Refs;
166 return Refs[I].Type == RefType::Explicit; in includeType()
180 // FIXME: library should signal main-file refs somehow. in spellHeader()
181 // Non-physical refs to the main-file should be possible. in spellHeader()
215 int RefIndex = Refs.size(); in Reporter()
216 Refs.emplace_back(Ref{Offset, SR.RT, SR.Target}); in Reporter()
217 Ref &R = Refs.back();
243 for (unsigned I = 0; I < Refs.size(); ++I) { in write()
245 writeTarget(Refs[ in write()
155 std::vector<Ref> Refs; global() member in clang::include_cleaner::__anonf7a010870111::Reporter
359 writeInsertion(llvm::StringRef Text,llvm::ArrayRef<unsigned> Refs) writeInsertion() argument
[all...]
/llvm-project/clang-tools-extra/clangd/
H A DFindTarget.cpp630 llvm::SmallVector<ReferenceLoc> Refs; in refInDecl()
635 Refs.push_back(ReferenceLoc{D->getQualifierLoc(), in refInDecl()
643 Refs.push_back(ReferenceLoc{ in refInDecl()
660 Refs.push_back(ReferenceLoc{D->getQualifierLoc(), in refInDecl()
682 Refs.push_back(ReferenceLoc{getQualifierLoc(*ND), in refInDecl()
691 Refs.push_back(ReferenceLoc{DG->getQualifierLoc(), in refInDecl()
699 Refs.push_back(ReferenceLoc{NestedNameSpecifierLoc(), in refInDecl()
707 Refs.push_back(ReferenceLoc{NestedNameSpecifierLoc(), in refInDecl()
711 Refs.push_back(ReferenceLoc{NestedNameSpecifierLoc(), in refInDecl()
718 Refs in refInDecl()
631 llvm::SmallVector<ReferenceLoc> Refs; refInDecl() member
757 llvm::SmallVector<ReferenceLoc> Refs; refInStmt() member
867 llvm::SmallVector<ReferenceLoc> Refs; refInTypeLoc() member
[all...]
/llvm-project/clang-tools-extra/clangd/index/dex/
H A DDex.h39 Dex(SymbolRange &&Symbols, RefsRange &&Refs, RelationsRange &&Relations, in Dex() argument
44 for (auto &&Ref : Refs) in Dex()
45 this->Refs.try_emplace(Ref.first, Ref.second); in Dex()
52 // Symbols and Refs are owned by BackingData, Index takes ownership.
55 Dex(SymbolRange &&Symbols, RefsRange &&Refs, RelationsRange &&Relations, in Dex()
57 : Dex(std::forward<SymbolRange>(Symbols), std::forward<RefsRange>(Refs), in Dex()
66 Dex(SymbolRange &&Symbols, RefsRange &&Refs, RelationsRange &&Relations, in Dex()
69 : Dex(std::forward<SymbolRange>(Symbols), std::forward<RefsRange>(Refs), in Dex()
88 bool refs(const RefsRequest &Req,
140 llvm::DenseMap<SymbolID, llvm::ArrayRef<Ref>> Refs;
54 Dex(SymbolRange && Symbols,RefsRange && Refs,RelationsRange && Relations,Payload && BackingData,size_t BackingDataSize) Dex() argument
65 Dex(SymbolRange && Symbols,RefsRange && Refs,RelationsRange && Relations,FileRange && Files,IndexContents IdxContents,Payload && BackingData,size_t BackingDataSize) Dex() argument
118 llvm::DenseMap<SymbolID, llvm::ArrayRef<Ref>> Refs; global() variable
[all...]
/llvm-project/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/
H A Dpositive_sign.pass.cpp31 explicit Fnf(const std::string& nm, std::size_t refs = 0) in Fnf() argument
32 : std::moneypunct_byname<char, false>(nm, refs) {} in Fnf()
39 explicit Fnt(const std::string& nm, std::size_t refs = 0) in Fnt() argument
40 : std::moneypunct_byname<char, true>(nm, refs) {} in Fnt()
48 explicit Fwf(const std::string& nm, std::size_t refs = 0) in Fwf() argument
49 : std::moneypunct_byname<wchar_t, false>(nm, refs) {} in Fwf()
56 explicit Fwt(const std::string& nm, std::size_t refs = 0) in Fwt() argument
57 : std::moneypunct_byname<wchar_t, true>(nm, refs) {} in Fwt()
H A Dfrac_digits.pass.cpp31 explicit Fnf(const std::string& nm, std::size_t refs = 0) in Fnf() argument
32 : std::moneypunct_byname<char, false>(nm, refs) {} in Fnf()
39 explicit Fnt(const std::string& nm, std::size_t refs = 0) in Fnt() argument
40 : std::moneypunct_byname<char, true>(nm, refs) {} in Fnt()
48 explicit Fwf(const std::string& nm, std::size_t refs = 0) in Fwf() argument
49 : std::moneypunct_byname<wchar_t, false>(nm, refs) {} in Fwf()
56 explicit Fwt(const std::string& nm, std::size_t refs = 0) in Fwt() argument
57 : std::moneypunct_byname<wchar_t, true>(nm, refs) {} in Fwt()

12345678910>>...16