LLVM  4.0.0
Public Member Functions | List of all members
llvm::ARMFunctionInfo Class Reference

ARMFunctionInfo - This class is derived from MachineFunctionInfo and contains private ARM-specific information for each MachineFunction. More...

#include <ARMMachineFunctionInfo.h>

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

Public Member Functions

 ARMFunctionInfo ()
 
 ARMFunctionInfo (MachineFunction &MF)
 
bool isThumbFunction () const
 
bool isThumb1OnlyFunction () const
 
bool isThumb2Function () const
 
unsigned getStoredByValParamsPadding () const
 
void setStoredByValParamsPadding (unsigned p)
 
unsigned getArgRegsSaveSize () const
 
void setArgRegsSaveSize (unsigned s)
 
unsigned getReturnRegsCount () const
 
void setReturnRegsCount (unsigned s)
 
bool hasStackFrame () const
 
void setHasStackFrame (bool s)
 
bool shouldRestoreSPFromFP () const
 
void setShouldRestoreSPFromFP (bool s)
 
bool isLRSpilledForFarJump () const
 
void setLRIsSpilledForFarJump (bool s)
 
unsigned getFramePtrSpillOffset () const
 
void setFramePtrSpillOffset (unsigned o)
 
unsigned getNumAlignedDPRCS2Regs () const
 
void setNumAlignedDPRCS2Regs (unsigned n)
 
unsigned getGPRCalleeSavedArea1Offset () const
 
unsigned getGPRCalleeSavedArea2Offset () const
 
unsigned getDPRCalleeSavedAreaOffset () const
 
void setGPRCalleeSavedArea1Offset (unsigned o)
 
void setGPRCalleeSavedArea2Offset (unsigned o)
 
void setDPRCalleeSavedAreaOffset (unsigned o)
 
unsigned getGPRCalleeSavedArea1Size () const
 
unsigned getGPRCalleeSavedArea2Size () const
 
unsigned getDPRCalleeSavedGapSize () const
 
unsigned getDPRCalleeSavedAreaSize () const
 
void setGPRCalleeSavedArea1Size (unsigned s)
 
void setGPRCalleeSavedArea2Size (unsigned s)
 
void setDPRCalleeSavedGapSize (unsigned s)
 
void setDPRCalleeSavedAreaSize (unsigned s)
 
unsigned getArgumentStackSize () const
 
void setArgumentStackSize (unsigned size)
 
void initPICLabelUId (unsigned UId)
 
unsigned getNumPICLabels () const
 
unsigned createPICLabelUId ()
 
int getVarArgsFrameIndex () const
 
void setVarArgsFrameIndex (int Index)
 
bool hasITBlocks () const
 
void setHasITBlocks (bool h)
 
bool isSplitCSR () const
 
void setIsSplitCSR (bool s)
 
void recordCPEClone (unsigned CPIdx, unsigned CPCloneIdx)
 
unsigned getOriginalCPIdx (unsigned CloneIdx) const
 
DenseMap< const
MachineBasicBlock *, unsigned >
::iterator 
getCoalescedWeight (MachineBasicBlock *MBB)
 
void markGlobalAsPromotedToConstantPool (const GlobalVariable *GV)
 Indicate to the backend that GV has had its storage changed to inside a constant pool. More...
 
SmallPtrSet< const
GlobalVariable *, 2 > & 
getGlobalsPromotedToConstantPool ()
 
int getPromotedConstpoolIncrease () const
 
void setPromotedConstpoolIncrease (int Sz)
 
- Public Member Functions inherited from llvm::MachineFunctionInfo
virtual ~MachineFunctionInfo ()
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::MachineFunctionInfo
template<typename Ty >
static Ty * create (BumpPtrAllocator &Allocator, MachineFunction &MF)
 Factory function: default behavior is to call new using the supplied allocator. More...
 

Detailed Description

ARMFunctionInfo - This class is derived from MachineFunctionInfo and contains private ARM-specific information for each MachineFunction.

Definition at line 27 of file ARMMachineFunctionInfo.h.

Constructor & Destructor Documentation

llvm::ARMFunctionInfo::ARMFunctionInfo ( )
inline

Definition at line 131 of file ARMMachineFunctionInfo.h.

ARMFunctionInfo::ARMFunctionInfo ( MachineFunction MF)
explicit

Definition at line 16 of file ARMMachineFunctionInfo.cpp.

Member Function Documentation

unsigned llvm::ARMFunctionInfo::createPICLabelUId ( )
inline
unsigned llvm::ARMFunctionInfo::getArgRegsSaveSize ( ) const
inline
unsigned llvm::ARMFunctionInfo::getArgumentStackSize ( ) const
inline
DenseMap<const MachineBasicBlock*, unsigned>::iterator llvm::ARMFunctionInfo::getCoalescedWeight ( MachineBasicBlock MBB)
inline

Definition at line 228 of file ARMMachineFunctionInfo.h.

Referenced by llvm::ARMBaseRegisterInfo::shouldCoalesce().

unsigned llvm::ARMFunctionInfo::getDPRCalleeSavedAreaOffset ( ) const
inline

Definition at line 175 of file ARMMachineFunctionInfo.h.

unsigned llvm::ARMFunctionInfo::getDPRCalleeSavedAreaSize ( ) const
inline
unsigned llvm::ARMFunctionInfo::getDPRCalleeSavedGapSize ( ) const
inline

Definition at line 183 of file ARMMachineFunctionInfo.h.

Referenced by llvm::ARMFrameLowering::emitEpilogue().

unsigned llvm::ARMFunctionInfo::getFramePtrSpillOffset ( ) const
inline
SmallPtrSet<const GlobalVariable*, 2>& llvm::ARMFunctionInfo::getGlobalsPromotedToConstantPool ( )
inline
unsigned llvm::ARMFunctionInfo::getGPRCalleeSavedArea1Offset ( ) const
inline

Definition at line 173 of file ARMMachineFunctionInfo.h.

unsigned llvm::ARMFunctionInfo::getGPRCalleeSavedArea1Size ( ) const
inline
unsigned llvm::ARMFunctionInfo::getGPRCalleeSavedArea2Offset ( ) const
inline

Definition at line 174 of file ARMMachineFunctionInfo.h.

unsigned llvm::ARMFunctionInfo::getGPRCalleeSavedArea2Size ( ) const
inline
unsigned llvm::ARMFunctionInfo::getNumAlignedDPRCS2Regs ( ) const
inline
unsigned llvm::ARMFunctionInfo::getNumPICLabels ( ) const
inline

Definition at line 198 of file ARMMachineFunctionInfo.h.

unsigned llvm::ARMFunctionInfo::getOriginalCPIdx ( unsigned  CloneIdx) const
inline
int llvm::ARMFunctionInfo::getPromotedConstpoolIncrease ( ) const
inline

Definition at line 246 of file ARMMachineFunctionInfo.h.

Referenced by promoteToConstantPool().

unsigned llvm::ARMFunctionInfo::getReturnRegsCount ( ) const
inline
unsigned llvm::ARMFunctionInfo::getStoredByValParamsPadding ( ) const
inline

Definition at line 149 of file ARMMachineFunctionInfo.h.

int llvm::ARMFunctionInfo::getVarArgsFrameIndex ( ) const
inline

Definition at line 206 of file ARMMachineFunctionInfo.h.

Referenced by LowerVASTART().

bool llvm::ARMFunctionInfo::hasITBlocks ( ) const
inline
bool llvm::ARMFunctionInfo::hasStackFrame ( ) const
inline
void llvm::ARMFunctionInfo::initPICLabelUId ( unsigned  UId)
inline

Definition at line 194 of file ARMMachineFunctionInfo.h.

bool llvm::ARMFunctionInfo::isLRSpilledForFarJump ( ) const
inline

Definition at line 164 of file ARMMachineFunctionInfo.h.

bool llvm::ARMFunctionInfo::isSplitCSR ( ) const
inline
bool llvm::ARMFunctionInfo::isThumb1OnlyFunction ( ) const
inline
bool llvm::ARMFunctionInfo::isThumb2Function ( ) const
inline
bool llvm::ARMFunctionInfo::isThumbFunction ( ) const
inline
void llvm::ARMFunctionInfo::markGlobalAsPromotedToConstantPool ( const GlobalVariable GV)
inline

Indicate to the backend that GV has had its storage changed to inside a constant pool.

This means it no longer needs to be emitted as a global variable.

Definition at line 240 of file ARMMachineFunctionInfo.h.

Referenced by promoteToConstantPool().

void llvm::ARMFunctionInfo::recordCPEClone ( unsigned  CPIdx,
unsigned  CPCloneIdx 
)
inline
void llvm::ARMFunctionInfo::setArgRegsSaveSize ( unsigned  s)
inline

Definition at line 153 of file ARMMachineFunctionInfo.h.

void llvm::ARMFunctionInfo::setArgumentStackSize ( unsigned  size)
inline

Definition at line 192 of file ARMMachineFunctionInfo.h.

void llvm::ARMFunctionInfo::setDPRCalleeSavedAreaOffset ( unsigned  o)
inline
void llvm::ARMFunctionInfo::setDPRCalleeSavedAreaSize ( unsigned  s)
inline
void llvm::ARMFunctionInfo::setDPRCalleeSavedGapSize ( unsigned  s)
inline

Definition at line 188 of file ARMMachineFunctionInfo.h.

Referenced by llvm::ARMFrameLowering::emitPrologue().

void llvm::ARMFunctionInfo::setFramePtrSpillOffset ( unsigned  o)
inline
void llvm::ARMFunctionInfo::setGPRCalleeSavedArea1Offset ( unsigned  o)
inline
void llvm::ARMFunctionInfo::setGPRCalleeSavedArea1Size ( unsigned  s)
inline
void llvm::ARMFunctionInfo::setGPRCalleeSavedArea2Offset ( unsigned  o)
inline
void llvm::ARMFunctionInfo::setGPRCalleeSavedArea2Size ( unsigned  s)
inline
void llvm::ARMFunctionInfo::setHasITBlocks ( bool  h)
inline

Definition at line 210 of file ARMMachineFunctionInfo.h.

void llvm::ARMFunctionInfo::setHasStackFrame ( bool  s)
inline
void llvm::ARMFunctionInfo::setIsSplitCSR ( bool  s)
inline

Definition at line 213 of file ARMMachineFunctionInfo.h.

void llvm::ARMFunctionInfo::setLRIsSpilledForFarJump ( bool  s)
inline
void llvm::ARMFunctionInfo::setNumAlignedDPRCS2Regs ( unsigned  n)
inline

Definition at line 171 of file ARMMachineFunctionInfo.h.

void llvm::ARMFunctionInfo::setPromotedConstpoolIncrease ( int  Sz)
inline

Definition at line 249 of file ARMMachineFunctionInfo.h.

Referenced by promoteToConstantPool().

void llvm::ARMFunctionInfo::setReturnRegsCount ( unsigned  s)
inline

Definition at line 156 of file ARMMachineFunctionInfo.h.

void llvm::ARMFunctionInfo::setShouldRestoreSPFromFP ( bool  s)
inline
void llvm::ARMFunctionInfo::setStoredByValParamsPadding ( unsigned  p)
inline

Definition at line 150 of file ARMMachineFunctionInfo.h.

void llvm::ARMFunctionInfo::setVarArgsFrameIndex ( int  Index)
inline

Definition at line 207 of file ARMMachineFunctionInfo.h.

bool llvm::ARMFunctionInfo::shouldRestoreSPFromFP ( ) const
inline

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