Home
last modified time | relevance | path

Searched refs:ap (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/llvm-project-15.0.7/clang/test/Sema/
H A Dvarargs.c7 __builtin_va_list ap; in f1() local
15 __builtin_va_list ap; in f2() local
23 __builtin_va_list ap; in f3() local
32 __builtin_va_list ap; in f4() local
34 __builtin_va_end (ap); in f4()
38 __builtin_va_list ap; in f5() local
43 __builtin_va_list ap; in f6() local
56 __builtin_va_list ap; in f7() local
61 __builtin_va_end(ap); in f7()
65 __builtin_va_list ap; in f8() local
[all …]
H A Dvarargs-x86-64.c10 __builtin_ms_va_list ap; in f2() local
15 __builtin_ms_va_list ap; in g1() local
22 __builtin_ms_va_list ap; in g2() local
30 __builtin_ms_va_list ap; in g3() local
37 __builtin_ms_va_list ap; in g5() local
42 __builtin_ms_va_list ap; in g6() local
54 __builtin_ms_va_list ap; in g7() local
59 __builtin_ms_va_end(ap); in g7()
63 __builtin_ms_va_list ap; in g8() local
66 __builtin_ms_va_end(ap); in g8()
[all …]
H A Dmicrosoft-varargs.c33 # define _APALIGN(t,ap) (((va_list)0 - (ap)) & (__alignof(t) - 1)) argument
37 # define _APALIGN(t,ap) (((va_list)0 - (ap)) & (__alignof(t) - 1)) argument
43 # define __crt_va_start_a(ap, v) ((void)(__va_start(&ap, _ADDRESSOF(v), _SLOTSIZEOF(v), _ADDRESS… argument
45 # define __crt_va_start_a(ap, v) ((void)(ap = (va_list)_ADDRESSOF(v) + _SLOTSIZEOF(v))) argument
48 # define __crt_va_arg(ap, t) (*(t*)((ap += _SLOTSIZEOF(t) + _APALIGN(t,ap)) - _SLOTSIZEOF(t))) argument
49 # define __crt_va_end(ap) ((void)(ap = (va_list)0)) argument
52 # define __crt_va_start_a(ap,v) ((void)(__va_start(&ap, _ADDRESSOF(v), _SLOTSIZEOF(v), __alignof(v… argument
56 : *(t*)((ap ++ _SLOTSIZEOF(t) + _APALIGN(t,ap)) - _SLOTSIZEOF(t)))
57 # define __crt_va_end(ap) ((void)(ap = (va_list)0)) argument
84 # define __crt_va_start(ap, x) ((void)(__vcrt_assert_va_start_is_not_reference<decltype(x)>(), __c…
[all …]
H A Dformat-strings.c30 va_list ap; in check_string_literal() local
31 va_start(ap,buf); in check_string_literal()
80 va_list ap; in check_string_literal2() local
81 va_start(ap,buf); in check_string_literal2()
217 va_list ap; in check_empty_format_string() local
230 va_list ap; in check_wide_string() local
231 va_start(ap,b); in check_wide_string()
804 va_list ap; in test_block() local
807 va_end(ap); in test_block()
817 va_list ap; in test_block() local
[all …]
/llvm-project-15.0.7/clang/test/CodeGen/
H A Darm64-abi-vector.c24 va_list ap; in varargs_vec_2c() local
29 va_end(ap); in varargs_vec_2c()
43 va_list ap; in varargs_vec_3c() local
48 va_end(ap); in varargs_vec_3c()
63 va_list ap; in varargs_vec_4c() local
68 va_end(ap); in varargs_vec_4c()
83 va_list ap; in varargs_vec_5c() local
88 va_end(ap); in varargs_vec_5c()
105 va_list ap; in varargs_vec_9c() local
110 va_end(ap); in varargs_vec_9c()
[all …]
H A Darm-abi-vector.c40 va_list ap; in varargs_vec_2i() local
45 va_end(ap); in varargs_vec_2i()
72 va_list ap; in varargs_vec_3c() local
77 va_end(ap); in varargs_vec_3c()
115 va_list ap; in varargs_vec_5c() local
120 va_end(ap); in varargs_vec_5c()
158 va_list ap; in varargs_vec_9c() local
163 va_end(ap); in varargs_vec_9c()
190 va_list ap; in varargs_vec_19c() local
195 va_end(ap); in varargs_vec_19c()
[all …]
H A Dms_abi.c33 __builtin_ms_va_list ap; in f4() local
34 __builtin_ms_va_start(ap, a); in f4()
39 int b = __builtin_va_arg(ap, int); in f4()
71 __builtin_ms_va_copy(ap2, ap); in f4()
76 __builtin_ms_va_end(ap); in f4()
84 __builtin_va_list ap; in f5() local
85 __builtin_va_start(ap, a); in f5()
88 int b = __builtin_va_arg(ap, int); in f5()
104 __builtin_va_copy(ap2, ap); in f5()
106 __builtin_va_end(ap); in f5()
[all …]
H A Dms_abi_aarch64.c32 __builtin_ms_va_list ap; in f4() local
33 __builtin_ms_va_start(ap, a); in f4()
45 __builtin_ms_va_end(ap); in f4()
52 __builtin_ms_va_list ap; in f4_2() local
66 __builtin_ms_va_end(ap); in f4_2()
72 __builtin_va_list ap; in f5() local
73 __builtin_va_start(ap, a); in f5()
82 __builtin_va_copy(ap2, ap); in f5()
84 __builtin_va_end(ap); in f5()
112 __builtin_ms_va_list ap; in get_msabi_hfa_vararg() local
[all …]
H A Darm-vaarg-align.c12 __builtin_va_list ap; in t1() local
13 __builtin_va_start(ap, i); in t1()
18 long long ll = __builtin_va_arg(ap, long long); in t1()
19 __builtin_va_end(ap); in t1()
25 __builtin_va_list ap; in t2() local
26 __builtin_va_start(ap, i); in t2()
31 double ll = __builtin_va_arg(ap, double); in t2()
32 __builtin_va_end(ap); in t2()
/llvm-project-15.0.7/clang/test/CodeGen/PowerPC/
H A Dppc64-align-struct.c62 va_list ap; in test1va() local
65 va_end(ap); in test1va()
84 va_list ap; in test2va() local
87 va_end(ap); in test2va()
106 va_list ap; in test3va() local
109 va_end(ap); in test3va()
124 va_list ap; in test4va() local
127 va_end(ap); in test4va()
143 va_list ap; in testva_longdouble() local
146 va_end(ap); in testva_longdouble()
[all …]
H A Dppc64le-varargs-f128.c46 va_list ap; in omp() local
47 va_start(ap, n); in omp()
53 va_end(ap); in omp()
70 va_list ap; in f128() local
71 va_start(ap, n); in f128()
73 va_end(ap); in f128()
100 va_list ap; in long_double() local
101 va_start(ap, n); in long_double()
103 va_end(ap); in long_double()
126 va_list ap; in long_double_struct() local
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dvarargs.cpp4 __builtin_va_list ap; variable
12 __builtin_va_start(ap, i); // UB in C, OK in C++ in g()
34 (void)__builtin_va_arg(ap, Unscoped1); // ok in promotable()
37 (void)__builtin_va_arg(ap, Unscoped2); // ok in promotable()
40 (void)__builtin_va_arg(ap, Scoped); // ok in promotable()
43 (void)__builtin_va_arg(ap, Fixed); // ok in promotable()
49 (void)__builtin_va_arg(ap, FixedLarge); // ok in promotable()
55 (void)__builtin_va_arg(ap, unsigned int); in promotable()
71 __builtin_va_start(ap, b); // correct in varargs_lambda_fixed_function()
79 __builtin_va_start(ap, f); // correct in __anone3303e310402()
[all …]
H A Dmicrosoft-varargs-diagnostics.cpp12 va_list ap; in test_one_argument() local
13 …__va_start(&ap); // expected-error{{too few arguments to function call, expected at least 3, have … in test_one_argument()
17 va_list ap; in test_two_arguments() local
18 …__va_start(&ap, &i); // expected-error{{too few arguments to function call, expected at least 3, h… in test_two_arguments()
22 va_list ap; in test_non_last_argument() local
23 __va_start(&ap, &i, 4); in test_non_last_argument()
29 va_list ap; in test_stack_allocated() local
31 __va_start(&ap, &j, 4); in test_stack_allocated()
37 va_list ap; in test_non_pointer_addressof() local
38 __va_start(&ap, 1, 4); in test_non_pointer_addressof()
H A Daddress-space-conversion.cpp26 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_const_cast() argument
40 (void)const_cast<A_ptr_1>(ap); // 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
59 (void)static_cast<B_ptr>(ap); in test_static_cast()
64 (void)static_cast<void_ptr>(ap); in test_static_cast()
102 void test_dynamic_cast(A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_dynamic_cast() argument
110 (void)dynamic_cast<B_ptr>(ap); in test_dynamic_cast()
132 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_reinterpret_cast() argument
158 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_cstyle_cast() argument
170 (void)(A_ptr_1)(ap); in test_cstyle_cast()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/depr/depr.default.allocator/allocator.members/
H A Dconstruct.cxx2a.pass.cpp73 DoNotOptimize(ap); in main()
78 a.construct(ap); in main()
82 a.destroy(ap); in main()
90 a.destroy(ap); in main()
98 a.destroy(ap); in main()
106 a.destroy(ap); in main()
111 DoNotOptimize(ap); in main()
123 DoNotOptimize(ap); in main()
128 a.construct(ap); in main()
132 a.destroy(ap); in main()
[all …]
/llvm-project-15.0.7/clang/lib/Headers/
H A Dvadefs.h23 #define _crt_va_start(ap, param) __builtin_va_start(ap, param) argument
27 #define _crt_va_end(ap) __builtin_va_end(ap) argument
31 #define _crt_va_arg(ap, type) __builtin_va_arg(ap, type) argument
39 #define __crt_va_start(ap, param) __builtin_va_start(ap, param) argument
43 #define __crt_va_end(ap) __builtin_va_end(ap) argument
47 #define __crt_va_arg(ap, type) __builtin_va_arg(ap, type) argument
/llvm-project-15.0.7/clang/test/CodeGen/X86/
H A Dx86_64-floatvectors.c10 double Vec3FTest(__builtin_va_list ap) { in Vec3FTest() argument
11 vec3f vec = __builtin_va_arg(ap, vec3f); in Vec3FTest()
27 double Vec4FTest(__builtin_va_list ap) { in Vec4FTest() argument
28 vec4f vec = __builtin_va_arg(ap, vec4f); in Vec4FTest()
43 double Vec2DTest(__builtin_va_list ap) { in Vec2DTest() argument
44 vec2d vec = __builtin_va_arg(ap, vec2d); in Vec2DTest()
62 double Vec2F1DTest(__builtin_va_list ap) { in Vec2F1DTest() argument
63 vec2f1d vec = __builtin_va_arg(ap, vec2f1d); in Vec2F1DTest()
81 double Vec1D2FTest(__builtin_va_list ap) { in Vec1D2FTest() argument
100 double Vec1F1DTest(__builtin_va_list ap) { in Vec1F1DTest() argument
[all …]
/llvm-project-15.0.7/clang/test/CodeGenCUDA/
H A Daddress-spaces.cu47 MyStruct *ap = &a; // composite type in func0() local
48 ap->data1 = 1; in func0()
49 ap->data2 = 2; in func0()
54 __device__ void callee(float *ap) { in callee() argument
55 *ap = 1.0f; in callee()
67 float *ap = &a[128]; // implicit cast from a decayed array in func2() local
68 *ap = 1.0f; in func2()
75 float *ap = reinterpret_cast<float *>(&a); // explicit cast in func3() local
76 *ap = 1.0f; in func3()
83 float *ap = (float *)&a; // explicit c-style cast in func4() local
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dwin64_vararg.ll27 %ap = alloca ptr, align 8
29 ret ptr %ap
37 %ap = alloca ptr, align 8
39 ret ptr %ap
47 %ap = alloca ptr, align 8
49 ret ptr %ap
64 %ap = alloca ptr, align 8
80 %ap = alloca ptr, align 8
98 %ap = alloca ptr, align 8
100 %tmp = va_arg ptr %ap, i32
[all …]
H A Dx86-64-ms_abi-vararg.ll15 call void @llvm.va_start(ptr %ap)
28 %ap = alloca ptr, align 8
30 ret ptr %ap
38 %ap = alloca ptr, align 8
40 ret ptr %ap
48 %ap = alloca ptr, align 8
50 ret ptr %ap
63 %ap = alloca ptr, align 8
77 %ap = alloca ptr, align 8
93 %ap = alloca ptr, align 8
[all …]
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_format_interceptor_test.cpp69 va_list ap; in testScanf3() local
72 va_end(ap); in testScanf3()
91 va_list ap; in testScanf() local
94 va_end(ap); in testScanf()
99 va_list ap; in testScanfPartial() local
102 va_end(ap); in testScanfPartial()
106 va_list ap; in testScanfNoGnuMalloc() local
109 va_end(ap); in testScanfNoGnuMalloc()
228 va_list ap; in testPrintf3() local
231 va_end(ap); in testPrintf3()
[all …]
/llvm-project-15.0.7/openmp/runtime/src/
H A Dkmp_io.cpp199 vfprintf(stream, format, ap); in __kmp_vprintf()
206 va_list ap; in __kmp_printf() local
207 va_start(ap, format); in __kmp_printf()
213 va_end(ap); in __kmp_printf()
217 va_list ap; in __kmp_printf_no_lock() local
218 va_start(ap, format); in __kmp_printf_no_lock()
222 va_end(ap); in __kmp_printf_no_lock()
226 va_list ap; in __kmp_fprintf() local
227 va_start(ap, format); in __kmp_fprintf()
230 __kmp_vprintf(stream, format, ap); in __kmp_fprintf()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/Mips/
H A Do32_cc_vararg.ll18 %ap = alloca i8*, align 4
23 %0 = va_arg i8** %ap, i32
44 %ap = alloca i8*, align 4
72 %ap = alloca i8*, align 4
77 %0 = va_arg i8** %ap, i32
95 %ap = alloca i8*, align 4
121 %ap = alloca i8*, align 4
128 %0 = va_arg i8** %ap, i32
147 %ap = alloca i8*, align 4
176 %ap = alloca i8*, align 4
[all …]
/llvm-project-15.0.7/libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/
H A Dreset.pass.cpp29 std::auto_ptr<A> ap(p); in test() local
30 ap.reset(); in test()
31 assert(ap.get() == 0); in test()
37 std::auto_ptr<A> ap(p); in test() local
38 ap.reset(p); in test()
39 assert(ap.get() == p); in test()
45 std::auto_ptr<A> ap(p); in test() local
47 ap.reset(p2); in test()
48 assert(ap.get() == p2); in test()
/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/refwrap/refwrap.invoke/
H A Dinvoke.pass.cpp81 A_void_1* ap = &a; in test_void_1() local
82 r1(ap); in test_void_1()
94 A_void_1* ap = &a; in test_void_1() local
95 r1(ap); in test_void_1()
150 A_int_1* ap = &a; in test_int_1() local
159 A_int_1* ap = &a; in test_int_1() local
170 A_int_1* ap = &a; in test_int_1() local
172 r1(ap) = 7; in test_int_1()
238 r1(ap, i); in test_void_2()
252 r1(ap, i); in test_void_2()
[all …]

12345678910>>...12