LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
SparcJITInfo.cpp File Reference
#include "SparcJITInfo.h"
#include "SparcRelocations.h"
#include "llvm/CodeGen/JITCodeEmitter.h"
#include "llvm/Support/Memory.h"
Include dependency graph for SparcJITInfo.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "jit"
 
#define HI(Val)   (((unsigned)(Val)) >> 10)
 
#define LO(Val)   (((unsigned)(Val)) & 0x3FF)
 
#define SETHI_INST(imm, rd)   (0x01000000 | ((rd) << 25) | ((imm) & 0x3FFFFF))
 
#define JMP_INST(rs1, imm, rd)
 
#define NOP_INST   SETHI_INST(0, 0)
 

Functions

void SparcCompilationCallback ()
 
void * SparcCompilationCallbackC (intptr_t StubAddr)
 

Variables

static TargetJITInfo::JITCompilerFn JITCompilerFunction
 

Macro Definition Documentation

#define DEBUG_TYPE   "jit"

Definition at line 13 of file SparcJITInfo.cpp.

#define HI (   Val)    (((unsigned)(Val)) >> 10)
#define JMP_INST (   rs1,
  imm,
  rd 
)
Value:
(0x80000000 | ((rd) << 25) | (0x38 << 19) \
| ((rs1) << 14) | (1 << 13) | ((imm) & 0x1FFF))

Definition at line 62 of file SparcJITInfo.cpp.

Referenced by llvm::SparcJITInfo::emitFunctionStub(), and SparcCompilationCallbackC().

#define LO (   Val)    (((unsigned)(Val)) & 0x3FF)
#define NOP_INST   SETHI_INST(0, 0)
#define SETHI_INST (   imm,
  rd 
)    (0x01000000 | ((rd) << 25) | ((imm) & 0x3FFFFF))

Function Documentation

void SparcCompilationCallback ( )
void* SparcCompilationCallbackC ( intptr_t  StubAddr)

Variable Documentation

TargetJITInfo::JITCompilerFn JITCompilerFunction
static

JITCompilerFunction - This contains the address of the JIT function used to compile a function lazily.

Definition at line 24 of file SparcJITInfo.cpp.

Referenced by llvm::SparcJITInfo::getLazyResolverFunction(), and SparcCompilationCallbackC().