Home
last modified time | relevance | path

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

12345678910>>...12

/llvm-project-15.0.7/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-15.0.7/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-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/
H A Dpath.concat.pass.cpp195 assert(&Ref == &LHS); in doConcatSourceTest()
202 assert(&Ref == &LHS); in doConcatSourceTest()
210 assert(&Ref == &LHS); in doConcatSourceTest()
217 assert(&Ref == &LHS); in doConcatSourceTest()
225 assert(&Ref == &LHS); in doConcatSourceTest()
232 assert(&Ref == &LHS); in doConcatSourceTest()
239 assert(&Ref == &LHS); in doConcatSourceTest()
247 assert(&Ref == &LHS); in doConcatSourceTest()
253 assert(&Ref == &LHS); in doConcatSourceTest()
261 assert(&Ref == &LHS); in doConcatSourceTest()
[all …]
H A Dpath.append.pass.cpp251 assert(&Ref == &Result); in doAppendSourceTest()
258 assert(&Ref == &LHS); in doAppendSourceTest()
264 path& Ref = (LHS /= RHS); in doAppendSourceTest() local
266 assert(&Ref == &LHS); in doAppendSourceTest()
273 assert(&Ref == &LHS); in doAppendSourceTest()
281 assert(&Ref == &LHS); in doAppendSourceTest()
288 assert(&Ref == &LHS); in doAppendSourceTest()
295 assert(&Ref == &LHS); in doAppendSourceTest()
303 assert(&Ref == &LHS); in doAppendSourceTest()
309 assert(&Ref == &LHS); in doAppendSourceTest()
[all …]
/llvm-project-15.0.7/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-15.0.7/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-15.0.7/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.cpp20 typedef std::vector<bool>::reference Ref; in test() typedef
23 Ref ref1 = vec[0]; in test()
24 Ref ref2 = vec[1]; in test()
60 ref1 = static_cast<const Ref&>(ref2); in test()
67 ref1 = static_cast<const Ref&>(ref2); in test()
H A Doperator_bool.pass.cpp21 typedef std::vector<bool>::reference Ref; in test() typedef
22 static_assert(std::is_convertible<Ref, bool>::value, ""); in test()
26 Ref true_ref = vec[0]; in test()
27 Ref false_ref = vec[1]; in test()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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-15.0.7/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
168 // CHECK: [[@LINE+4]]:39 | class/ObjC | I1 | c:objc(cs)I1 | _OBJC_CLASS_$_I1 | Ref,RelCont | rel: 1
356 // CHECK-NOT: [[@LINE-2]]:17 | {{.*}} | Ref
376 // CHECK: [[@LINE-1]]:1 | struct/C | AStruct | {{.*}} | {{.*}} | Ref,RelCont | rel: 1
378 // CHECK: [[@LINE-1]]:8 | struct/C | AStruct | {{.*}} | {{.*}} | Ref,RelCont | rel: 1
385 // CHECK: [[@LINE-1]]:1 | type-alias/C | Separate | {{.*}} | {{.*}} | Ref,RelCont | rel: 1
[all …]
/llvm-project-15.0.7/llvm/lib/Object/
H A DCOFFObjectFile.cpp156 return getCOFFSymbol(Ref).getValue(); in getSymbolValueImpl()
265 const coff_section *Sec = toSec(Ref); in moveSectionNext()
271 const coff_section *Sec = toSec(Ref); in getSectionName()
276 const coff_section *Sec = toSec(Ref); in getSectionAddress()
290 return getSectionSize(toSec(Ref)); in getSectionSize()
295 const coff_section *Sec = toSec(Ref); in getSectionContents()
303 const coff_section *Sec = toSec(Ref); in getSectionAlignment()
312 const coff_section *Sec = toSec(Ref); in isSectionText()
317 const coff_section *Sec = toSec(Ref); in isSectionData()
322 const coff_section *Sec = toSec(Ref); in isSectionBSS()
[all …]
/llvm-project-15.0.7/llvm/lib/Support/
H A DBinaryStreamWriter.cpp17 BinaryStreamWriter::BinaryStreamWriter(WritableBinaryStreamRef Ref) in BinaryStreamWriter() argument
18 : Stream(Ref) {} in BinaryStreamWriter()
60 Error BinaryStreamWriter::writeStreamRef(BinaryStreamRef Ref) { in writeStreamRef() argument
61 return writeStreamRef(Ref, Ref.getLength()); in writeStreamRef()
64 Error BinaryStreamWriter::writeStreamRef(BinaryStreamRef Ref, uint64_t Length) { in writeStreamRef() argument
65 BinaryStreamReader SrcReader(Ref.slice(0, Length)); in writeStreamRef()
H A DBinaryStreamReader.cpp18 BinaryStreamReader::BinaryStreamReader(BinaryStreamRef Ref) : Stream(Ref) {} in BinaryStreamReader() argument
130 Error BinaryStreamReader::readStreamRef(BinaryStreamRef &Ref) { in readStreamRef() argument
131 return readStreamRef(Ref, bytesRemaining()); in readStreamRef()
134 Error BinaryStreamReader::readStreamRef(BinaryStreamRef &Ref, uint32_t Length) { in readStreamRef() argument
137 Ref = Stream.slice(Offset, Length); in readStreamRef()
142 Error BinaryStreamReader::readSubstream(BinarySubstreamRef &Ref, in readSubstream() argument
144 Ref.Offset = getOffset(); in readSubstream()
145 return readStreamRef(Ref.StreamData, Length); in readSubstream()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DRef.h85 struct Ref { struct
95 inline bool operator<(const Ref &L, const Ref &R) { argument
99 inline bool operator==(const Ref &L, const Ref &R) {
104 llvm::raw_ostream &operator<<(llvm::raw_ostream &, const Ref &);
111 using value_type = std::pair<SymbolID, llvm::ArrayRef<Ref>>;
136 void insert(const SymbolID &ID, const Ref &S);
145 Ref Reference;
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-15.0.7/clang/include/clang/Basic/
H A DDirectoryEntry.h58 friend llvm::hash_code hash_value(DirectoryEntryRef Ref) { in hash_value() argument
59 return llvm::hash_value(&Ref.getDirEntry()); in hash_value()
165 MapEntryOptionalStorage &operator=(RefTy Ref) {
166 MaybeRef = Ref;
192 OptionalStorage &operator=(clang::DirectoryEntryRef Ref) {
193 StorageImpl::operator=(Ref);
279 OptionalDirectoryEntryRefDegradesToDirectoryEntryPtr(DirectoryEntryRef Ref)
280 : Optional<DirectoryEntryRef>(Ref) {}
288 OptionalDirectoryEntryRefDegradesToDirectoryEntryPtr &operator=(DirectoryEntryRef Ref) {
289 Optional<DirectoryEntryRef>::operator=(Ref);
/llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/
H A DDWARFDieTest.cpp187 std::string Ref = in TEST() local
189 EXPECT_EQ(DeclFile, Ref); in TEST()
293 std::string Ref = in TEST() local
295 EXPECT_EQ(DeclFile, Ref); in TEST()
398 std::string Ref = in TEST() local
400 EXPECT_EQ(DeclFile, Ref); in TEST()
520 std::string Ref = in TEST() local
522 EXPECT_EQ(DeclFile, Ref); in TEST()
642 std::string Ref = in TEST() local
644 EXPECT_EQ(DeclFile, Ref); in TEST()
/llvm-project-15.0.7/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-15.0.7/llvm/test/Analysis/AliasSet/
H A Dguards.ll8 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
24 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
40 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
56 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
71 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
87 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
103 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
119 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
135 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
152 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] may alias, Ref
[all …]
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/
H A Dreplace_extension.pass.cpp60 path& Ref = (p.replace_extension(TC.extension)); in main() local
62 assert(&Ref == &p); in main()
67 path& Ref = (p.replace_extension()); in main() local
69 assert(&Ref == &p); in main()
/llvm-project-15.0.7/llvm/test/Analysis/BasicAA/
H A Dlibfuncs.ll4 ; CHECK: Just Ref: Ptr: i8* %a <-> %res = tail call i32 @memcmp(i8* %a, i8* %b, i64 4)
5 ; CHECK-NEXT: Just Ref: Ptr: i8* %b <-> %res = tail call i32 @memcmp(i8* %a, i8* %b, i64 4)
6 ; CHECK-NEXT: Just Ref: Ptr: i8* %a.gep.1 <-> %res = tail call i32 @memcmp(i8* %a, i8* %b, i64 4)
8 ; CHECK-NEXT: Just Ref: Ptr: i8* %b.gep.1 <-> %res = tail call i32 @memcmp(i8* %a, i8* %b, i64 4)
27 ; CHECK: Just Ref: Ptr: i8* %a <-> %res = tail call i32 @memcmp(i8* %a, i8* %b, i64 %n)
28 ; CHECK-NEXT: Just Ref: Ptr: i8* %b <-> %res = tail call i32 @memcmp(i8* %a, i8* %b, i64 %n)
53 ; CHECK: Just Ref: Ptr: i8* %a <-> %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 4)
54 ; CHECK-NEXT: Just Ref: Ptr: i8* %b <-> %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 4)
76 ; CHECK: Just Ref: Ptr: i8* %a <-> %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 %n)
77 ; CHECK-NEXT: Just Ref: Ptr: i8* %b <-> %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 %n)
[all …]
/llvm-project-15.0.7/clang/test/Analysis/Checkers/WebKit/
H A Dcall-args.cpp24 Ref<RefCountable> provide_ref_counted() { return Ref<RefCountable>{}; } in provide_ref_counted()
25 void consume_ref_counted(Ref<RefCountable>) {} in consume_ref_counted()
125 template<typename T> struct Ref { struct
126 Ref() = default;
127 Ref(T*) { } in Ref() argument
136 Ref<RefCountable> bar; in foo()
275 Ref<RefCountable> b(provide()); in foo()

12345678910>>...12