Home
last modified time | relevance | path

Searched refs:MyStruct (Results 1 – 25 of 43) sorted by relevance

12

/llvm-project-15.0.7/llvm/test/Transforms/LoopVectorize/
H A Dinterleaved-acess-with-remarks.ll17 define void @atomicLoadsBothWriteAndReadMem(%MyStruct *%a, %MyStruct *%b, %MyStruct *%lim) {
22 %0 = phi %MyStruct* [ %a, %entry ], [ %ainc, %loop ]
24 %2 = getelementptr %MyStruct, %MyStruct* %1, i64 0, i32 0
26 %4 = getelementptr inbounds %MyStruct, %MyStruct* %0, i64 0, i32 0
28 %5 = getelementptr inbounds %MyStruct, %MyStruct* %1, i64 0, i32 1, i32 0, i32 0
30 %7 = getelementptr inbounds %MyStruct, %MyStruct* %0, i64 0, i32 1, i32 0, i32 0
32 %8 = getelementptr inbounds %MyStruct, %MyStruct* %1, i64 0, i32 2, i32 0
33 %9 = getelementptr inbounds %MyStruct, %MyStruct* %0, i64 0, i32 2, i32 0
36 %binc = getelementptr inbounds %MyStruct, %MyStruct* %1, i64 1
37 %ainc = getelementptr inbounds %MyStruct, %MyStruct* %0, i64 1
[all …]
/llvm-project-15.0.7/clang/test/Sema/
H A Dwarn-missing-prototypes.c59 struct MyStruct {}; struct
61 const struct MyStruct get_struct() { // expected-warning{{no previous prototype for function 'get_s… in get_struct()
64 struct MyStruct ret; in get_struct()
71 const struct MyStruct get_struct_2() { // expected-warning{{no previous prototype for function 'g… in get_struct_2()
74 struct MyStruct ret; in get_struct_2()
79 const struct MyStruct* get_struct_ptr() { // expected-warning{{no previous prototype for function… in get_struct_ptr()
86 /*some randome comment*/const struct MyStruct* get_struct_3() { // expected-warning{{no previous … in get_struct_3()
93 const/*some randome comment*/ struct MyStruct* get_struct_4() { // expected-warning{{no previous p… in get_struct_4()
104 MY_CONST struct MyStruct *get_struct_nyi() { // expected-warning{{no previous prototype for functio… in get_struct_nyi()
/llvm-project-15.0.7/compiler-rt/test/tsan/Darwin/
H A Dlibcxx-shared-ptr-recursive.mm14 struct MyStruct {
16 ~MyStruct() {
17 fprintf(stderr, "~MyStruct\n");
25 std::shared_ptr<MyStruct> shared(new MyStruct());
33 // CHECK: ~MyStruct
H A Dlibcxx-shared-ptr.mm12 struct MyStruct { struct
16 ~MyStruct() {
26 std::shared_ptr<MyStruct> shared(new MyStruct()); argument
30 std::weak_ptr<MyStruct> weak(shared);
34 std::shared_ptr<MyStruct> strong = weak.lock();
H A Dlibcxx-shared-ptr-stress.mm16 struct MyStruct { struct
18 MyStruct() : self_counter(0) { } argument
26 virtual ~MyStruct() {
41 std::shared_ptr<MyStruct> shared(new MyStruct()); argument
42 std::weak_ptr<MyStruct> weak(shared);
46 std::shared_ptr<MyStruct> shared_copy(shared);
52 std::shared_ptr<MyStruct> weak_copy = weak.lock();
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Dconst-return-type.cpp41 struct MyStruct {}; struct
146 const MyStruct<0 < 1> p34() {}
150 MyStruct<0 < 1> const p35() {}
154 Klazz<MyStruct<0 < 1> const> const p36() {}
158 const Klazz<MyStruct<0 < 1> const> *const p37() {}
162 Klazz<const MyStruct<0 < 1>> const p38() {}
166 const Klazz<const MyStruct<0 < 1>> p39() {}
170 const Klazz<const MyStruct<(0 > 1)>> p40() {} in p40()
/llvm-project-15.0.7/clang/test/CodeGenObjCXX/
H A Dproperty-reference.mm4 struct MyStruct { struct
11 MyStruct _foo; argument
14 @property (assign, readwrite) const MyStruct& foo;
16 - (const MyStruct&) foo;
17 - (void) setFoo:(const MyStruct&)inFoo; argument
22 MyStruct myStruct;
26 const MyStruct& currentMyStruct = myClass.foo;
29 …ll noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.MyStruct* bitcast (i8* (i8…
30 // CHECK: store %struct.MyStruct* [[C]], %struct.MyStruct** [[D:%.*]]
/llvm-project-15.0.7/llvm/test/CodeGen/NVPTX/
H A Dglobals_lowering.ll4 %MyStruct = type { i32, i32, float }
5 @Gbl = internal addrspace(3) global [1024 x %MyStruct] zeroinitializer
11 …d float, float addrspace(3)* getelementptr inbounds ([1024 x %MyStruct], [1024 x %MyStruct] addrsp…
14 …at %add, float addrspace(3)* getelementptr inbounds ([1024 x %MyStruct], [1024 x %MyStruct] addrsp…
/llvm-project-15.0.7/llvm/test/Transforms/LoopDataPrefetch/AArch64/
H A Dopt-remark.ll13 ; 1 struct MyStruct {
18 ; 6 int f(struct MyStruct *p, int N) {
28 %struct.MyStruct = type { i32, [2044 x i8] }
30 @my_struct = common global %struct.MyStruct* null, align 8
32 define i32 @f(%struct.MyStruct* nocapture readnone %p, i32 %N) !dbg !6 {
38 %0 = load %struct.MyStruct*, %struct.MyStruct** @my_struct, align 8, !dbg !10, !tbaa !11
48 …%field = getelementptr inbounds %struct.MyStruct, %struct.MyStruct* %0, i64 %indvars.iv, i32 0, !d…
79 !18 = !{!"MyStruct", !19, i64 0, !13, i64 4}
H A Dopt-remark-with-hotness.ll15 ; 1 struct MyStruct {
20 ; 6 int f(struct MyStruct *p, int N) {
30 %struct.MyStruct = type { i32, [2044 x i8] }
32 @my_struct = common global %struct.MyStruct* null, align 8
34 define i32 @f(%struct.MyStruct* nocapture readnone %p, i32 %N) !dbg !6 !prof !21 {
40 %0 = load %struct.MyStruct*, %struct.MyStruct** @my_struct, align 8, !dbg !10, !tbaa !11
50 …%field = getelementptr inbounds %struct.MyStruct, %struct.MyStruct* %0, i64 %indvars.iv, i32 0, !d…
81 !18 = !{!"MyStruct", !19, i64 0, !13, i64 4}
/llvm-project-15.0.7/lldb/test/API/commands/expression/fixits/
H A Dmain.cpp9 struct MyStruct struct
18 struct MyStruct my_struct = {10, {20, 30}}; in main() argument
19 struct MyStruct *my_pointer = &my_struct; in main()
20 struct MyStruct *null_pointer = nullptr; in main()
/llvm-project-15.0.7/llvm/test/Transforms/GVN/
H A Dpre-new-inst.ll3 %MyStruct = type { i32, i32 }
5 %addr = alloca %MyStruct
14 %addr64 = bitcast %MyStruct* %addr to i64*
19 %addr32 = getelementptr %MyStruct, %MyStruct* %addr, i32 0, i32 0
/llvm-project-15.0.7/llvm/test/Transforms/NewGVN/
H A Dpre-new-inst-xfail.ll4 %MyStruct = type { i32, i32 }
6 %addr = alloca %MyStruct
15 %addr64 = bitcast %MyStruct* %addr to i64*
20 %addr32 = getelementptr %MyStruct, %MyStruct* %addr, i32 0, i32 0
/llvm-project-15.0.7/compiler-rt/test/tsan/libdispatch/
H A Dgroups-destructor.cpp12 struct MyStruct { struct
13 virtual ~MyStruct() { in ~MyStruct() argument
26 std::shared_ptr<MyStruct> shared(new MyStruct()); in main()
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Darwin/
H A Dnil-return-struct.mm6 struct MyStruct { struct
11 - (MyStruct)methodWhichReturnsARect; argument
14 - (MyStruct)methodWhichReturnsARect {
15 MyStruct s;
/llvm-project-15.0.7/compiler-rt/test/BlocksRuntime/
H A Djosh.C10 struct MyStruct { struct
18 MyStruct first; // works in test() argument
21 MyStruct inner; // fails to compile! in test()
H A Dobjectassign.c35 struct MyStruct { struct
40 typedef struct MyStruct *__attribute__((NSObject)) MyStruct_t; argument
48 struct MyStruct X; in main()
H A DobjectRRGC.c36 struct MyStruct { struct
41 typedef struct MyStruct *__attribute__((NSObject)) MyStruct_t; argument
45 struct MyStruct X; in main()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/misc/
H A Dredundant-expression.cpp161 struct MyStruct { struct
163 bool operator==(const MyStruct& rhs) const {return this->x == rhs.x; } // not modifing in operator ==() argument
164 bool operator>=(const MyStruct& rhs) const { return this->x >= rhs.x; } // not modifing in operator >=() argument
165 bool operator<=(MyStruct& rhs) const { return this->x <= rhs.x; } in operator <=() argument
166 bool operator&&(const MyStruct& rhs){ this->x++; return this->x && rhs.x; } in operator &&() argument
169 bool operator!=(const MyStruct& lhs, const MyStruct& rhs) { return lhs.x == rhs.x; } // not modifing in operator !=()
170 bool operator<(const MyStruct& lhs, const MyStruct& rhs) { return lhs.x < rhs.x; } // not modifing in operator <()
171 bool operator>(const MyStruct& lhs, MyStruct& rhs) { rhs.x--; return lhs.x > rhs.x; } in operator >()
172 bool operator||(MyStruct& lhs, const MyStruct& rhs) { lhs.x++; return lhs.x || rhs.x; } in operator ||()
183 bool TestOverloadedOperator(MyStruct& S) { in TestOverloadedOperator()
/llvm-project-15.0.7/clang/test/CodeGen/
H A Daddress-space.c39 } MyStruct; typedef
44 void test4(MyStruct __attribute__((address_space(2))) *pPtr) { in test4()
45 MyStruct s = pPtr[0]; in test4()
/llvm-project-15.0.7/clang/test/Analysis/
H A Dinitializer.cpp168 struct MyStruct { struct
169 MyStruct(int i);
170 MyStruct(OtherStruct os);
176 const MyStruct &myStruct(5); in referenceInitializeLocal()
181 const MyStruct &myStruct1(5), myStruct2(5), &myStruct3(5); in referenceInitializeMultipleLocals()
188 const MyStruct &myStruct(OtherStruct(5)); in referenceInitializeLocalWithCleanup()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dwarn-unused-local-typedef.cpp230 struct MyStruct { }; in placement_new_and_delete() struct
231 char memory[sizeof(MyStruct)]; in placement_new_and_delete()
234 typedef MyStruct A_t1; in placement_new_and_delete()
235 MyStruct *a = new (p) A_t1(); in placement_new_and_delete()
237 typedef MyStruct A_t2; in placement_new_and_delete()
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A Dcoldcc2.ll3 %struct.MyStruct = type { i32, i32, i32, i32 }
5 @caller.s = internal unnamed_addr global %struct.MyStruct zeroinitializer, align 8
15 store i64 %0, i64* bitcast (%struct.MyStruct* @caller.s to i64*), align 8
16 …store i64 %1, i64* bitcast (i32* getelementptr inbounds (%struct.MyStruct, %struct.MyStruct* @call…
/llvm-project-15.0.7/clang/test/CodeGenCUDA/
H A Daddress-spaces.cu18 struct MyStruct { struct
46 __shared__ MyStruct a; in func0()
47 MyStruct *ap = &a; // composite type in func0()
/llvm-project-15.0.7/clang/test/ExtractAPI/
H A Dtypedef_anonymous_record.c17 typedef struct { } MyStruct; typedef
18 typedef MyStruct MyStructStruct;

12