LLVM API Documentation
#include <AlphaJITInfo.h>
Public Member Functions | |
| AlphaJITInfo (TargetMachine &tm) | |
| virtual void * | emitFunctionStub (const Function *F, void *Fn, JITCodeEmitter &JCE) |
| virtual LazyResolverFn | getLazyResolverFunction (JITCompilerFn) |
| virtual void | relocate (void *Function, MachineRelocation *MR, unsigned NumRelocs, unsigned char *GOTBase) |
| virtual void | replaceMachineCodeForFunction (void *Old, void *New) |
Protected Attributes | |
| TargetMachine & | TM |
| std::map< std::pair< void *, int >, void * > | gpdistmap |
Definition at line 23 of file AlphaJITInfo.h.
| llvm::AlphaJITInfo::AlphaJITInfo | ( | TargetMachine & | tm | ) | [inline, explicit] |
| void * AlphaJITInfo::emitFunctionStub | ( | const Function * | F, | |
| void * | Fn, | |||
| JITCodeEmitter & | JCE | |||
| ) | [virtual] |
emitFunctionStub - Use the specified JITCodeEmitter object to emit a small native function that simply calls the function at the specified address. Return the address of the resultant function.
Reimplemented from llvm::TargetJITInfo.
Definition at line 193 of file AlphaJITInfo.cpp.
References DOUT, EmitBranchToAt(), llvm::JITCodeEmitter::emitWordLE(), llvm::JITCodeEmitter::finishGVStub(), llvm::JITCodeEmitter::getCurrentPCValue(), and llvm::JITCodeEmitter::startGVStub().
| TargetJITInfo::LazyResolverFn AlphaJITInfo::getLazyResolverFunction | ( | JITCompilerFn | F | ) | [virtual] |
Definition at line 207 of file AlphaJITInfo.cpp.
References AlphaCompilationCallback(), and JITCompilerFunction.
| void AlphaJITInfo::relocate | ( | void * | Function, | |
| MachineRelocation * | MR, | |||
| unsigned | NumRelocs, | |||
| unsigned char * | GOTBase | |||
| ) | [virtual] |
relocate - Before the JIT can run a block of code that has been emitted, it must rewrite the code to contain the actual addresses of any referenced global symbols.
Reimplemented from llvm::TargetJITInfo.
Definition at line 237 of file AlphaJITInfo.cpp.
References DOUT, llvm::MachineRelocation::getConstantVal(), llvm::MachineRelocation::getGOTIndex(), getLower16(), llvm::MachineRelocation::getMachineCodeOffset(), llvm::MachineRelocation::getRelocationType(), llvm::MachineRelocation::getResultPointer(), getUpper16(), gpdistmap, llvm_unreachable, llvm::Alpha::reloc_bsr, llvm::Alpha::reloc_gpdist, llvm::Alpha::reloc_gprelhigh, llvm::Alpha::reloc_gprellow, and llvm::Alpha::reloc_literal.
| void AlphaJITInfo::replaceMachineCodeForFunction | ( | void * | Old, | |
| void * | New | |||
| ) | [virtual] |
replaceMachineCodeForFunction - Make it so that calling the function whose machine code is at OLD turns into a call to NEW, perhaps by overwriting OLD with a branch to NEW. This is used for self-modifying code.
Implements llvm::TargetJITInfo.
Definition at line 73 of file AlphaJITInfo.cpp.
References llvm_unreachable.
TargetMachine& llvm::AlphaJITInfo::TM [protected] |
Definition at line 25 of file AlphaJITInfo.h.
std::map<std::pair<void*, int>, void*> llvm::AlphaJITInfo::gpdistmap [protected] |