memprof_interceptors_memintrinsics.cpp 979 B

1234567891011121314151617181920212223242526272829
  1. //===-- memprof_interceptors_memintrinsics.cpp ---------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===---------------------------------------------------------------------===//
  8. //
  9. // This file is a part of MemProfiler, a memory profiler.
  10. //
  11. // MemProf versions of memcpy, memmove, and memset.
  12. //===---------------------------------------------------------------------===//
  13. #include "memprof_interceptors_memintrinsics.h"
  14. #include "memprof_stack.h"
  15. using namespace __memprof;
  16. void *__memprof_memcpy(void *to, const void *from, uptr size) {
  17. MEMPROF_MEMCPY_IMPL(to, from, size);
  18. }
  19. void *__memprof_memset(void *block, int c, uptr size) {
  20. MEMPROF_MEMSET_IMPL(block, c, size);
  21. }
  22. void *__memprof_memmove(void *to, const void *from, uptr size) {
  23. MEMPROF_MEMMOVE_IMPL(to, from, size);
  24. }