13#ifndef LLVM_LIB_TARGET_POWERPC_PPCMACHINEFUNCTIONINFO_H
14#define LLVM_LIB_TARGET_POWERPC_PPCMACHINEFUNCTIONINFO_H
39 virtual void anchor();
44 int FramePointerSaveIndex = 0;
48 int ReturnAddrSaveIndex = 0;
51 int BasePointerSaveIndex = 0;
54 int PICBasePointerSaveIndex = 0;
57 int ROPProtectionHashSaveIndex = 0;
68 bool MustSaveTOC =
false;
73 bool ShrinkWrapDisabled =
false;
76 bool HasSpills =
false;
80 bool HasNonRISpills =
false;
83 bool SpillsCR =
false;
87 bool DisableNonVolatileCR =
false;
93 bool LRStoreRequired =
false;
96 bool UsesTOCBasePtr =
false;
100 unsigned MinReservedArea = 0;
105 int TailCallSPDelta = 0;
109 bool HasFastCall =
false;
112 int VarArgsFrameIndex = 0;
117 int VarArgsStackOffset = 0;
121 unsigned VarArgsNumGPR = 0;
125 unsigned VarArgsNumFPR = 0;
128 unsigned FixedParmsNum = 0;
131 unsigned FloatingParmsNum = 0;
134 unsigned VectorParmsNum = 0;
141 int CRSpillFrameIndex = 0;
149 bool UsesPICBase =
false;
153 std::vector<std::pair<Register, ISD::ArgFlagsTy>> LiveInAttrs;
157 bool AIXFuncUseTLSIEForLD =
false;
158 bool AIXFuncTLSModelOptInitDone =
false;
181 return ROPProtectionHashSaveIndex;
184 ROPProtectionHashSaveIndex = Idx;
233 return AIXFuncTLSModelOptInitDone;
263 LiveInAttrs.push_back(std::make_pair(VReg, Flags));
static bool MustSaveLR(const MachineFunction &MF, MCRegister LR)
MustSaveLR - Return true if this function requires that we save the LR register onto the stack in the...
This file defines the SmallVector class.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
int getTailCallSPDelta() const
void setVarArgsNumFPR(unsigned Num)
uint32_t getParmsType() const
MCSymbol * getPICOffsetSymbol(MachineFunction &MF) const
const SmallVectorImpl< Register > & getMustSaveCRs() const
void setReturnAddrSaveIndex(int idx)
void setMustSaveTOC(bool U)
unsigned getFloatingPointParmsNum() const
bool isAIXFuncUseTLSIEForLD() const
bool isLiveInSExt(Register VReg) const
This function returns true if the specified vreg is a live-in register and sign-extended.
MCSymbol * getGlobalEPSymbol(MachineFunction &MF) const
int getPICBasePointerSaveIndex() const
MCSymbol * getLocalEPSymbol(MachineFunction &MF) const
bool shrinkWrapDisabled() const
int getReturnAddrSaveIndex() const
unsigned getVarArgsNumFPR() const
void setAIXFuncUseTLSIEForLD()
int getFramePointerSaveIndex() const
bool isLiveInZExt(Register VReg) const
This function returns true if the specified vreg is a live-in register and zero-extended.
void setShrinkWrapDisabled(bool U)
We certainly don't want to shrink wrap functions if we've emitted a MovePCtoLR8 as that has to go int...
unsigned getVectorParmsNum() const
void setVarArgsNumGPR(unsigned Num)
void setUsesPICBase(bool uses)
void appendParameterType(ParamType Type)
bool isNonVolatileCRDisabled() const
int getVarArgsFrameIndex() const
void addMustSaveCR(Register Reg)
void setLRStoreRequired()
bool usesTOCBasePtr() const
void setBasePointerSaveIndex(int Idx)
PPCFunctionInfo(const Function &F, const PPCSubtarget *STI)
bool isAIXFuncTLSModelOptInitDone() const
bool hasVectorParms() const
void setTailCallSPDelta(int size)
uint32_t getVecExtParmsType() const
void setAIXFuncTLSModelOptInitDone()
int getCRSpillFrameIndex() const
bool hasNonRISpills() const
bool isLRStoreRequired() const
void setMinReservedArea(unsigned size)
void setPICBasePointerSaveIndex(int Idx)
MCSymbol * getTOCOffsetSymbol(MachineFunction &MF) const
int getROPProtectionHashSaveIndex() const
unsigned getVarArgsNumGPR() const
unsigned getMinReservedArea() const
void setMustSaveLR(bool U)
MustSaveLR - This is set when the prolog/epilog inserter does its initial scan of the function.
void setDisableNonVolatileCR()
void setVarArgsStackOffset(int Offset)
void setCRSpillFrameIndex(int idx)
unsigned getFixedParmsNum() const
void setVarArgsFrameIndex(int Index)
int getBasePointerSaveIndex() const
void addLiveInAttr(Register VReg, ISD::ArgFlagsTy Flags)
This function associates attributes for each live-in virtual register.
void setROPProtectionHashSaveIndex(int Idx)
MachineFunctionInfo * clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) const override
Make a functionally equivalent copy of this MachineFunctionInfo in MF.
int getVarArgsStackOffset() const
void setFramePointerSaveIndex(int Idx)
Wrapper class representing virtual and physical registers.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
The instances of the Type class are immutable: once they are created, they are never changed.
This is an optimization pass for GlobalISel generic memory operations.
auto size(R &&Range, std::enable_if_t< std::is_base_of< std::random_access_iterator_tag, typename std::iterator_traits< decltype(Range.begin())>::iterator_category >::value, void > *=nullptr)
Get the size of a range.
BumpPtrAllocatorImpl<> BumpPtrAllocator
The standard BumpPtrAllocator which just uses the default template parameters.
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...