Home
last modified time | relevance | path

Searched refs:mempcpy (Results 1 – 25 of 40) sorted by relevance

12

/llvm-project/clang/test/Analysis/
H A Dbstring.c194 #define mempcpy(a,b,c) __mempcpy_chk(a,b,c,(size_t)-1) macro
198 #define mempcpy BUILTIN(mempcpy) macro
199 void *mempcpy(void *restrict s1, const void *restrict s2, size_t n);
208 mempcpy(dst, src, 4); // no-warning in mempcpy0()
210 clang_analyzer_eval(mempcpy(dst, src, 4) == &dst[4]); // expected-warning{{TRUE}} in mempcpy0()
221mempcpy(dst, src, 5); // expected-warning{{Memory copy function accesses out-of-bound array elemen… in mempcpy1()
228 mempcpy(dst, src, 4); // expected-warning{{Memory copy function overflows the destination buffer}} in mempcpy2()
238 mempcpy(dst+1, src+2, 2); // no-warning in mempcpy3()
245mempcpy(dst+2, src+2, 3); // expected-warning{{Memory copy function accesses out-of-bound array el… in mempcpy4()
252mempcpy(dst + 2, src + 2, 2); // expected-warning{{Memory copy function overflows the destination … in mempcpy5()
[all …]
H A Dbstring_UninitRead.c65 void *mempcpy(void *restrict s1, const void *restrict s2, size_t n);
72 p = mempcpy(dst, src, 4 * sizeof(int)); in memcpy_int_array_fully_init()
100 p2 = mempcpy(&s2, &s1, sizeof(struct st)); in mempcpy_struct_partially_uninit()
111 mempcpy(&s2, &s1, sizeof(struct st)); in mempcpy_struct_fully_uninit()
H A Dbstring.cpp10 // This provides us with four possible mempcpy() definitions.
25 #define mempcpy(a,b,c) __mempcpy_chk(a,b,c,(size_t)-1) macro
29 #define mempcpy BUILTIN(mempcpy) macro
30 void *mempcpy(void *__restrict__ s1, const void *__restrict__ s2, size_t n);
76 mempcpy(f, &a, g); in d()
/llvm-project/llvm/test/Transforms/InstCombine/
H A Dmempcpy.ll10 %r = tail call ptr @mempcpy(ptr %d, ptr %s, i64 %n)
20 %r = tail call ptr @mempcpy(ptr dereferenceable(16) %d, ptr %s, i64 %n)
29 call ptr @mempcpy(ptr %d, ptr %s, i64 %n)
40 %r = tail call ptr @mempcpy(ptr %d, ptr %s, i64 8)
50 %r = tail call ptr @mempcpy(ptr %d, ptr %s, i64 1024)
61 %r = call dereferenceable(1) ptr @mempcpy(ptr undef, ptr null, i64 undef)
67 ; CHECK-NEXT: [[R:%.*]] = musttail call ptr @mempcpy(ptr [[D:%.*]], ptr [[S:%.*]], i64 [[N:%.*]])
70 %r = musttail call ptr @mempcpy(ptr %d, ptr %s, i64 %n)
74 declare ptr @mempcpy(ptr, ptr nocapture readonly, i64)
/llvm-project/llvm/test/CodeGen/X86/
H A Dmempcpy.ll4 ; (1) mempcpy is lowered as memcpy, and
8 ; variable G before the mempcpy call. This instance of DST+N causes the repeat
9 ; DST+N done in the context of the return value of mempcpy to be redundant, and
14 ; Also see mempcpy-32.ll
26 %call = tail call ptr @mempcpy(ptr %DST, ptr %SRC, i64 %N)
30 declare ptr @mempcpy(ptr, ptr, i64)
H A Dmempcpy-32.ll3 ; This tests the i686 lowering of mempcpy.
4 ; Also see mempcpy.ll
16 %call = tail call ptr @mempcpy(ptr %DST, ptr %SRC, i32 %N)
20 declare ptr @mempcpy(ptr, ptr, i32)
H A Dmemcpy-scoped-aa.ll133 …%call = tail call ptr @mempcpy(ptr noundef nonnull align 4 dereferenceable(16) %p0, ptr noundef no…
146 declare ptr @mempcpy(ptr, ptr, i64)
/llvm-project/clang/test/CodeGen/
H A Dmempcpy-libcall.c5 void *mempcpy(void *, void const *, size_t);
11 return mempcpy(d, s, n); in test()
/llvm-project/libc/test/src/string/
H A Dmempcpy_test.cpp18 void *result = LIBC_NAMESPACE::mempcpy(dest, src, 6); in TEST()
26 void *result = LIBC_NAMESPACE::mempcpy(dest, src, 0); in TEST()
H A DCMakeLists.txt28 libc.src.string.mempcpy
/llvm-project/libc/src/string/
H A Dmempcpy.h1 //===-- Implementation header for mempcpy -----------------------*- C++ -*-===//
17 void *mempcpy(void *__restrict dest, const void *__restrict src, size_t count);
H A Dmempcpy.cpp1 //===-- Implementation of mempcpy ----------------------------------------===//
9 #include "src/string/mempcpy.h"
18 LLVM_LIBC_FUNCTION(void *, mempcpy,
H A Dstpcpy.cpp11 #include "src/string/mempcpy.h"
22 reinterpret_cast<char *>(LIBC_NAMESPACE::mempcpy(dest, src, size));
H A DCMakeLists.txt48 mempcpy
50 mempcpy.cpp
52 mempcpy.h
92 .mempcpy
/llvm-project/clang/lib/Headers/llvm_libc_wrappers/
H A Dstring.h43 void *mempcpy(void *__restrict, const void *__restrict, size_t) __LIBC_ATTRS;
/llvm-project/llvm/test/CodeGen/MIR/AArch64/
H A Dmachine-metadata.mir37 …%call = tail call ptr @mempcpy(ptr noundef nonnull align 4 dereferenceable(16) %p0, ptr noundef no…
51 declare ptr @mempcpy(ptr, ptr, i64)
/llvm-project/llvm/test/CodeGen/AArch64/
H A Dmemcpy-scoped-aa.ll117 …%call = tail call ptr @mempcpy(ptr noundef nonnull align 4 dereferenceable(16) %p0, ptr noundef no…
130 declare ptr @mempcpy(ptr, ptr, i64)
/llvm-project/utils/bazel/llvm-project-overlay/libc/test/src/string/
H A DBUILD.bazel156 "//libc:mempcpy",
/llvm-project/llvm/test/CodeGen/MIR/X86/
H A Dmachine-metadata.mir37 …%call = tail call ptr @mempcpy(ptr noundef nonnull align 4 dereferenceable(16) %p0, ptr noundef no…
51 declare ptr @mempcpy(ptr, ptr, i64)
/llvm-project/libc/docs/
H A Dstrings.rst
/llvm-project/libc/docs/gpu/
H A Dsupport.rst56 mempcpy |check|
/llvm-project/libc/config/darwin/x86_64/
H A Dentrypoints.txt30 libc.src.string.mempcpy
/llvm-project/llvm/test/Transforms/InferFunctionAttrs/
H A Dno-proto.ll609 ; CHECK: declare void @mempcpy(...)
610 declare void @mempcpy(...)
/llvm-project/libc/config/darwin/arm/
H A Dentrypoints.txt30 libc.src.string.mempcpy
/llvm-project/libc/config/windows/
H A Dentrypoints.txt27 libc.src.string.mempcpy

12