LLVM API Documentation

llvm::TargetFrameInfo Class Reference

#include <TargetFrameInfo.h>

Inheritance diagram for llvm::TargetFrameInfo:

Inheritance graph
[legend]
Collaboration diagram for llvm::TargetFrameInfo:

Collaboration graph
[legend]

List of all members.

Public Types

enum  StackDirection { StackGrowsUp, StackGrowsDown }

Public Member Functions

 TargetFrameInfo (StackDirection D, unsigned StackAl, int LAO)
virtual ~TargetFrameInfo ()
StackDirection getStackGrowthDirection () const
unsigned getStackAlignment () const
int getOffsetOfLocalArea () const
virtual const std::pair
< unsigned, int > * 
getCalleeSavedSpillSlots (unsigned &NumEntries) const


Detailed Description

Information about stack frame layout on the target. It holds the direction of stack growth, the known stack alignment on entry to each function, and the offset to the locals area.

The offset to the local area is the offset from the stack pointer on function entry to the first location where function data (local variables, spill locations) can be stored.

Definition at line 28 of file TargetFrameInfo.h.


Member Enumeration Documentation

Enumerator:
StackGrowsUp 
StackGrowsDown 

Definition at line 30 of file TargetFrameInfo.h.


Constructor & Destructor Documentation

llvm::TargetFrameInfo::TargetFrameInfo ( StackDirection  D,
unsigned  StackAl,
int  LAO 
) [inline]

Definition at line 39 of file TargetFrameInfo.h.

TargetFrameInfo::~TargetFrameInfo (  )  [virtual]

Definition at line 18 of file TargetFrameInfo.cpp.


Member Function Documentation

StackDirection llvm::TargetFrameInfo::getStackGrowthDirection (  )  const [inline]

getStackGrowthDirection - Return the direction the stack grows

Definition at line 49 of file TargetFrameInfo.h.

Referenced by llvm::JITDwarfEmitter::EmitDwarfTable(), llvm::X86RegisterInfo::emitFrameMoves(), and llvm::JITDwarfEmitter::GetDwarfTableSizeInBytes().

unsigned llvm::TargetFrameInfo::getStackAlignment (  )  const [inline]

int llvm::TargetFrameInfo::getOffsetOfLocalArea (  )  const [inline]

getOffsetOfLocalArea - This method returns the offset of the local area from the stack pointer on entrance to a function.

Definition at line 60 of file TargetFrameInfo.h.

Referenced by llvm::TargetRegisterInfo::getFrameIndexOffset(), and llvm::MachineFrameInfo::print().

virtual const std::pair<unsigned, int>* llvm::TargetFrameInfo::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.

Definition at line 72 of file TargetFrameInfo.h.


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.