Home
last modified time | relevance | path

Searched refs:ap2 (Results 1 – 25 of 36) sorted by relevance

12

/llvm-project/clang/test/SemaCXX/
H A Daddress-space-conversion.cpp26 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_const_cast() argument
39 (void)const_cast<A_ptr>(ap2); // expected-error{{is not allowed}} in test_const_cast()
41 (void)const_cast<A_ptr_1>(ap2); // expected-error{{is not allowed}} in test_const_cast()
51 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_static_cast() argument
61 (void)static_cast<B_ptr_2>(ap2); in test_static_cast()
66 (void)static_cast<void_ptr_2>(ap2); in test_static_cast()
81 (void)static_cast<B_ptr>(ap2); // expected-error{{casts away qualifiers}} in test_static_cast()
83 (void)static_cast<B_ptr_1>(ap2); // expected-error{{casts away qualifiers}} in test_static_cast()
89 (void)static_cast<void_ptr>(ap2); // expected-error{{is not allowed}} in test_static_cast()
91 (void)static_cast<void_ptr_1>(ap2); // expected-error{{is not allowed}} in test_static_cast()
[all …]
H A Dwarn-unsafe-buffer-usage.cpp20 auto ap2 = &p; in testAsSystemHeader() local
24 ap2[2][3]); in testAsSystemHeader()
92 auto * ap2 = a; // expected-warning{{'ap2' is an unsafe pointer used for buffer access}} \ in testArraySubscriptsWithAuto() local
93 expected-note{{change type of 'ap2' to 'std::span' to preserve bounds information}} in testArraySubscriptsWithAuto()
94 foo(ap2[1]); // expected-note{{used in buffer access here}} in testArraySubscriptsWithAuto()
/llvm-project/llvm/test/Bitcode/
H A DvariableArgumentIntrinsic.3.2.ll11 %ap2 = bitcast i8** %ap to i8*
13 ; CHECK: call void @llvm.va_start.p0(ptr %ap2)
14 call void @llvm.va_start(i8* %ap2)
22 ; CHECK: call void @llvm.va_copy.p0(ptr %aq2, ptr %ap2)
23 call void @llvm.va_copy(i8* %aq2, i8* %ap2)
27 ; CHECK-NEXT: call void @llvm.va_end.p0(ptr %ap2)
28 call void @llvm.va_end(i8* %ap2)
/llvm-project/clang/test/CodeGen/
H A Dms_abi.c64 __builtin_ms_va_list ap2; in f4() local
65 __builtin_ms_va_copy(ap2, ap); in f4()
94 __builtin_va_list ap2; in f5() local
95 __builtin_va_copy(ap2, ap); in f5()
128 __builtin_ms_va_list ap2; in f6() local
129 __builtin_ms_va_copy(ap2, ap); in f6()
H A Dvarargs-with-nonzero-default-address-space.c41 __builtin_va_list ap2; in testva() local
42 __builtin_va_copy(ap2, ap); in testva()
43 int v = __builtin_va_arg(ap2, int); in testva()
44 __builtin_va_end(ap2); in testva()
H A Dms_abi_aarch64.c40 __builtin_ms_va_list ap2; in f4() local
41 __builtin_ms_va_copy(ap2, ap); in f4()
77 __builtin_va_list ap2; in f5() local
78 __builtin_va_copy(ap2, ap); in f5()
/llvm-project/libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/
H A Dassignment.compile.fail.cpp27 std::auto_ptr<A> ap2(p2); in test() local
30 assert(ap2.get() == p2); in test()
31 std::auto_ptr<A>& apr = ap2 = ap1; in test()
32 assert(&apr == &ap2); in test()
35 assert(ap2.get() == p1); in test()
H A Dassignment.pass.cpp31 std::auto_ptr<A> ap2(p2); in test() local
34 assert(ap2.get() == p2); in test()
35 std::auto_ptr<A>& apr = ap2 = ap1; in test()
36 assert(&apr == &ap2); in test()
39 assert(ap2.get() == p1); in test()
H A Dconvert_assignment.pass.cpp31 std::auto_ptr<A> ap2(p2); in test() local
35 assert(ap2.get() == p2); in test()
36 std::auto_ptr<A>& apr = ap2 = ap1; in test()
37 assert(&apr == &ap2); in test()
41 assert(ap2.get() == p1); in test()
H A Dconvert_assignment.compile.fail.cpp29 std::auto_ptr<A> ap2(p2); in test() local
33 assert(ap2.get() == p2); in test()
34 std::auto_ptr<A>& apr = ap2 = ap1; in test()
35 assert(&apr == &ap2); in test()
39 assert(ap2.get() == p1); in test()
H A Dcopy.pass.cpp30 std::auto_ptr<A> ap2(ap1); in test() local
32 assert(ap2.get() == p); in test()
H A Dcopy.compile.fail.cpp28 std::auto_ptr<A> ap2(ap1); in test() local
30 assert(ap2.get() == p); in test()
H A Dconvert.pass.cpp30 std::auto_ptr<A> ap2(ap1); in test() local
32 assert(ap2.get() == p); in test()
H A Dconvert.compile.fail.cpp26 std::auto_ptr<A> ap2(ap1); in test() local
28 assert(ap2.get() == p); in test()
/llvm-project/clang/test/CodeGen/PowerPC/
H A Daix-vaargs.c15 __builtin_va_list ap2; in testva() local
16 __builtin_va_copy(ap2, ap); in testva()
17 int v = __builtin_va_arg(ap2, int); in testva()
18 __builtin_va_end(ap2); in testva()
33 // AIX32-NEXT: %ap2 = alloca ptr, align 4
34 // AIX64-NEXT: %ap2 = alloca ptr, align 8
51 // CHECK-NEXT: call void @llvm.va_copy.p0(ptr %ap2, ptr %ap)
53 // AIX32-NEXT: %argp.cur1 = load ptr, ptr %ap2, align 4
55 // AIX32-NEXT: store ptr %argp.next2, ptr %ap2, align 4
58 // AIX64-NEXT: %argp.cur1 = load ptr, ptr %ap2, alig
[all...]
/llvm-project/llvm/test/CodeGen/M68k/
H A Dvarargs.ll22 %ap2 = bitcast ptr %ap to ptr
23 call void @llvm.va_start(ptr %ap2)
26 %tmp = va_arg ptr %ap2, i32
31 call void @llvm.va_copy(ptr %aq2, ptr %ap2)
35 call void @llvm.va_end(ptr %ap2)
/llvm-project/llvm/test/CodeGen/PowerPC/
H A Dstack-coloring-vararg.mir26 %ap2.i.i = alloca [1 x %struct.__va_list_tag], align 4
30 %0 = bitcast ptr %ap2.i.i to ptr
109 - { id: 1, name: ap2.i.i, size: 12, alignment: 8 }
153 LIFETIME_START %stack.1.ap2.i.i
155 STW killed %17, 8, %stack.1.ap2.i.i :: (store (s32) into %stack.1.ap2.i.i + 8, basealign 8)
157 STW killed %18, 4, %stack.1.ap2.i.i :: (store (s32) into %stack.1.ap2.i.i + 4, basealign 8)
159 STW killed %19, 0, %stack.1.ap2.i.i :: (store (s32) into %stack.1.ap2.i.i, basealign 8)
/llvm-project/libcxx/test/libcxx/depr/depr.default.allocator/allocator.members/
H A Dallocate.cxx20.pass.cpp62 T* ap2 = a.allocate(11, (const void*)5); in test_aligned() local
63 DoNotOptimize(ap2); in test_aligned()
71 a.deallocate(ap2, 11); in test_aligned()
72 DoNotOptimize(ap2); in test_aligned()
/llvm-project/libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/
H A Dconvert_to_auto_ptr_ref.pass.cpp30 std::auto_ptr<A> ap2(apr); in test() local
32 assert(ap2.get() == p1); in test()
33 ap2.release(); in test()
H A Dassign_from_auto_ptr_ref.pass.cpp31 std::auto_ptr<A> ap2(new A(2)); in test() local
32 ap2 = apr; in test()
34 assert(ap2.get() == p1); in test()
H A Dconvert_from_auto_ptr_ref.pass.cpp31 std::auto_ptr<A> ap2(apr); in test() local
32 assert(ap2.get() == p1); in test()
H A Dconvert_to_auto_ptr.pass.cpp33 std::auto_ptr<A> ap2(source()); in test() local
/llvm-project/llvm/test/CodeGen/AArch64/
H A Daarch64_win64cc_vararg.ll41 %ap2 = load ptr, ptr %ap, align 8
42 call void @other_func(ptr %ap2)
73 %ap2 = load ptr, ptr %ap, align 8
74 ret ptr %ap2
99 %ap2 = load ptr, ptr %ap, align 8
100 ret ptr %ap2
127 %ap2 = load ptr, ptr %ap, align 8
128 ret ptr %ap2
H A Dwin64_vararg.ll21 %ap2 = load ptr, ptr %ap, align 8
22 call void @other_func(ptr %ap2)
43 %ap2 = load ptr, ptr %ap, align 8
44 ret ptr %ap2
59 %ap2 = load ptr, ptr %ap, align 8
60 ret ptr %ap2
76 %ap2 = load ptr, ptr %ap, align 8
77 ret ptr %ap2
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Dpro-type-vararg-ms.cpp22 my_va_list2 ap2; in test_typedefs() local

12