LLVM API Documentation
#include "llvm/ExecutionEngine/JITMemoryManager.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/Statistic.h"#include "llvm/GlobalValue.h"#include "llvm/Support/Allocator.h"#include "llvm/Support/Compiler.h"#include "llvm/Support/Debug.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/raw_ostream.h"#include "llvm/System/Memory.h"#include <map>#include <vector>#include <cassert>#include <climits>#include <cstdio>#include <cstdlib>#include <cstring>
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") | |
| #define DEBUG_TYPE "jit" |
Definition at line 14 of file JITMemoryManager.cpp.
| STATISTIC | ( | NumSlabs | , | |
| "Number of slabs of memory allocated by the JIT" | ||||
| ) |
| uintptr_t BlockSize |
BlockSize - This is the size in bytes of this memory block, including this header.
Definition at line 60 of file JITMemoryManager.cpp.
| JITSlabAllocator BumpSlabAllocator |
Definition at line 288 of file JITMemoryManager.cpp.
| std::vector<sys::MemoryBlock> CodeSlabs |
Definition at line 287 of file JITMemoryManager.cpp.
| MemoryRangeHeader* CurBlock |
Definition at line 296 of file JITMemoryManager.cpp.
Definition at line 290 of file JITMemoryManager.cpp.
const size_t DefaultCodeSlabSize [static] |
DefaultCodeSlabSize - When we have to go map more memory, we allocate at least this much unless more is requested.
Definition at line 313 of file JITMemoryManager.cpp.
const size_t DefaultSizeThreshold [static] |
DefaultSizeThreshold - For any allocation larger than this threshold, we should allocate a separate slab.
Definition at line 321 of file JITMemoryManager.cpp.
const size_t DefaultSlabSize [static] |
DefaultSlabSize - Allocate data into slabs of this size unless we get an allocation above SizeThreshold.
Definition at line 317 of file JITMemoryManager.cpp.
| void* DlsymTable |
Definition at line 299 of file JITMemoryManager.cpp.
| FreeRangeHeader* FreeMemoryList |
Definition at line 293 of file JITMemoryManager.cpp.
| std::map<const Function*, MemoryRangeHeader*> FunctionBlocks |
Definition at line 301 of file JITMemoryManager.cpp.
| uint8_t* GOTBase |
Definition at line 298 of file JITMemoryManager.cpp.
| DefaultJITMemoryManager& JMM |
Definition at line 259 of file JITMemoryManager.cpp.
LastSlab - This points to the last slab allocated and is used as the NearBlock parameter to AllocateRWX so that we can attempt to lay out all stubs, data, and code contiguously in memory. In general, however, this is not possible because the NearBlock parameter is ignored on Windows platforms and even on Unix it works on a best-effort pasis.
Definition at line 283 of file JITMemoryManager.cpp.
| FreeRangeHeader* Next |
Definition at line 93 of file JITMemoryManager.cpp.
Referenced by CriticalPathStep(), llvm::Target::getNext(), and llvm::FoldingSetImpl::InsertNode().
Definition at line 276 of file JITMemoryManager.cpp.
| FreeRangeHeader* Prev |
Definition at line 92 of file JITMemoryManager.cpp.
Referenced by ComputeReloadLoc(), and llvm::LiveInterval::MergeValueNumberInto().
PrevAllocated - Keep track of whether the block immediately before us is allocated. If not, the word immediately before this header is the size of the previous block.
Definition at line 56 of file JITMemoryManager.cpp.
Definition at line 289 of file JITMemoryManager.cpp.
| std::map<const Function*, MemoryRangeHeader*> TableBlocks |
Definition at line 302 of file JITMemoryManager.cpp.
ThisAllocated - This is true if this block is currently allocated. If not, this can be converted to a FreeRangeHeader.
Definition at line 51 of file JITMemoryManager.cpp.