LLVM API Documentation

llvm::PPCFrameInfo Class Reference

#include <PPCFrameInfo.h>

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

List of all members.

Public Member Functions

 PPCFrameInfo (const TargetMachine &tm, bool LP64)
const std::pair< unsigned, int > * getCalleeSavedSpillSlots (unsigned &NumEntries) const

Static Public Member Functions

static unsigned getReturnSaveOffset (bool isPPC64, bool isDarwinABI)
static unsigned getFramePointerSaveOffset (bool isPPC64, bool isDarwinABI)
static unsigned getLinkageSize (bool isPPC64, bool isDarwinABI)
static unsigned getMinCallArgumentsSize (bool isPPC64, bool isDarwinABI)
static unsigned getMinCallFrameSize (bool isPPC64, bool isDarwinABI)


Detailed Description

Definition at line 24 of file PPCFrameInfo.h.


Constructor & Destructor Documentation

llvm::PPCFrameInfo::PPCFrameInfo ( const TargetMachine &  tm,
bool  LP64 
) [inline]

Definition at line 28 of file PPCFrameInfo.h.


Member Function Documentation

static unsigned llvm::PPCFrameInfo::getReturnSaveOffset ( bool  isPPC64,
bool  isDarwinABI 
) [inline, static]

getReturnSaveOffset - Return the previous frame offset to save the return address.

Definition at line 34 of file PPCFrameInfo.h.

Referenced by llvm::PPCRegisterInfo::emitEpilogue(), llvm::PPCRegisterInfo::emitPrologue(), and EmitTailCallStoreFPAndRetAddr().

static unsigned llvm::PPCFrameInfo::getFramePointerSaveOffset ( bool  isPPC64,
bool  isDarwinABI 
) [inline, static]

getFramePointerSaveOffset - Return the previous frame offset to save the frame pointer.

Definition at line 43 of file PPCFrameInfo.h.

Referenced by llvm::PPCRegisterInfo::emitEpilogue(), llvm::PPCRegisterInfo::emitPrologue(), EmitTailCallStoreFPAndRetAddr(), and llvm::PPCRegisterInfo::processFunctionBeforeCalleeSavedScan().

static unsigned llvm::PPCFrameInfo::getLinkageSize ( bool  isPPC64,
bool  isDarwinABI 
) [inline, static]

getLinkageSize - Return the size of the PowerPC ABI linkage area.

Definition at line 57 of file PPCFrameInfo.h.

Referenced by CalculateParameterAndLinkageAreaSize(), and getMinCallFrameSize().

static unsigned llvm::PPCFrameInfo::getMinCallArgumentsSize ( bool  isPPC64,
bool  isDarwinABI 
) [inline, static]

getMinCallArgumentsSize - Return the size of the minium PowerPC ABI argument area.

Definition at line 67 of file PPCFrameInfo.h.

Referenced by getMinCallFrameSize().

static unsigned llvm::PPCFrameInfo::getMinCallFrameSize ( bool  isPPC64,
bool  isDarwinABI 
) [inline, static]

getMinCallFrameSize - Return the minimum size a call frame can be using the PowerPC ABI.

Definition at line 84 of file PPCFrameInfo.h.

References getLinkageSize(), and getMinCallArgumentsSize().

Referenced by CalculateParameterAndLinkageAreaSize(), and llvm::PPCRegisterInfo::determineFrameLayout().

const std::pair<unsigned, int>* llvm::PPCFrameInfo::getCalleeSavedSpillSlots ( unsigned &  NumEntries  )  const [inline, virtual]

getCalleeSavedSpillSlots - This method returns a pointer to an array of pairs, that contains an entry for each callee saved register that must be spilled to a particular stack location if it is spilled.

Each entry in this array contains a <register,offset> pair, indicating the fixed offset from the incoming stack pointer that each register should be spilled at. If a register is not listed here, the code generator is allowed to spill it anywhere it chooses.

Reimplemented from llvm::TargetFrameInfo.

Definition at line 92 of file PPCFrameInfo.h.

References llvm::array_lengthof(), and llvm::TargetMachine::getSubtarget().


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