summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCFrameLowering.h
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2014-06-23 14:15:53 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2014-06-23 14:15:53 +0000
commit8ca988f31afb8f9b779963e8fabfbe336b865d2c (patch)
tree45781ac6da1b8a6c1a63450bac5c5f5fc31f2869 /llvm/lib/Target/PowerPC/PPCFrameLowering.h
parentbfdb1c0c2f81f57dc5ebeb8671735c4028589ece (diff)
downloadbcm5719-llvm-8ca988f31afb8f9b779963e8fabfbe336b865d2c.tar.gz
bcm5719-llvm-8ca988f31afb8f9b779963e8fabfbe336b865d2c.zip
[PowerPC] Refactor getMinCallFrameSize / getMinCallArgumentsSize
As of r211495, the only remaining users of getMinCallFrameSize are in core ABI code (LowerFormalParameter / LowerCall). This is actually a good thing, since the details of the parameter save area are ABI specific. With the new ELFv2 ABI in particular, the rules defining the size of the save area will become significantly more complex, so it wouldn't make sense to implement those outside ABI code that has all required information. In preparation, this patch eliminates the getMinCallFrameSize (and associated getMinCallArgumentsSize) routines, and inlines them into all callers. Note that since nearly all call arguments are constant, this allows simplifying the inlined copies to a single line everywhere. No change in generate code expected. llvm-svn: 211497
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCFrameLowering.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCFrameLowering.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCFrameLowering.h b/llvm/lib/Target/PowerPC/PPCFrameLowering.h
index ca1ca56d08f..7a226f74e08 100644
--- a/llvm/lib/Target/PowerPC/PPCFrameLowering.h
+++ b/llvm/lib/Target/PowerPC/PPCFrameLowering.h
@@ -115,12 +115,8 @@ public:
return 8;
}
- /// getMinCallArgumentsSize - Return the size of the minium PowerPC ABI
- /// argument area.
- static unsigned getMinCallArgumentsSize(bool isPPC64, bool isDarwinABI);
const SpillSlot *
getCalleeSavedSpillSlots(unsigned &NumEntries) const override;
- static unsigned getMinCallFrameSize(bool isPPC64, bool isDarwinABI);
};
} // End llvm namespace
OpenPOWER on IntegriCloud