14 #ifndef LLVM_LIB_TARGET_ARM_ARMMACHINEFUNCTIONINFO_H
15 #define LLVM_LIB_TARGET_ARM_ARMMACHINEFUNCTIONINFO_H
28 virtual void anchor();
37 bool hasThumb2 =
false;
44 unsigned StByValParamsPadding = 0;
48 unsigned ArgRegsSaveSize = 0;
51 unsigned ReturnRegsCount = 0;
55 bool HasStackFrame =
false;
59 bool RestoreSPFromFP =
false;
63 bool LRSpilledForFarJump =
false;
67 unsigned FramePtrSpillOffset = 0;
80 unsigned GPRCS1Offset = 0;
81 unsigned GPRCS2Offset = 0;
82 unsigned DPRCSOffset = 0;
86 unsigned GPRCS1Size = 0;
87 unsigned GPRCS2Size = 0;
88 unsigned DPRCSAlignGapSize = 0;
89 unsigned DPRCSSize = 0;
98 unsigned NumAlignedDPRCS2Regs = 0;
100 unsigned PICLabelUId = 0;
103 int VarArgsFrameIndex = 0;
106 bool HasITBlocks =
false;
114 unsigned ArgumentStackSize = 0;
122 bool IsSplitCSR =
false;
128 int PromotedGlobalsIncrease = 0;
193 return PICLabelUId++;
206 if (!CPEClones.
insert(std::make_pair(CPCloneIdx, CPIdx)).second)
212 if (I != CPEClones.
end())
220 auto It = CoalescedWeights.find(MBB);
221 if (It == CoalescedWeights.end()) {
222 It = CoalescedWeights.insert(std::make_pair(MBB, 0)).first;
231 PromotedGlobals.insert(GV);
234 return PromotedGlobals;
237 return PromotedGlobalsIncrease;
240 PromotedGlobalsIncrease = Sz;
246 #endif // LLVM_LIB_TARGET_ARM_ARMMACHINEFUNCTIONINFO_H
int getPromotedConstpoolIncrease() const
void markGlobalAsPromotedToConstantPool(const GlobalVariable *GV)
Indicate to the backend that GV has had its storage changed to inside a constant pool.
bool isThumbFunction() const
void setGPRCalleeSavedArea2Offset(unsigned o)
unsigned createPICLabelUId()
unsigned getDPRCalleeSavedAreaSize() const
bool isLRSpilledForFarJump() const
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...
std::pair< iterator, bool > insert(const std::pair< KeyT, ValueT > &KV)
unsigned getNumAlignedDPRCS2Regs() const
unsigned getArgRegsSaveSize() const
void setDPRCalleeSavedAreaOffset(unsigned o)
void setFramePtrSpillOffset(unsigned o)
unsigned getArgumentStackSize() const
void setDPRCalleeSavedGapSize(unsigned s)
void setShouldRestoreSPFromFP(bool s)
unsigned getReturnRegsCount() const
void setLRIsSpilledForFarJump(bool s)
void setIsSplitCSR(bool s)
bool isThumb1OnlyFunction() const
unsigned getStoredByValParamsPadding() const
iterator find(const_arg_type_t< KeyT > Val)
void setReturnRegsCount(unsigned s)
unsigned getGPRCalleeSavedArea2Offset() const
bool hasStackFrame() const
unsigned getNumPICLabels() const
ARMFunctionInfo()=default
unsigned getDPRCalleeSavedAreaOffset() const
unsigned getFramePtrSpillOffset() const
void setGPRCalleeSavedArea2Size(unsigned s)
void initPICLabelUId(unsigned UId)
SmallPtrSet< const GlobalVariable *, 2 > & getGlobalsPromotedToConstantPool()
void setPromotedConstpoolIncrease(int Sz)
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements...
void setGPRCalleeSavedArea1Size(unsigned s)
void setHasITBlocks(bool h)
void setNumAlignedDPRCS2Regs(unsigned n)
unsigned getGPRCalleeSavedArea1Offset() const
void setArgumentStackSize(unsigned size)
llvm_unreachable("Unknown RegBank!")
void recordCPEClone(unsigned CPIdx, unsigned CPCloneIdx)
void setVarArgsFrameIndex(int Index)
void setHasStackFrame(bool s)
void setGPRCalleeSavedArea1Offset(unsigned o)
void setStoredByValParamsPadding(unsigned p)
ARMFunctionInfo - This class is derived from MachineFunctionInfo and contains private ARM-specific in...
void setArgRegsSaveSize(unsigned s)
unsigned getDPRCalleeSavedGapSize() const
void setDPRCalleeSavedAreaSize(unsigned s)
int getVarArgsFrameIndex() const
unsigned getGPRCalleeSavedArea1Size() const
unsigned getGPRCalleeSavedArea2Size() const
unsigned getOriginalCPIdx(unsigned CloneIdx) const
bool isThumb2Function() const
DenseMap< const MachineBasicBlock *, unsigned >::iterator getCoalescedWeight(MachineBasicBlock *MBB)
bool shouldRestoreSPFromFP() const