Home
last modified time | relevance | path

Searched refs:Ref (Results 1 – 25 of 314) sorted by relevance

12345678910>>...13

/llvm-project/llvm/tools/llvm-readobj/
H A DWindowsResourceDumper.cpp54 void Dumper::printEntry(const ResourceEntryRef &Ref) { in printEntry() argument
55 if (Ref.checkTypeString()) { in printEntry()
56 auto NarrowStr = stripUTF16(Ref.getTypeString()); in printEntry()
61 printResourceTypeName(Ref.getTypeID(), OS); in printEntry()
65 if (Ref.checkNameString()) { in printEntry()
66 auto NarrowStr = stripUTF16(Ref.getNameString()); in printEntry()
69 SW.printNumber("Resource name (int)", Ref.getNameID()); in printEntry()
71 SW.printNumber("Data version", Ref.getDataVersion()); in printEntry()
72 SW.printHex("Memory flags", Ref.getMemoryFlags()); in printEntry()
73 SW.printNumber("Language ID", Ref.getLanguage()); in printEntry()
[all …]
/llvm-project/llvm/include/llvm/IR/
H A DTrackingMDRef.h107 TrackingMDRef Ref; variable
111 explicit TypedTrackingMDRef(T *MD) : Ref(static_cast<Metadata *>(MD)) {} in TypedTrackingMDRef()
113 TypedTrackingMDRef(TypedTrackingMDRef &&X) : Ref(std::move(X.Ref)) {} in TypedTrackingMDRef()
114 TypedTrackingMDRef(const TypedTrackingMDRef &X) : Ref(X.Ref) {} in TypedTrackingMDRef()
117 Ref = std::move(X.Ref);
122 Ref = X.Ref;
126 T *get() const { return (T *)Ref.get(); } in get()
131 bool operator==(const TypedTrackingMDRef &X) const { return Ref == X.Ref; }
132 bool operator!=(const TypedTrackingMDRef &X) const { return Ref != X.Ref; }
134 void reset() { Ref.reset(); } in reset()
[all …]
/llvm-project/libcxx/test/std/input.output/filesystems/class.path/path.member/
H A Dpath.concat.pass.cpp194 path& Ref = (LHS += RHS); in doConcatSourceTest() local
196 assert(&Ref == &LHS); in doConcatSourceTest()
201 path& Ref = LHS.concat(RHS); in doConcatSourceTest() local
203 assert(&Ref == &LHS); in doConcatSourceTest()
209 path& Ref = (LHS += RHS); in doConcatSourceTest() local
211 assert(&Ref == &LHS); in doConcatSourceTest()
216 path& Ref = LHS.concat(RHS); in doConcatSourceTest() local
218 assert(&Ref == &LHS); in doConcatSourceTest()
224 path& Ref = (LHS += RHS); in doConcatSourceTest() local
226 assert(&Ref == &LHS); in doConcatSourceTest()
[all …]
H A Dpath.append.pass.cpp250 path& Ref = (Result /= RHS); in doAppendSourceTest() local
252 assert(&Ref == &Result); in doAppendSourceTest()
257 path& Ref = LHS.append(RHS); in doAppendSourceTest() local
259 assert(&Ref == &LHS); in doAppendSourceTest()
265 path& Ref = (LHS /= RHS); in doAppendSourceTest() local
267 assert(&Ref == &LHS); in doAppendSourceTest()
272 path& Ref = LHS.append(RHS); in doAppendSourceTest() local
274 assert(&Ref == &LHS); in doAppendSourceTest()
280 path& Ref = (LHS /= RHS); in doAppendSourceTest() local
282 assert(&Ref == &LHS); in doAppendSourceTest()
[all …]
/llvm-project/clang/test/Analysis/diagnostics/
H A Dno-store-func-path-notes.cpp208 HasRefToItself &Ref; // no infinite loop member
210 HasRefToItself(int &z) : Ref(*this), z(z) {} in HasRefToItself()
273 HasRef &Ref; member
274 HasIndirectRef(HasRef &Ref) : Ref(Ref) {} in HasIndirectRef()
280 pA.Ref.a = 120; in maybeInitializeIndirectly()
296 HasRef Ref; member
297 HasIndirectRefByValue(HasRef Ref) : Ref(Ref) {} in HasIndirectRefByValue()
303 pA.Ref.a = 120; in maybeInitializeIndirectly()
319 HasRef *Ref; member
320 HasIndirectPointerRef(HasRef *Ref) : Ref(Ref) {} in HasIndirectPointerRef()
[all …]
/llvm-project/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/
H A Dtype_ctor.pass.cpp48 using Ref = std::reference_wrapper<int>; in main() typedef
49 static_assert((std::is_constructible<Ref, int&>::value), ""); in main()
50 static_assert((!std::is_constructible<Ref, int>::value), ""); in main()
51 static_assert((!std::is_constructible<Ref, int&&>::value), ""); in main()
56 using Ref = std::reference_wrapper<int>; in main() typedef
57 static_assert((std::is_nothrow_constructible<Ref, int&>::value), ""); in main()
58 static_assert((!std::is_nothrow_constructible<Ref, int>::value), ""); in main()
59 static_assert((!std::is_nothrow_constructible<Ref, int&&>::value), ""); in main()
/llvm-project/libcxx/test/std/containers/sequences/vector.bool/reference/
H A Dtriviality.compile.pass.cpp14 using Ref = std::vector<bool>::reference; typedef
16 LIBCPP_STATIC_ASSERT(!std::is_trivially_constructible<Ref>::value, "");
17 LIBCPP_STATIC_ASSERT(std::is_trivially_copy_constructible<Ref>::value, "");
18 LIBCPP_STATIC_ASSERT(std::is_trivially_move_constructible<Ref>::value, "");
19 LIBCPP_STATIC_ASSERT(!std::is_trivially_copy_assignable<Ref>::value, "");
20 LIBCPP_STATIC_ASSERT(!std::is_trivially_move_assignable<Ref>::value, "");
21 LIBCPP_STATIC_ASSERT(std::is_trivially_destructible<Ref>::value, "");
H A Dassign_copy.pass.cpp21 typedef std::vector<bool>::reference Ref; in test() typedef
24 Ref ref1 = vec[0]; in test()
25 Ref ref2 = vec[1]; in test()
61 ref1 = static_cast<const Ref&>(ref2); in test()
68 ref1 = static_cast<const Ref&>(ref2); in test()
/llvm-project/llvm/unittests/Transforms/IPO/
H A DFunctionSpecializationTest.cpp183 Cost Ref = getCodeSizeSavings(Mul); in TEST_F()
185 EXPECT_EQ(Test, Ref); in TEST_F()
189 Ref = getCodeSizeSavings(And) + getCodeSizeSavings(Or) + in TEST_F()
192 EXPECT_EQ(Test, Ref); in TEST_F()
196 Ref = getCodeSizeSavings(Switch) + in TEST_F()
201 EXPECT_EQ(Test, Ref); in TEST_F()
205 Ref = getLatencySavings(F); in TEST_F()
207 EXPECT_EQ(Test, Ref); in TEST_F()
257 Cost Ref = getCodeSizeSavings(Mul); in TEST_F()
259 EXPECT_EQ(Test, Ref); in TEST_F()
174 Bonus Ref = getInstCost(Mul); TEST_F() local
241 Bonus Ref = getInstCost(Mul); TEST_F() local
307 Bonus Ref = getInstCost(Icmp) + getInstCost(Zext); TEST_F() local
383 Bonus Ref = getInstCost(Switch) + TEST_F() local
[all...]
/llvm-project/llvm/unittests/Support/
H A DMemoryBufferRefTest.cpp32 MemoryBufferRef Ref(*MB); in TEST() local
38 EXPECT_NE(Empty, Ref); in TEST()
39 EXPECT_NE(NoIdentifier, Ref); in TEST()
40 EXPECT_NE(NoData, Ref); in TEST()
41 EXPECT_EQ(Same, Ref); in TEST()
47 EXPECT_EQ(Ref.getBuffer(), CopyRef.getBuffer()); in TEST()
48 EXPECT_NE(Ref, CopyRef); in TEST()
H A DBinaryStreamTest.cpp39 auto Ref = Data.drop_front(S); in readBytes() local
40 if (Ref.size() >= Size) { in readBytes()
41 Buffer = Ref.take_front(Size); in readBytes()
45 uint64_t BytesLeft = Size - Ref.size(); in readBytes()
47 ::memcpy(Ptr, Ref.data(), Ref.size()); in readBytes()
48 ::memcpy(Ptr + Ref.size(), Data.data(), BytesLeft); in readBytes()
71 MutableArrayRef<uint8_t> Ref(Data); in writeBytes() local
72 Ref = Ref.drop_front(S); in writeBytes()
73 if (Ref.size() >= SrcData.size()) { in writeBytes()
74 ::memcpy(Ref.data(), SrcData.data(), SrcData.size()); in writeBytes()
[all …]
/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DTypeHashing.cpp43 for (const auto &Ref : Refs) { in hashType() local
45 uint32_t PreLen = Ref.Offset - Off; in hashType()
48 auto Prev = (Ref.Kind == TiRefKind::IndexRef) ? PreviousIds : PreviousTypes; in hashType()
50 auto RefData = RecordData.slice(Ref.Offset, Ref.Count * sizeof(TypeIndex)); in hashType()
54 reinterpret_cast<const TypeIndex *>(RefData.data()), Ref.Count); in hashType()
72 Off = Ref.Offset + Ref.Count * sizeof(TypeIndex); in hashType()
/llvm-project/clang/test/Index/Core/
H A Dindex-source.m11 // CHECK: [[@LINE-2]]:3 | class/ObjC | Base | c:objc(cs)Base | _OBJC_CLASS_$_Base | Ref,RelCont | r…
18 // CHECK: [[@LINE+5]]:10 | class/ObjC | Base | c:objc(cs)Base | _OBJC_CLASS_$_Base | Ref,RelCont | …
28 // LOCAL: [[@LINE+2]]:11 | param(local)/C | b | [[b_USR]] | _b | Ref,Read,RelCont | rel: 1
34 // LOCAL: [[@LINE+2]]:11 | variable(local)/C | x | [[x_USR]] | _x | Ref,Read,RelCont | rel: 1
44 // CHECK: [[@LINE+2]]:3 | function/C | foo | c:@F@foo | _foo | Ref,Call,RelCall,RelCont | rel: 1
47 …:6 | instance-method/ObjC | meth | c:objc(cs)Base(im)meth | -[Base meth] | Ref,Call,Dyn,RelRec,Rel…
52 …// CHECK: [[@LINE+2]]:4 | class/ObjC | Base | c:objc(cs)Base | _OBJC_CLASS_$_Base | Ref,RelCont | …
56 …// CHECK: [[@LINE+4]]:3 | class/ObjC | Base | c:objc(cs)Base | _OBJC_CLASS_$_Base | Ref,RelCont | …
58 …// CHECK: [[@LINE+2]]:14 | class/ObjC | Base | c:objc(cs)Base | _OBJC_CLASS_$_Base | Ref,RelCont |…
68 // CHECK: [[@LINE+2]]:17 | protocol/ObjC | Prot1 | c:objc(pl)Prot1 | <no-cgname> | Ref,RelBase,RelC…
[all …]
/llvm-project/llvm/lib/Object/
H A DCOFFObjectFile.cpp101 const coff_symbol_type *COFFObjectFile::toSymb(DataRefImpl Ref) const { in toSymb()
103 reinterpret_cast<const coff_symbol_type *>(Ref.p); in toSymb()
118 const coff_section *COFFObjectFile::toSec(DataRefImpl Ref) const { in toSec()
119 const coff_section *Addr = reinterpret_cast<const coff_section*>(Ref.p); in toSec()
135 void COFFObjectFile::moveSymbolNext(DataRefImpl &Ref) const { in moveSymbolNext()
138 const coff_symbol16 *Symb = toSymb<coff_symbol16>(Ref); in moveSymbolNext()
140 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
142 const coff_symbol32 *Symb = toSymb<coff_symbol32>(Ref); in moveSymbolNext()
144 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
150 Expected<StringRef> COFFObjectFile::getSymbolName(DataRefImpl Ref) cons
1023 ExportDirectoryEntryRef Ref(ExportDirectory, export_directory_end() local
1259 DataRefImpl Ref; getRelocationSymbol() local
[all...]
/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
H A DScopifyEnum.cpp66 llvm::Error addReplacementForReference(const ReferencesResult::Reference &Ref,
107 for (const auto &Ref : in addClassKeywordToDeclarations() local
111 if (!(Ref.Attributes & ReferencesResult::Declaration)) in addClassKeywordToDeclarations()
118 if (auto Err = addReplacementForReference(Ref, MakeReplacement)) in addClassKeywordToDeclarations()
143 for (const auto &Ref : in scopifyEnumValue() local
147 if (Ref.Attributes & ReferencesResult::Declaration) { in scopifyEnumValue()
157 if (auto Err = addReplacementForReference(Ref, MakeReplacement)) in scopifyEnumValue()
198 if (auto Err = addReplacementForReference(Ref, MakeReplacement)) in scopifyEnumValue()
218 ScopifyEnum::addReplacementForReference(const ReferencesResult::Reference &Ref, in addReplacementForReference() argument
220 StringRef FilePath = Ref.Loc.uri.file(); in addReplacementForReference()
[all …]
/llvm-project/clang-tools-extra/clangd/index/
H A DRef.h1 //===--- Ref.h ---------------------------------------------------*- C++-*-===//
88 struct Ref { argument
98 inline bool operator<(const Ref &L, const Ref &R) {
102 inline bool operator==(const Ref &L, const Ref &R) {
107 llvm::raw_ostream &operator<<(llvm::raw_ostream &, const Ref &);
114 using value_type = std::pair<SymbolID, llvm::ArrayRef<Ref>>;
139 void insert(const SymbolID &ID, const Ref &S);
148 Ref Referenc
85 struct Ref { global() struct
95 ContainerRef global() argument
[all...]
H A DRef.cpp32 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Ref &R) { in operator <<()
36 void RefSlab::Builder::insert(const SymbolID &ID, const Ref &S) { in insert()
43 std::vector<std::pair<SymbolID, llvm::ArrayRef<Ref>>> Result; in build()
46 std::vector<std::pair<SymbolID, const Ref *>> Flat; in build()
52 std::vector<Ref> Refs; in build()
62 Result.emplace_back(Sym, llvm::ArrayRef<Ref>(Refs).copy(Arena)); in build()
/llvm-project/clang/test/Analysis/Checkers/WebKit/
H A Dmock-types.h74 template <typename T, typename PtrTraits = RawPtrTraits<T>, typename RefDerefTraits = DefaultRefDerefTraits<T>> struct Ref { in ~RefPtr()
79 Ref() : t{} {};
80 Ref(T &t, AdoptTag) : t(&t) { }
81 Ref(T &t) : t(&RefDerefTraits::ref(t)) { }
82 Ref(const Ref& o) : t(RefDerefTraits::refIfNotNull(PtrTraits::unwrap(o.t))) { }
83 Ref(Ref&& o) : t(o.leakRef()) { }
84 ~Ref() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(t, nullptr)); }
85 Ref
46 template <typename T, typename PtrTraits = RawPtrTraits<T>, typename RefDerefTraits = DefaultRefDerefTraits<T>> struct Ref { global() struct
49 RefRef Ref() argument
50 RefRef Ref() argument
51 RefRef Ref() argument
52 ~RefRef ~Ref() argument
58 leakRefRef leakRef() argument
70 ptrRef RefPtr() argument
[all...]
H A Dcall-args.cpp31 Ref<RefCountable> provide_ref_counted() { return Ref<RefCountable>{}; } in provide_ref_counted()
32 void consume_ref_counted(Ref<RefCountable>) {} in consume_ref_counted()
132 template<typename T> struct Ref { struct
133 Ref() = default;
134 Ref(T*) { } in Ref() argument
143 Ref<RefCountable> bar; in foo()
317 Ref<RefCountable> provideProtected();
349 Ref<RefCountable> provideProtected();
364 Ref { *provid in foo()
135 getRef_to_reference_conversion_operator::Ref get() argument
136 operator T&Ref_to_reference_conversion_operator::Ref operator T&() argument
137 tRef_to_reference_conversion_operator::Ref global() argument
[all...]
/llvm-project/llvm/lib/Support/
H A DBinaryStreamWriter.cpp18 BinaryStreamWriter::BinaryStreamWriter(WritableBinaryStreamRef Ref) in BinaryStreamWriter() argument
19 : Stream(Ref) {} in BinaryStreamWriter()
61 Error BinaryStreamWriter::writeStreamRef(BinaryStreamRef Ref) { in writeStreamRef() argument
62 return writeStreamRef(Ref, Ref.getLength()); in writeStreamRef()
65 Error BinaryStreamWriter::writeStreamRef(BinaryStreamRef Ref, uint64_t Length) { in writeStreamRef() argument
66 BinaryStreamReader SrcReader(Ref.slice(0, Length)); in writeStreamRef()
H A DBinaryStreamReader.cpp17 BinaryStreamReader::BinaryStreamReader(BinaryStreamRef Ref) : Stream(Ref) {} in BinaryStreamReader() argument
129 Error BinaryStreamReader::readStreamRef(BinaryStreamRef &Ref) { in readStreamRef() argument
130 return readStreamRef(Ref, bytesRemaining()); in readStreamRef()
133 Error BinaryStreamReader::readStreamRef(BinaryStreamRef &Ref, uint32_t Length) { in readStreamRef() argument
136 Ref = Stream.slice(Offset, Length); in readStreamRef()
141 Error BinaryStreamReader::readSubstream(BinarySubstreamRef &Ref, in readSubstream() argument
143 Ref.Offset = getOffset(); in readSubstream()
144 return readStreamRef(Ref.StreamData, Length); in readSubstream()
/llvm-project/llvm/unittests/DebugInfo/DWARF/
H A DDWARFDieTest.cpp187 std::string Ref = in TEST()
189 EXPECT_EQ(DeclFile, Ref); in TEST()
293 std::string Ref = in TEST()
295 EXPECT_EQ(DeclFile, Ref); in TEST()
398 std::string Ref = in TEST()
400 EXPECT_EQ(DeclFile, Ref); in TEST()
520 std::string Ref = in TEST()
522 EXPECT_EQ(DeclFile, Ref); in TEST()
642 std::string Ref = in TEST()
644 EXPECT_EQ(DeclFile, Ref); in TEST()
186 std::string Ref = TEST() local
292 std::string Ref = TEST() local
397 std::string Ref = TEST() local
519 std::string Ref = TEST() local
641 std::string Ref = TEST() local
[all...]
/llvm-project/libcxx/test/std/containers/sequences/vector.bool/
H A Demplace_back.pass.cpp27 typedef C::reference Ref; in tests() typedef
28 Ref r1 = c.emplace_back(); in tests()
34 Ref r2 = c.emplace_back(true); in tests()
61 typedef C::reference Ref; in tests() typedef
62 Ref r1 = c.emplace_back(); in tests()
68 Ref r2 = c.emplace_back(true); in tests()
/llvm-project/llvm/test/Analysis/AliasSet/
H A Dguards.ll6 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Ref Memory locations: (ptr %a, LocationSi…
7 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
9 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Ref Memory locations: (ptr %b, LocationSi…
22 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Ref Memory locations: (ptr %a, LocationSi…
23 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
39 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
41 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Ref Memory locations: (ptr %b, LocationSi…
55 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
70 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
72 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Ref Memory locations: (ptr %a, LocationSi…
[all …]
/llvm-project/clang/test/Analysis/
H A Dretain-count-alloc.cpp13 struct Object { int Ref; }; member
17 O->Ref++; in copyObj()
22 if (--O->Ref > 0) in freeObj()
35 A->Ref = 13; in useAfterFree()

12345678910>>...13