LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::SparcV9FunctionInfo Class Reference

#include <MachineFunctionInfo.h>

Inheritance diagram for llvm::SparcV9FunctionInfo:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SparcV9FunctionInfo (MachineFunction &mf)
void CalculateArgSize ()
bool isCompiledAsLeafMethod () const
unsigned getStaticStackSize () const
unsigned getAutomaticVarsSize () const
unsigned getRegSpillsSize () const
unsigned getMaxOptionalArgsSize () const
unsigned getMaxOptionalNumArgs () const
const hash_set< const Constant * > & getConstantPoolValues () const
void initializeFrameLayout ()
void addToConstantPool (const Constant *constVal)
void markAsLeafMethod ()
int computeOffsetforLocalVar (const Value *local, unsigned &getPaddedSize, unsigned sizeToUse=0)
int allocateLocalVar (const Value *local, unsigned sizeToUse=0)
int allocateSpilledValue (const Type *type)
int pushTempValue (unsigned size)
void popAllTempValues ()
void freezeSpillsArea ()
void freezeAutomaticVarsArea ()

Public Attributes

hash_map< const Instruction *,
MachineCodeForInstruction
MCFIEntries

Detailed Description

Definition at line 32 of file MachineFunctionInfo.h.


Constructor & Destructor Documentation

llvm::SparcV9FunctionInfo::SparcV9FunctionInfo MachineFunction mf  )  [inline]
 

Definition at line 51 of file MachineFunctionInfo.h.


Member Function Documentation

void llvm::SparcV9FunctionInfo::addToConstantPool const Constant constVal  )  [inline]
 

Definition at line 81 of file MachineFunctionInfo.h.

int SparcV9FunctionInfo::allocateLocalVar const Value local,
unsigned  sizeToUse = 0
 

Definition at line 106 of file MachineFunctionInfo.cpp.

References computeOffsetforLocalVar().

int SparcV9FunctionInfo::allocateSpilledValue const Type type  ) 
 

Definition at line 126 of file MachineFunctionInfo.cpp.

References llvm::TargetFrameInfo::adjustAlignment(), llvm::TargetMachine::getFrameInfo(), llvm::TargetFrameInfo::getRegSpillAreaOffset(), getRegSpillsSize(), llvm::MachineFunction::getTarget(), llvm::TargetMachine::getTargetData(), llvm::TargetData::getTypeAlignment(), and llvm::TargetData::getTypeSize().

void SparcV9FunctionInfo::CalculateArgSize  ) 
 

CalculateArgSize - Call this method to fill in the maxOptionalArgsSize & staticStackSize fields...

Definition at line 72 of file MachineFunctionInfo.cpp.

References ComputeMaxOptionalArgsSize(), llvm::MachineFunction::getFunction(), and llvm::MachineFunction::getTarget().

int SparcV9FunctionInfo::computeOffsetforLocalVar const Value local,
unsigned &  getPaddedSize,
unsigned  sizeToUse = 0
 

Definition at line 80 of file MachineFunctionInfo.cpp.

References llvm::TargetFrameInfo::adjustAlignment(), getAutomaticVarsSize(), llvm::TargetFrameInfo::getFirstAutomaticVarOffset(), llvm::TargetMachine::getFrameInfo(), llvm::Type::getPrimitiveSize(), llvm::MachineFunction::getTarget(), llvm::TargetMachine::getTargetData(), llvm::Value::getType(), llvm::TargetData::getTypeSize(), llvm::Type::isIntegral(), and SizeToAlignment().

Referenced by allocateLocalVar().

void llvm::SparcV9FunctionInfo::freezeAutomaticVarsArea  )  [inline]
 

Definition at line 98 of file MachineFunctionInfo.h.

Referenced by llvm::SparcV9FrameInfo::getTmpAreaOffset().

void llvm::SparcV9FunctionInfo::freezeSpillsArea  )  [inline]
 

Definition at line 97 of file MachineFunctionInfo.h.

Referenced by llvm::SparcV9FrameInfo::getTmpAreaOffset().

unsigned llvm::SparcV9FunctionInfo::getAutomaticVarsSize  )  const [inline]
 

Definition at line 68 of file MachineFunctionInfo.h.

Referenced by computeOffsetforLocalVar(), and llvm::SparcV9FrameInfo::getTmpAreaOffset().

const hash_set<const Constant*>& llvm::SparcV9FunctionInfo::getConstantPoolValues  )  const [inline]
 

Definition at line 72 of file MachineFunctionInfo.h.

unsigned llvm::SparcV9FunctionInfo::getMaxOptionalArgsSize  )  const [inline]
 

Definition at line 70 of file MachineFunctionInfo.h.

unsigned llvm::SparcV9FunctionInfo::getMaxOptionalNumArgs  )  const [inline]
 

Definition at line 71 of file MachineFunctionInfo.h.

unsigned llvm::SparcV9FunctionInfo::getRegSpillsSize  )  const [inline]
 

Definition at line 69 of file MachineFunctionInfo.h.

Referenced by allocateSpilledValue(), and llvm::SparcV9FrameInfo::getTmpAreaOffset().

unsigned llvm::SparcV9FunctionInfo::getStaticStackSize  )  const [inline]
 

Definition at line 67 of file MachineFunctionInfo.h.

void llvm::SparcV9FunctionInfo::initializeFrameLayout  ) 
 

bool llvm::SparcV9FunctionInfo::isCompiledAsLeafMethod  )  const [inline]
 

Definition at line 66 of file MachineFunctionInfo.h.

void llvm::SparcV9FunctionInfo::markAsLeafMethod  )  [inline]
 

Definition at line 85 of file MachineFunctionInfo.h.

void SparcV9FunctionInfo::popAllTempValues  ) 
 

Definition at line 169 of file MachineFunctionInfo.cpp.

int SparcV9FunctionInfo::pushTempValue unsigned  size  ) 
 

Definition at line 150 of file MachineFunctionInfo.cpp.

References llvm::TargetFrameInfo::adjustAlignment(), llvm::TargetMachine::getFrameInfo(), llvm::MachineFunction::getTarget(), llvm::TargetFrameInfo::getTmpAreaOffset(), and SizeToAlignment().


Member Data Documentation

hash_map<const Instruction*, MachineCodeForInstruction> llvm::SparcV9FunctionInfo::MCFIEntries
 

Definition at line 49 of file MachineFunctionInfo.h.


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