llvm/compiler-rt/lib/memprof/memprof_interceptors_memintrinsics.cpp

//===-- memprof_interceptors_memintrinsics.cpp ---------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------------------------------------------------===//
//
// This file is a part of MemProfiler, a memory profiler.
//
// MemProf versions of memcpy, memmove, and memset.
//===---------------------------------------------------------------------===//

#define SANITIZER_COMMON_NO_REDEFINE_BUILTINS

#include "memprof_interceptors_memintrinsics.h"

#include "memprof_interceptors.h"
#include "memprof_stack.h"

usingnamespace__memprof;

// memcpy is called during __memprof_init() from the internals of printf(...).
// We do not treat memcpy with to==from as a bug.
// See http://llvm.org/bugs/show_bug.cgi?id=11763.
#define MEMPROF_MEMCPY_IMPL(to, from, size)

// memset is called inside Printf.
#define MEMPROF_MEMSET_IMPL(block, c, size)

#define MEMPROF_MEMMOVE_IMPL(to, from, size)

#define COMMON_INTERCEPTOR_MEMMOVE_IMPL(ctx, to, from, size)

#define COMMON_INTERCEPTOR_MEMCPY_IMPL(ctx, to, from, size)

#define COMMON_INTERCEPTOR_MEMSET_IMPL(ctx, block, c, size)

#include "sanitizer_common/sanitizer_common_interceptors_memintrinsics.inc"

void *__memprof_memcpy(void *to, const void *from, uptr size) {}

void *__memprof_memset(void *block, int c, uptr size) {}

void *__memprof_memmove(void *to, const void *from, uptr size) {}