/llvm-project/clang/test/Analysis/ |
H A D | bstring.c | 194 #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() 221 …mempcpy(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() 245 …mempcpy(dst+2, src+2, 3); // expected-warning{{Memory copy function accesses out-of-bound array el… in mempcpy4() 252 …mempcpy(dst + 2, src + 2, 2); // expected-warning{{Memory copy function overflows the destination … in mempcpy5() [all …]
|
H A D | bstring_UninitRead.c | 65 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 D | bstring.cpp | 10 // 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 D | mempcpy.ll | 10 %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 D | mempcpy.ll | 4 ; (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 D | mempcpy-32.ll | 3 ; 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 D | memcpy-scoped-aa.ll | 133 …%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 D | mempcpy-libcall.c | 5 void *mempcpy(void *, void const *, size_t); 11 return mempcpy(d, s, n); in test()
|
/llvm-project/libc/test/src/string/ |
H A D | mempcpy_test.cpp | 18 void *result = LIBC_NAMESPACE::mempcpy(dest, src, 6); in TEST() 26 void *result = LIBC_NAMESPACE::mempcpy(dest, src, 0); in TEST()
|
H A D | CMakeLists.txt | 28 libc.src.string.mempcpy
|
/llvm-project/libc/src/string/ |
H A D | mempcpy.h | 1 //===-- Implementation header for mempcpy -----------------------*- C++ -*-===// 17 void *mempcpy(void *__restrict dest, const void *__restrict src, size_t count);
|
H A D | mempcpy.cpp | 1 //===-- Implementation of mempcpy ----------------------------------------===// 9 #include "src/string/mempcpy.h" 18 LLVM_LIBC_FUNCTION(void *, mempcpy,
|
H A D | stpcpy.cpp | 11 #include "src/string/mempcpy.h" 22 reinterpret_cast<char *>(LIBC_NAMESPACE::mempcpy(dest, src, size));
|
H A D | CMakeLists.txt | 48 mempcpy 50 mempcpy.cpp 52 mempcpy.h 92 .mempcpy
|
/llvm-project/clang/lib/Headers/llvm_libc_wrappers/ |
H A D | string.h | 43 void *mempcpy(void *__restrict, const void *__restrict, size_t) __LIBC_ATTRS;
|
/llvm-project/llvm/test/CodeGen/MIR/AArch64/ |
H A D | machine-metadata.mir | 37 …%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 D | memcpy-scoped-aa.ll | 117 …%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 D | BUILD.bazel | 156 "//libc:mempcpy",
|
/llvm-project/llvm/test/CodeGen/MIR/X86/ |
H A D | machine-metadata.mir | 37 …%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 D | strings.rst |
|
/llvm-project/libc/docs/gpu/ |
H A D | support.rst | 56 mempcpy |check|
|
/llvm-project/libc/config/darwin/x86_64/ |
H A D | entrypoints.txt | 30 libc.src.string.mempcpy
|
/llvm-project/llvm/test/Transforms/InferFunctionAttrs/ |
H A D | no-proto.ll | 609 ; CHECK: declare void @mempcpy(...) 610 declare void @mempcpy(...)
|
/llvm-project/libc/config/darwin/arm/ |
H A D | entrypoints.txt | 30 libc.src.string.mempcpy
|
/llvm-project/libc/config/windows/ |
H A D | entrypoints.txt | 27 libc.src.string.mempcpy
|