X-Git-Url: https://git.ti.com/gitweb?p=opencl%2Fllvm.git;a=blobdiff_plain;f=lib%2FTarget%2FXCore%2FXCoreMachineFunctionInfo.h;h=afbec6528511a7e9487c3cd3d82d4dfbe0b42323;hp=f1777a87e114171cd318d11c407eb1e0eb218210;hb=cc331c8f40107934b4bfa36d3646126bc0c4a412;hpb=870d997d8cd300b266e3157cddda357a80d702d5 diff --git a/lib/Target/XCore/XCoreMachineFunctionInfo.h b/lib/Target/XCore/XCoreMachineFunctionInfo.h index f1777a87e1..afbec65285 100644 --- a/lib/Target/XCore/XCoreMachineFunctionInfo.h +++ b/lib/Target/XCore/XCoreMachineFunctionInfo.h @@ -33,6 +33,8 @@ class XCoreFunctionInfo : public MachineFunctionInfo { int FPSpillSlot; bool EHSpillSlotSet; int EHSpillSlot[2]; + unsigned ReturnStackOffset; + bool ReturnStackOffsetSet; int VarArgsFrameIndex; mutable int CachedEStackSize; std::vector > SpillLabels; @@ -42,6 +44,7 @@ public: LRSpillSlotSet(false), FPSpillSlotSet(false), EHSpillSlotSet(false), + ReturnStackOffsetSet(false), VarArgsFrameIndex(0), CachedEStackSize(-1) {} @@ -49,6 +52,7 @@ public: LRSpillSlotSet(false), FPSpillSlotSet(false), EHSpillSlotSet(false), + ReturnStackOffsetSet(false), VarArgsFrameIndex(0), CachedEStackSize(-1) {} @@ -78,6 +82,17 @@ public: return EHSpillSlot; } + void setReturnStackOffset(unsigned value) { + assert(!ReturnStackOffsetSet && "Return stack offset set twice"); + ReturnStackOffset = value; + ReturnStackOffsetSet = true; + } + + unsigned getReturnStackOffset() const { + assert(ReturnStackOffsetSet && "Return stack offset not set"); + return ReturnStackOffset; + } + bool isLargeFrame(const MachineFunction &MF) const; std::vector > &getSpillLabels() {