LLVM  13.0.0git
Public Types | Public Member Functions | List of all members
llvm::PPCFunctionInfo Class Reference

PPCFunctionInfo - This class is derived from MachineFunction private PowerPC target-specific information for each MachineFunction. More...

#include "Target/PowerPC/PPCMachineFunctionInfo.h"

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

Public Types

enum  ParamType { FixedType = 0x0, ShortFloatPoint = 0x2, LongFloatPoint = 0x3 }
 

Public Member Functions

 PPCFunctionInfo (const MachineFunction &MF)
 
int getFramePointerSaveIndex () const
 
void setFramePointerSaveIndex (int Idx)
 
int getReturnAddrSaveIndex () const
 
void setReturnAddrSaveIndex (int idx)
 
int getBasePointerSaveIndex () const
 
void setBasePointerSaveIndex (int Idx)
 
int getPICBasePointerSaveIndex () const
 
void setPICBasePointerSaveIndex (int Idx)
 
int getROPProtectionHashSaveIndex () const
 
void setROPProtectionHashSaveIndex (int Idx)
 
unsigned getMinReservedArea () const
 
void setMinReservedArea (unsigned size)
 
int getTailCallSPDelta () const
 
void setTailCallSPDelta (int size)
 
void setMustSaveLR (bool U)
 MustSaveLR - This is set when the prolog/epilog inserter does its initial scan of the function. More...
 
bool mustSaveLR () const
 
void setMustSaveTOC (bool U)
 
bool mustSaveTOC () const
 
void setShrinkWrapDisabled (bool U)
 We certainly don't want to shrink wrap functions if we've emitted a MovePCtoLR8 as that has to go into the entry, so the prologue definitely has to go into the entry block. More...
 
bool shrinkWrapDisabled () const
 
void setHasSpills ()
 
bool hasSpills () const
 
void setHasNonRISpills ()
 
bool hasNonRISpills () const
 
void setSpillsCR ()
 
bool isCRSpilled () const
 
void setDisableNonVolatileCR ()
 
bool isNonVolatileCRDisabled () const
 
void setLRStoreRequired ()
 
bool isLRStoreRequired () const
 
void setUsesTOCBasePtr ()
 
bool usesTOCBasePtr () const
 
void setHasFastCall ()
 
bool hasFastCall () const
 
int getVarArgsFrameIndex () const
 
void setVarArgsFrameIndex (int Index)
 
int getVarArgsStackOffset () const
 
void setVarArgsStackOffset (int Offset)
 
unsigned getVarArgsNumGPR () const
 
void setVarArgsNumGPR (unsigned Num)
 
unsigned getFixedParamNum () const
 
unsigned getFloatingPointParamNum () const
 
uint32_t getParameterType () const
 
void appendParameterType (ParamType Type)
 
unsigned getVarArgsNumFPR () const
 
void setVarArgsNumFPR (unsigned Num)
 
void addLiveInAttr (Register VReg, ISD::ArgFlagsTy Flags)
 This function associates attributes for each live-in virtual register. More...
 
bool isLiveInSExt (Register VReg) const
 This function returns true if the specified vreg is a live-in register and sign-extended. More...
 
bool isLiveInZExt (Register VReg) const
 This function returns true if the specified vreg is a live-in register and zero-extended. More...
 
int getCRSpillFrameIndex () const
 
void setCRSpillFrameIndex (int idx)
 
const SmallVectorImpl< Register > & getMustSaveCRs () const
 
void addMustSaveCR (Register Reg)
 
void setUsesPICBase (bool uses)
 
bool usesPICBase () const
 
MCSymbolgetPICOffsetSymbol (MachineFunction &MF) const
 
MCSymbolgetGlobalEPSymbol (MachineFunction &MF) const
 
MCSymbolgetLocalEPSymbol (MachineFunction &MF) const
 
MCSymbolgetTOCOffsetSymbol (MachineFunction &MF) const
 
- 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

PPCFunctionInfo - This class is derived from MachineFunction private PowerPC target-specific information for each MachineFunction.

Definition at line 24 of file PPCMachineFunctionInfo.h.

Member Enumeration Documentation

◆ ParamType

Enumerator
FixedType 
ShortFloatPoint 
LongFloatPoint 

Definition at line 28 of file PPCMachineFunctionInfo.h.

Constructor & Destructor Documentation

◆ PPCFunctionInfo()

PPCFunctionInfo::PPCFunctionInfo ( const MachineFunction MF)
explicit

Definition at line 23 of file PPCMachineFunctionInfo.cpp.

Member Function Documentation

◆ addLiveInAttr()

void llvm::PPCFunctionInfo::addLiveInAttr ( Register  VReg,
ISD::ArgFlagsTy  Flags 
)
inline

This function associates attributes for each live-in virtual register.

Definition at line 238 of file PPCMachineFunctionInfo.h.

◆ addMustSaveCR()

void llvm::PPCFunctionInfo::addMustSaveCR ( Register  Reg)
inline

Definition at line 255 of file PPCMachineFunctionInfo.h.

References Reg.

Referenced by llvm::PPCFrameLowering::spillCalleeSavedRegisters().

◆ appendParameterType()

void PPCFunctionInfo::appendParameterType ( ParamType  Type)

◆ getBasePointerSaveIndex()

int llvm::PPCFunctionInfo::getBasePointerSaveIndex ( ) const
inline

◆ getCRSpillFrameIndex()

int llvm::PPCFunctionInfo::getCRSpillFrameIndex ( ) const
inline

Definition at line 250 of file PPCMachineFunctionInfo.h.

◆ getFixedParamNum()

unsigned llvm::PPCFunctionInfo::getFixedParamNum ( ) const
inline

Definition at line 227 of file PPCMachineFunctionInfo.h.

◆ getFloatingPointParamNum()

unsigned llvm::PPCFunctionInfo::getFloatingPointParamNum ( ) const
inline

Definition at line 229 of file PPCMachineFunctionInfo.h.

◆ getFramePointerSaveIndex()

int llvm::PPCFunctionInfo::getFramePointerSaveIndex ( ) const
inline

◆ getGlobalEPSymbol()

MCSymbol * PPCFunctionInfo::getGlobalEPSymbol ( MachineFunction MF) const

◆ getLocalEPSymbol()

MCSymbol * PPCFunctionInfo::getLocalEPSymbol ( MachineFunction MF) const

◆ getMinReservedArea()

unsigned llvm::PPCFunctionInfo::getMinReservedArea ( ) const
inline

◆ getMustSaveCRs()

const SmallVectorImpl<Register>& llvm::PPCFunctionInfo::getMustSaveCRs ( ) const
inline

◆ getParameterType()

uint32_t llvm::PPCFunctionInfo::getParameterType ( ) const
inline

Definition at line 231 of file PPCMachineFunctionInfo.h.

◆ getPICBasePointerSaveIndex()

int llvm::PPCFunctionInfo::getPICBasePointerSaveIndex ( ) const
inline

◆ getPICOffsetSymbol()

MCSymbol * PPCFunctionInfo::getPICOffsetSymbol ( MachineFunction MF) const

◆ getReturnAddrSaveIndex()

int llvm::PPCFunctionInfo::getReturnAddrSaveIndex ( ) const
inline

Definition at line 158 of file PPCMachineFunctionInfo.h.

◆ getROPProtectionHashSaveIndex()

int llvm::PPCFunctionInfo::getROPProtectionHashSaveIndex ( ) const
inline

◆ getTailCallSPDelta()

int llvm::PPCFunctionInfo::getTailCallSPDelta ( ) const
inline

◆ getTOCOffsetSymbol()

MCSymbol * PPCFunctionInfo::getTOCOffsetSymbol ( MachineFunction MF) const

◆ getVarArgsFrameIndex()

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

Definition at line 218 of file PPCMachineFunctionInfo.h.

◆ getVarArgsNumFPR()

unsigned llvm::PPCFunctionInfo::getVarArgsNumFPR ( ) const
inline

Definition at line 234 of file PPCMachineFunctionInfo.h.

◆ getVarArgsNumGPR()

unsigned llvm::PPCFunctionInfo::getVarArgsNumGPR ( ) const
inline

Definition at line 224 of file PPCMachineFunctionInfo.h.

◆ getVarArgsStackOffset()

int llvm::PPCFunctionInfo::getVarArgsStackOffset ( ) const
inline

Definition at line 221 of file PPCMachineFunctionInfo.h.

◆ hasFastCall()

bool llvm::PPCFunctionInfo::hasFastCall ( ) const
inline

Definition at line 216 of file PPCMachineFunctionInfo.h.

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

◆ hasNonRISpills()

bool llvm::PPCFunctionInfo::hasNonRISpills ( ) const
inline

Definition at line 201 of file PPCMachineFunctionInfo.h.

Referenced by hasNonRISpills().

◆ hasSpills()

bool llvm::PPCFunctionInfo::hasSpills ( ) const
inline

Definition at line 198 of file PPCMachineFunctionInfo.h.

Referenced by hasSpills().

◆ isCRSpilled()

bool llvm::PPCFunctionInfo::isCRSpilled ( ) const
inline

Definition at line 204 of file PPCMachineFunctionInfo.h.

Referenced by spillsCR().

◆ isLiveInSExt()

bool PPCFunctionInfo::isLiveInSExt ( Register  VReg) const

This function returns true if the specified vreg is a live-in register and sign-extended.

Definition at line 54 of file PPCMachineFunctionInfo.cpp.

Referenced by llvm::PPCInstrInfo::isSignOrZeroExtended().

◆ isLiveInZExt()

bool PPCFunctionInfo::isLiveInZExt ( Register  VReg) const

This function returns true if the specified vreg is a live-in register and zero-extended.

Definition at line 61 of file PPCMachineFunctionInfo.cpp.

Referenced by llvm::PPCInstrInfo::isSignOrZeroExtended().

◆ isLRStoreRequired()

bool llvm::PPCFunctionInfo::isLRStoreRequired ( ) const
inline

Definition at line 210 of file PPCMachineFunctionInfo.h.

Referenced by MustSaveLR().

◆ isNonVolatileCRDisabled()

bool llvm::PPCFunctionInfo::isNonVolatileCRDisabled ( ) const
inline

Definition at line 207 of file PPCMachineFunctionInfo.h.

◆ mustSaveLR()

bool llvm::PPCFunctionInfo::mustSaveLR ( ) const
inline

◆ mustSaveTOC()

bool llvm::PPCFunctionInfo::mustSaveTOC ( ) const
inline

◆ setBasePointerSaveIndex()

void llvm::PPCFunctionInfo::setBasePointerSaveIndex ( int  Idx)
inline

◆ setCRSpillFrameIndex()

void llvm::PPCFunctionInfo::setCRSpillFrameIndex ( int  idx)
inline

◆ setDisableNonVolatileCR()

void llvm::PPCFunctionInfo::setDisableNonVolatileCR ( )
inline

Definition at line 206 of file PPCMachineFunctionInfo.h.

◆ setFramePointerSaveIndex()

void llvm::PPCFunctionInfo::setFramePointerSaveIndex ( int  Idx)
inline

◆ setHasFastCall()

void llvm::PPCFunctionInfo::setHasFastCall ( )
inline

Definition at line 215 of file PPCMachineFunctionInfo.h.

◆ setHasNonRISpills()

void llvm::PPCFunctionInfo::setHasNonRISpills ( )
inline

Definition at line 200 of file PPCMachineFunctionInfo.h.

Referenced by fixupFuncForFI().

◆ setHasSpills()

void llvm::PPCFunctionInfo::setHasSpills ( )
inline

◆ setLRStoreRequired()

void llvm::PPCFunctionInfo::setLRStoreRequired ( )
inline

Definition at line 209 of file PPCMachineFunctionInfo.h.

◆ setMinReservedArea()

void llvm::PPCFunctionInfo::setMinReservedArea ( unsigned  size)
inline

Definition at line 175 of file PPCMachineFunctionInfo.h.

References llvm::size().

◆ setMustSaveLR()

void llvm::PPCFunctionInfo::setMustSaveLR ( bool  U)
inline

MustSaveLR - This is set when the prolog/epilog inserter does its initial scan of the function.

It is true if the LR/LR8 register is ever explicitly defined/clobbered in the machine function (e.g. by calls and movpctolr, which is used in PIC generation), or if the LR stack slot is explicitly referenced by builtin_return_address.

Definition at line 185 of file PPCMachineFunctionInfo.h.

Referenced by llvm::PPCFrameLowering::determineCalleeSaves().

◆ setMustSaveTOC()

void llvm::PPCFunctionInfo::setMustSaveTOC ( bool  U)
inline

Definition at line 188 of file PPCMachineFunctionInfo.h.

◆ setPICBasePointerSaveIndex()

void llvm::PPCFunctionInfo::setPICBasePointerSaveIndex ( int  Idx)
inline

◆ setReturnAddrSaveIndex()

void llvm::PPCFunctionInfo::setReturnAddrSaveIndex ( int  idx)
inline

Definition at line 159 of file PPCMachineFunctionInfo.h.

◆ setROPProtectionHashSaveIndex()

void llvm::PPCFunctionInfo::setROPProtectionHashSaveIndex ( int  Idx)
inline

Definition at line 170 of file PPCMachineFunctionInfo.h.

◆ setShrinkWrapDisabled()

void llvm::PPCFunctionInfo::setShrinkWrapDisabled ( bool  U)
inline

We certainly don't want to shrink wrap functions if we've emitted a MovePCtoLR8 as that has to go into the entry, so the prologue definitely has to go into the entry block.

Definition at line 194 of file PPCMachineFunctionInfo.h.

◆ setSpillsCR()

void llvm::PPCFunctionInfo::setSpillsCR ( )
inline

◆ setTailCallSPDelta()

void llvm::PPCFunctionInfo::setTailCallSPDelta ( int  size)
inline

Definition at line 178 of file PPCMachineFunctionInfo.h.

References llvm::size().

Referenced by CalculateTailCallSPDiff().

◆ setUsesPICBase()

void llvm::PPCFunctionInfo::setUsesPICBase ( bool  uses)
inline

Definition at line 257 of file PPCMachineFunctionInfo.h.

References uses.

◆ setUsesTOCBasePtr()

void llvm::PPCFunctionInfo::setUsesTOCBasePtr ( )
inline

Definition at line 212 of file PPCMachineFunctionInfo.h.

Referenced by setUsesTOCBasePtr().

◆ setVarArgsFrameIndex()

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

Definition at line 219 of file PPCMachineFunctionInfo.h.

References Index.

◆ setVarArgsNumFPR()

void llvm::PPCFunctionInfo::setVarArgsNumFPR ( unsigned  Num)
inline

Definition at line 235 of file PPCMachineFunctionInfo.h.

◆ setVarArgsNumGPR()

void llvm::PPCFunctionInfo::setVarArgsNumGPR ( unsigned  Num)
inline

Definition at line 225 of file PPCMachineFunctionInfo.h.

◆ setVarArgsStackOffset()

void llvm::PPCFunctionInfo::setVarArgsStackOffset ( int  Offset)
inline

Definition at line 222 of file PPCMachineFunctionInfo.h.

References Offset.

◆ shrinkWrapDisabled()

bool llvm::PPCFunctionInfo::shrinkWrapDisabled ( ) const
inline

◆ usesPICBase()

bool llvm::PPCFunctionInfo::usesPICBase ( ) const
inline

◆ usesTOCBasePtr()

bool llvm::PPCFunctionInfo::usesTOCBasePtr ( ) const
inline

Definition at line 213 of file PPCMachineFunctionInfo.h.

Referenced by llvm::PPCRegisterInfo::getReservedRegs().


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