LLVM API Documentation
#include <MachineFunctionInfo.h>
Inheritance diagram for llvm::SparcV9FunctionInfo:
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 |
Definition at line 32 of file MachineFunctionInfo.h.
llvm::SparcV9FunctionInfo::SparcV9FunctionInfo | ( | MachineFunction & | mf | ) | [inline] |
Definition at line 51 of file MachineFunctionInfo.h.
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 | |||
) |
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(), llvm::TargetData::getTypeSize(), MF, and size.
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(), llvm::MachineFunction::getTarget(), and MF.
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(), MF, 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(), MF, and SizeToAlignment().
Definition at line 49 of file MachineFunctionInfo.h.