LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

JITEmitter.cpp File Reference

#include "JIT.h"
#include "llvm/Constant.h"
#include "llvm/Module.h"
#include "llvm/CodeGen/MachineCodeEmitter.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineRelocation.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetJITInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/System/Memory.h"

Include dependency graph for JITEmitter.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "jit"

Functions

static JITResolver & getJITResolver (MachineCodeEmitter *MCE=0)
void * getPointerToNamedFunction (const char *Name)


Define Documentation

#define DEBUG_TYPE   "jit"
 

Definition at line 15 of file JITEmitter.cpp.


Function Documentation

static JITResolver& getJITResolver MachineCodeEmitter MCE = 0  )  [static]
 

getJITResolver - This function returns the one instance of the JIT resolver.

Definition at line 142 of file JITEmitter.cpp.

Referenced by llvm::JIT::getPointerToFunctionOrStub().

void* getPointerToNamedFunction const char *  Name  ) 
 

Definition at line 433 of file JITEmitter.cpp.

References llvm::ExecutionEngine::getModule(), llvm::Module::getNamedFunction(), llvm::JIT::getPointerToFunction(), llvm::JIT::getPointerToNamedFunction(), M, and TheJIT.


Variable Documentation

std::vector<void*> ConstantPoolAddresses
 

Definition at line 245 of file JITEmitter.cpp.

unsigned char* CurBlock
 

Definition at line 237 of file JITEmitter.cpp.

unsigned char * CurByte
 

Definition at line 237 of file JITEmitter.cpp.

JITMemoryManager MemMgr
 

Definition at line 233 of file JITEmitter.cpp.

Statistic NumBytes("jit","Number of bytes of machine code compiled") [static]
 

Referenced by llvm::X86RegisterInfo::emitEpilogue(), llvm::PPC64RegisterInfo::emitEpilogue(), llvm::PPC32RegisterInfo::emitEpilogue(), llvm::X86RegisterInfo::emitPrologue(), llvm::PPC64RegisterInfo::emitPrologue(), and llvm::PPC32RegisterInfo::emitPrologue().

std::vector<MachineRelocation> Relocations
 

Relocations - These are the relocations that the function needs, as emitted.

Definition at line 249 of file JITEmitter.cpp.

unsigned char* SavedCurBlock
 

Definition at line 241 of file JITEmitter.cpp.

unsigned char * SavedCurByte
 

Definition at line 241 of file JITEmitter.cpp.

JIT* TheJIT = 0 [static]
 

Definition at line 32 of file JITEmitter.cpp.

Referenced by getPointerToNamedFunction().