13 #ifndef LLVM_LIB_TARGET_XCORE_XCOREMACHINEFUNCTIONINFO_H 14 #define LLVM_LIB_TARGET_XCORE_XCOREMACHINEFUNCTIONINFO_H 28 bool LRSpillSlotSet =
false;
30 bool FPSpillSlotSet =
false;
32 bool EHSpillSlotSet =
false;
34 unsigned ReturnStackOffset;
35 bool ReturnStackOffsetSet =
false;
36 int VarArgsFrameIndex = 0;
37 mutable int CachedEStackSize = -1;
38 std::vector<std::pair<MachineBasicBlock::iterator, CalleeSavedInfo>>
41 virtual void anchor();
56 assert(LRSpillSlotSet &&
"LR Spill slot not set");
63 assert(FPSpillSlotSet &&
"FP Spill slot not set");
70 assert(EHSpillSlotSet &&
"EH Spill slot not set");
75 assert(!ReturnStackOffsetSet &&
"Return stack offset set twice");
76 ReturnStackOffset = value;
77 ReturnStackOffsetSet =
true;
81 assert(ReturnStackOffsetSet &&
"Return stack offset not set");
82 return ReturnStackOffset;
87 std::vector<std::pair<MachineBasicBlock::iterator, CalleeSavedInfo>> &
95 #endif // LLVM_LIB_TARGET_XCORE_XCOREMACHINEFUNCTIONINFO_H int createLRSpillSlot(MachineFunction &MF)
void setVarArgsFrameIndex(int off)
This class represents lattice values for constants.
~XCoreFunctionInfo() override=default
unsigned getReturnStackOffset() const
std::vector< std::pair< MachineBasicBlock::iterator, CalleeSavedInfo > > & getSpillLabels()
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...
XCoreFunctionInfo()=default
void setReturnStackOffset(unsigned value)
int createFPSpillSlot(MachineFunction &MF)
const int * createEHSpillSlot(MachineFunction &MF)
XCoreFunctionInfo - This class is derived from MachineFunction private XCore target-specific informat...
int getLRSpillSlot() const
XCoreFunctionInfo(MachineFunction &MF)
const int * getEHSpillSlot() const
int getVarArgsFrameIndex() const
bool isLargeFrame(const MachineFunction &MF) const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
int getFPSpillSlot() const