Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:35

0001 //===- llvm/Support/Valgrind.h - Communication with Valgrind ----*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 // Methods for communicating with a valgrind instance this program is running
0010 // under.  These are all no-ops unless LLVM was configured on a system with the
0011 // valgrind headers installed and valgrind is controlling this process.
0012 //
0013 //===----------------------------------------------------------------------===//
0014 
0015 #ifndef LLVM_SUPPORT_VALGRIND_H
0016 #define LLVM_SUPPORT_VALGRIND_H
0017 
0018 #include <cstddef>
0019 
0020 namespace llvm {
0021 namespace sys {
0022   // True if Valgrind is controlling this process.
0023   bool RunningOnValgrind();
0024 
0025   // Discard valgrind's translation of code in the range [Addr .. Addr + Len).
0026   // Otherwise valgrind may continue to execute the old version of the code.
0027   void ValgrindDiscardTranslations(const void *Addr, size_t Len);
0028 } // namespace sys
0029 } // end namespace llvm
0030 
0031 #endif // LLVM_SUPPORT_VALGRIND_H