OSDN Git Service

[PowerPC] Refactor getMinCallFrameSize / getMinCallArgumentsSize
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 23 Jun 2014 14:15:53 +0000 (14:15 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 23 Jun 2014 14:15:53 +0000 (14:15 +0000)
commitb548b6bfc35b6c5b495c2bb8ae983d21c6c325cb
tree4243b539c023559557db56dfc0e7ada9bcd22d7f
parent9a154bfe94213ad7a34025d4e7f54d1f64368a32
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211497 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCFastISel.cpp
lib/Target/PowerPC/PPCFrameLowering.cpp
lib/Target/PowerPC/PPCFrameLowering.h
lib/Target/PowerPC/PPCISelLowering.cpp