summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMMachineFunctionInfo.h
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2014-04-02 16:10:33 +0000
committerOliver Stannard <oliver.stannard@arm.com>2014-04-02 16:10:33 +0000
commitb14c62511191f367f56c02cdf241de8a82d74122 (patch)
tree98f20be6d75e7bdcf5820eade934746f49ab607f /llvm/lib/Target/ARM/ARMMachineFunctionInfo.h
parenta731cf0018a4f9c932bd3efb49d5c50df2fa29ab (diff)
downloadbcm5719-llvm-b14c62511191f367f56c02cdf241de8a82d74122.tar.gz
bcm5719-llvm-b14c62511191f367f56c02cdf241de8a82d74122.zip
ARM: Add support for segmented stacks
Patch by Alex Crichton, ILyoan, Luqman Aden and Svetoslav. llvm-svn: 205430
Diffstat (limited to 'llvm/lib/Target/ARM/ARMMachineFunctionInfo.h')
-rw-r--r--llvm/lib/Target/ARM/ARMMachineFunctionInfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMMachineFunctionInfo.h b/llvm/lib/Target/ARM/ARMMachineFunctionInfo.h
index 216430b4783..d7ec6eba941 100644
--- a/llvm/lib/Target/ARM/ARMMachineFunctionInfo.h
+++ b/llvm/lib/Target/ARM/ARMMachineFunctionInfo.h
@@ -114,6 +114,10 @@ class ARMFunctionInfo : public MachineFunctionInfo {
/// relocation models.
unsigned GlobalBaseReg;
+ /// ArgumentStackSize - amount of bytes on stack consumed by the arguments
+ /// being passed on the stack
+ unsigned ArgumentStackSize;
+
public:
ARMFunctionInfo() :
isThumb(false),
@@ -182,6 +186,9 @@ public:
void setGPRCalleeSavedArea2Size(unsigned s) { GPRCS2Size = s; }
void setDPRCalleeSavedAreaSize(unsigned s) { DPRCSSize = s; }
+ unsigned getArgumentStackSize() const { return ArgumentStackSize; }
+ void setArgumentStackSize(unsigned size) { ArgumentStackSize = size; }
+
unsigned createJumpTableUId() {
return JumpTableUId++;
}
OpenPOWER on IntegriCloud