LLVM API Documentation
#include "SparcV9JITInfo.h"
#include "SparcV9Relocations.h"
#include "llvm/CodeGen/MachineCodeEmitter.h"
#include "llvm/Config/alloca.h"
#include "llvm/Support/Debug.h"
Include dependency graph for SparcV9JITInfo.cpp:
Go to the source code of this file.
Defines | |
#define | DEBUG_TYPE "jit" |
#define | BUILD_SETHI(RD, C) (((RD) << 25) | (4 << 22) | (C & ((1 << 22)-1))) |
#define | BUILD_ORI(RS, C, RD) |
#define | BUILD_BA(DISP) ((8 << 25) | (2 << 22) | (DISP & ((1 << 22)-1))) |
#define | BUILD_CALL(OFFSET) ((1 << 30) | (OFFSET & (1 << 30)-1)) |
Functions | |
static void | InsertJumpAtAddr (int64_t JumpTarget, unsigned *Addr) |
static void | SaveRegisters (uint64_t DoubleFP[], uint64_t CC[], uint64_t Globals[]) |
static void | RestoreRegisters (uint64_t DoubleFP[], uint64_t CC[], uint64_t Globals[]) |
static void | CompilationCallback () |
Variables | |
static TargetJITInfo::JITCompilerFn | JITCompilerFunction |
|
Definition at line 31 of file SparcV9JITInfo.cpp. Referenced by InsertJumpAtAddr(). |
|
Definition at line 32 of file SparcV9JITInfo.cpp. Referenced by CompilationCallback(). |
|
Value: ((2 << 30) | (RD << 25) | (2 << 19) | (RS << 14) |\ (1 << 13) | (C & ((1 << 12)-1))) Definition at line 29 of file SparcV9JITInfo.cpp. |
|
BUILD_SETHI/BUILD_ORI/BUILD_BA/BUILD_CALL - These macros build sparc machine instructions using lots of magic defined by the Sparc ISA. Definition at line 28 of file SparcV9JITInfo.cpp. Referenced by llvm::SparcV9JITInfo::emitFunctionStub(), and InsertJumpAtAddr(). |
|
Definition at line 14 of file SparcV9JITInfo.cpp. |
|
Definition at line 188 of file SparcV9JITInfo.cpp. References abort(), BUILD_CALL, DEBUG, InsertJumpAtAddr(), JITCompilerFunction, RestoreRegisters(), SaveRegisters(), and Target. Referenced by llvm::X86JITInfo::emitFunctionStub(), llvm::SparcV9JITInfo::emitFunctionStub(), llvm::X86JITInfo::getLazyResolverFunction(), and llvm::SparcV9JITInfo::getLazyResolverFunction(). |
|
Definition at line 34 of file SparcV9JITInfo.cpp. References BUILD_BA, BUILD_ORI, and BUILD_SETHI. Referenced by CompilationCallback(), llvm::SparcV9JITInfo::emitFunctionStub(), and llvm::SparcV9JITInfo::replaceMachineCodeForFunction(). |
|
Definition at line 130 of file SparcV9JITInfo.cpp. References abort(). Referenced by CompilationCallback(). |
|
Definition at line 73 of file SparcV9JITInfo.cpp. References abort(). Referenced by CompilationCallback(). |
|
JITCompilerFunction - This contains the address of the JIT function used to compile a function lazily. Definition at line 24 of file SparcV9JITInfo.cpp. |