summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86MachineFunctionInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/X86/X86MachineFunctionInfo.h')
-rw-r--r--llvm/lib/Target/X86/X86MachineFunctionInfo.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86MachineFunctionInfo.h b/llvm/lib/Target/X86/X86MachineFunctionInfo.h
index d7e535598d8..a160f618b23 100644
--- a/llvm/lib/Target/X86/X86MachineFunctionInfo.h
+++ b/llvm/lib/Target/X86/X86MachineFunctionInfo.h
@@ -40,6 +40,14 @@ class X86MachineFunctionInfo : public MachineFunctionInfo {
/// stack frame in bytes.
unsigned CalleeSavedFrameSize = 0;
+ /// CalleeSavedXMMFrameSize - Size of the callee-saved XMM register portion
+ /// of the stack frame in bytes.
+ unsigned CalleeSavedXMMFrameSize = 0;
+
+ /// CalleeSavedXMMFrameOrigin - Origin slot of the callee-saved XMM register
+ /// portion of the stack frame.
+ int CalleeSavedXMMFrameOrigin = 0;
+
/// BytesToPopOnReturn - Number of bytes function pops on return (in addition
/// to the space used by the return address).
/// Used on windows platform for stdcall & fastcall name decoration
@@ -123,6 +131,11 @@ public:
unsigned getCalleeSavedFrameSize() const { return CalleeSavedFrameSize; }
void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; }
+ unsigned getCalleeSavedXMMFrameInfo(int &origin) const
+ { origin = CalleeSavedXMMFrameOrigin; return CalleeSavedXMMFrameSize; }
+ void setCalleeSavedXMMFrameInfo(unsigned size, int origin)
+ { CalleeSavedXMMFrameSize = size; CalleeSavedXMMFrameOrigin = origin; }
+
unsigned getBytesToPopOnReturn() const { return BytesToPopOnReturn; }
void setBytesToPopOnReturn (unsigned bytes) { BytesToPopOnReturn = bytes;}
OpenPOWER on IntegriCloud