LLVM API Documentation

Defines | Functions | Variables
JITMemoryManager.cpp File Reference
#include "llvm/ExecutionEngine/JITMemoryManager.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Config/config.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/DynamicLibrary.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Memory.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <climits>
#include <cstring>
#include <vector>
Include dependency graph for JITMemoryManager.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "jit"

Functions

 STATISTIC (NumSlabs,"Number of slabs of memory allocated by the JIT")
static void runAtExitHandlers ()
static void jit_exit (int Status)
static int jit_atexit (void(*Fn)())
static int jit_noop ()

Variables

static std::vector< void(*)()> AtExitHandlers

Define Documentation

#define DEBUG_TYPE   "jit"

Definition at line 42 of file JITMemoryManager.cpp.


Function Documentation

static int jit_atexit ( void(*)()  Fn) [static]

Definition at line 823 of file JITMemoryManager.cpp.

References AtExitHandlers.

static void jit_exit ( int  Status) [static]

Definition at line 817 of file JITMemoryManager.cpp.

References runAtExitHandlers().

static int jit_noop ( ) [static]

Definition at line 828 of file JITMemoryManager.cpp.

static void runAtExitHandlers ( ) [static]

runAtExitHandlers - Run any functions registered by the program's calls to atexit(3), which we intercept and store in AtExitHandlers.

Definition at line 773 of file JITMemoryManager.cpp.

References AtExitHandlers.

Referenced by jit_exit().

STATISTIC ( NumSlabs  ,
"Number of slabs of memory allocated by the JIT"   
)

Variable Documentation

std::vector<void (*)()> AtExitHandlers [static]

Definition at line 767 of file JITMemoryManager.cpp.

Referenced by jit_atexit(), and runAtExitHandlers().