13 #ifndef LLVM_LIB_TARGET_POWERPC_PPCMACHINEFUNCTIONINFO_H 14 #define LLVM_LIB_TARGET_POWERPC_PPCMACHINEFUNCTIONINFO_H 25 virtual void anchor();
30 int FramePointerSaveIndex = 0;
34 int ReturnAddrSaveIndex = 0;
37 int BasePointerSaveIndex = 0;
40 int PICBasePointerSaveIndex = 0;
45 bool MustSaveLR =
false;
51 bool MustSaveTOC =
false;
56 bool ShrinkWrapDisabled =
false;
59 bool HasSpills =
false;
63 bool HasNonRISpills =
false;
66 bool SpillsCR =
false;
69 bool SpillsVRSAVE =
false;
75 bool LRStoreRequired =
false;
78 bool UsesTOCBasePtr =
false;
82 unsigned MinReservedArea = 0;
87 int TailCallSPDelta = 0;
91 bool HasFastCall =
false;
94 int VarArgsFrameIndex = 0;
99 int VarArgsStackOffset = 0;
103 unsigned VarArgsNumGPR = 0;
107 unsigned VarArgsNumFPR = 0;
110 int CRSpillFrameIndex = 0;
121 bool UsesPICBase =
false;
125 bool IsSplitCSR =
false;
129 std::vector<std::pair<unsigned, ISD::ArgFlagsTy>> LiveInAttrs;
204 LiveInAttrs.push_back(std::make_pair(VReg, Flags));
237 #endif // LLVM_LIB_TARGET_POWERPC_PPCMACHINEFUNCTIONINFO_H
MCSymbol * getGlobalEPSymbol() const
void setVarArgsNumGPR(unsigned Num)
bool isVRSAVESpilled() const
int getFramePointerSaveIndex() const
This class represents lattice values for constants.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
int getVarArgsStackOffset() const
void addMustSaveCR(unsigned Reg)
void setLRStoreRequired()
void push_back(const T &Elt)
void setFramePointerSaveIndex(int Idx)
void setVarArgsNumFPR(unsigned Num)
unsigned getVarArgsNumGPR() const
int getReturnAddrSaveIndex() const
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...
void setVarArgsStackOffset(int Offset)
PPCFunctionInfo - This class is derived from MachineFunction private PowerPC target-specific informat...
int getCRSpillFrameIndex() const
PPCFunctionInfo(MachineFunction &MF)
const SmallVectorImpl< unsigned > & getMustSaveCRs() const
MCSymbol * getTOCOffsetSymbol() const
void setUsesPICBase(bool uses)
bool hasNonRISpills() const
void setTailCallSPDelta(int size)
int getBasePointerSaveIndex() const
bool isLiveInSExt(unsigned VReg) const
This function returns true if the specified vreg is a live-in register and sign-extended.
void setReturnAddrSaveIndex(int idx)
int getTailCallSPDelta() const
void setVarArgsFrameIndex(int Index)
void setBasePointerSaveIndex(int Idx)
void setMinReservedArea(unsigned size)
bool shrinkWrapDisabled() const
void setCRSpillFrameIndex(int idx)
void addLiveInAttr(unsigned VReg, ISD::ArgFlagsTy Flags)
This function associates attributes for each live-in virtual register.
void setMustSaveTOC(bool U)
auto size(R &&Range, typename std::enable_if< std::is_same< typename std::iterator_traits< decltype(Range.begin())>::iterator_category, std::random_access_iterator_tag >::value, void >::type *=nullptr) -> decltype(std::distance(Range.begin(), Range.end()))
Get the size of a range.
void setIsSplitCSR(bool s)
unsigned getMinReservedArea() const
MCSymbol * getPICOffsetSymbol() const
int getVarArgsFrameIndex() const
int getPICBasePointerSaveIndex() const
void setPICBasePointerSaveIndex(int Idx)
bool usesTOCBasePtr() const
bool isLRStoreRequired() 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 int...
MCSymbol * getLocalEPSymbol() const
bool isLiveInZExt(unsigned VReg) const
This function returns true if the specified vreg is a live-in register and zero-extended.
unsigned getVarArgsNumFPR() const
void setMustSaveLR(bool U)
MustSaveLR - This is set when the prolog/epilog inserter does its initial scan of the function...