LLVM API Documentation
#include <TargetFrameInfo.h>
Inheritance diagram for llvm::TargetFrameInfo:
Public Types | |
enum | StackDirection { StackGrowsUp, StackGrowsDown } |
Public Member Functions | |
TargetFrameInfo (StackDirection D, unsigned StackAl, int LAO) | |
StackDirection | getStackGrowthDirection () const |
unsigned | getStackAlignment () const |
int | getOffsetOfLocalArea () const |
virtual const std::pair< unsigned, int > * | getCalleeSaveSpillSlots (unsigned &NumEntries) const |
virtual int | adjustAlignment (int unalignedOffset, bool growUp, unsigned align) const |
virtual int | getIncomingArgOffset (MachineFunction &mcInfo, unsigned argNum) const |
virtual int | getOutgoingArgOffset (MachineFunction &mcInfo, unsigned argNum) const |
virtual int | getFirstAutomaticVarOffset (MachineFunction &mcInfo, bool &growUp) const |
virtual int | getRegSpillAreaOffset (MachineFunction &mcInfo, bool &growUp) const |
virtual int | getTmpAreaOffset (MachineFunction &mcInfo, bool &growUp) const |
virtual int | getDynamicAreaOffset (MachineFunction &mcInfo, bool &growUp) const |
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 30 of file TargetFrameInfo.h.
|
Definition at line 32 of file TargetFrameInfo.h. |
|
Definition at line 41 of file TargetFrameInfo.h. |
|
Definition at line 26 of file TargetFrameInfo.cpp. References abort(). Referenced by llvm::SparcV9FunctionInfo::allocateSpilledValue(), llvm::SparcV9FunctionInfo::computeOffsetforLocalVar(), and llvm::SparcV9FunctionInfo::pushTempValue(). |
|
getCalleeSaveSpillSlots - This method returns a pointer to an array of pairs, that contains an entry for each callee save 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 in llvm::PowerPCFrameInfo. Definition at line 72 of file TargetFrameInfo.h. |
|
Reimplemented in llvm::SparcV9FrameInfo. Definition at line 55 of file TargetFrameInfo.cpp. References abort(). |
|
Reimplemented in llvm::SparcV9FrameInfo. Definition at line 43 of file TargetFrameInfo.cpp. References abort(). Referenced by llvm::SparcV9FunctionInfo::computeOffsetforLocalVar(). |
|
Reimplemented in llvm::SparcV9FrameInfo. Definition at line 35 of file TargetFrameInfo.cpp. References abort(). Referenced by llvm::SparcV9RegInfo::colorMethodArgs(). |
|
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::MachineFrameInfo::print(). |
|
Reimplemented in llvm::SparcV9FrameInfo. Definition at line 39 of file TargetFrameInfo.cpp. References abort(). |
|
Reimplemented in llvm::SparcV9FrameInfo. Definition at line 47 of file TargetFrameInfo.cpp. References abort(). Referenced by llvm::SparcV9FunctionInfo::allocateSpilledValue(). |
|
getStackAlignment - This method returns the number of bytes that the stack pointer must be aligned to. Typically, this is the largest alignment for any data object in the target. Definition at line 55 of file TargetFrameInfo.h. Referenced by llvm::X86RegisterInfo::eliminateCallFramePseudoInstr(), llvm::PPC64RegisterInfo::eliminateCallFramePseudoInstr(), llvm::PPC32RegisterInfo::eliminateCallFramePseudoInstr(), llvm::X86RegisterInfo::emitPrologue(), llvm::PPC64RegisterInfo::emitPrologue(), and llvm::PPC32RegisterInfo::emitPrologue(). |
|
getStackGrowthDirection - Return the direction the stack grows Definition at line 49 of file TargetFrameInfo.h. |
|
Reimplemented in llvm::SparcV9FrameInfo. Definition at line 51 of file TargetFrameInfo.cpp. References abort(). Referenced by llvm::SparcV9FunctionInfo::pushTempValue(). |