LLVM API Documentation

llvm::AlphaJITInfo Class Reference

#include <AlphaJITInfo.h>

Inheritance diagram for llvm::AlphaJITInfo:
[legend]
Collaboration diagram for llvm::AlphaJITInfo:
[legend]

List of all members.

Public Member Functions

 AlphaJITInfo (TargetMachine &tm)
virtual void * emitFunctionStub (const Function *F, void *Fn, MachineCodeEmitter &MCE)
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


Detailed Description

Definition at line 22 of file AlphaJITInfo.h.


Constructor & Destructor Documentation

llvm::AlphaJITInfo::AlphaJITInfo ( TargetMachine &  tm  )  [inline, explicit]

Definition at line 26 of file AlphaJITInfo.h.

References llvm::TargetJITInfo::useGOT.


Member Function Documentation

void * AlphaJITInfo::emitFunctionStub ( const Function *  F,
void *  Fn,
MachineCodeEmitter &  MCE 
) [virtual]

emitFunctionStub - Use the specified MachineCodeEmitter 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 194 of file AlphaJITInfo.cpp.

References DOUT, EmitBranchToAt(), llvm::MachineCodeEmitter::emitWordLE(), llvm::MachineCodeEmitter::finishGVStub(), llvm::MachineCodeEmitter::getCurrentPCValue(), and llvm::MachineCodeEmitter::startGVStub().

TargetJITInfo::LazyResolverFn AlphaJITInfo::getLazyResolverFunction ( JITCompilerFn  F  )  [virtual]

Definition at line 208 of file AlphaJITInfo.cpp.

References AlphaCompilationCallback(), and JITCompilerFunction.

void AlphaJITInfo::relocate ( void *  Function,
MachineRelocation *  MR,
unsigned  NumRelocs,
unsigned char *  GOTBase 
) [virtual]

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.


Member Data Documentation

Definition at line 24 of file AlphaJITInfo.h.


The documentation for this class was generated from the following files: