Implement the SVR4 ABI for PowerPC.
authorTilmann Scheller <tilmann.scheller@googlemail.com>
Fri, 3 Jul 2009 06:45:56 +0000 (06:45 +0000)
committerTilmann Scheller <tilmann.scheller@googlemail.com>
Fri, 3 Jul 2009 06:45:56 +0000 (06:45 +0000)
commitffd0200abfd63177257f949a3674b91dcf87bf23
treefaefed12c5ff9a01f8fbf006d4e0bf65e3f75105
parent6b61cd185eeb90bec93f042535594132ae1f0f41
Implement the SVR4 ABI for PowerPC.

Implement LowerFORMAL_ARGUMENTS_SVR4().
Implement LowerCALL_SVR4().
Add support for split arguments.
Implement by value parameter passing for aggregates.
Add support for variable argument lists.
Create the spill area for argument registers of variable argument functions no longer at a fixed offset.
Make sure callee saved registers are spilled to the correct stack offsets.
Change allocation order of non-volatile floating-point registers.
Add VRSAVE to the list of callee-saved registers, add CallConvLowering for vararg calls.
Add support for variable argument calls with Vector arguments.
Add support for VR and VRSAVE save area, improve allocation order for non-volatile vector registers.
Stop creating illegal i8 values in LowerVASTART().
Add memory access width hints.
Make sure to reserve space on the stack for the frame pointer.
When using the SVR4 ABI, reserve r13 for the Small Data Area pointer.
Assure that the frame pointer is spilled to the correct location on the stack.
Some FP registers were not marked as volatile.
Make sure the i64 words from a long double are passed either both in registers or both on the stack.
Only put integer arguments in registers which are not marked with the inreg flag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74765 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetCallingConv.td
lib/Target/PowerPC/PPCCallingConv.td
lib/Target/PowerPC/PPCFrameInfo.h
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
lib/Target/PowerPC/PPCInstrInfo.td
lib/Target/PowerPC/PPCRegisterInfo.cpp
lib/Target/PowerPC/PPCRegisterInfo.h
lib/Target/PowerPC/PPCRegisterInfo.td