llvm-6502/lib
Ulrich Weigand 675c967d55 [PowerPC] Refactor byval handling in LowerFormalArguments_64SVR4
When handling an incoming byval argument, we need to possibly write
incoming registers to the stack in order to create an on-stack image
of the parameter, so we can return its address to common code.

This currently uses CreateFixedObject to access the parts of the
parameter save area where the argument is (or needs to be) stored.
However, sometimes we need to access multiple parts of that area,
e.g. to write multiple registers.  The code currently uses a new
CreateFixedObject call for each of these accesses, resulting in
a patchwork of overlapping (fixed) stack objects.

This doesn't really matter in the case of fixed objects, since
any access to those turns into a fixed stackpointer + offset
address anyway.  However, with the upcoming ELFv2 patches, we
may actually need to place an incoming argument into our *own*
stack frame instead of the caller's.  This means we need to use
CreateStackObject instead, and we cannot have multiple overlapping
instances of those.

To make the rest of the argument handling code work equally in
both situations, this patch refactors it to always use just a
single call to CreateFixedObject, and access parts of that object
as required using address arithmetic.  This way, we can in a future
patch substitute CreateStackObject without further changes.

No change to generated code intended.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213483 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-20 22:36:52 +00:00
..
Analysis Remove braces around single-statement block and rangify outer loop. 2014-07-20 09:20:47 +00:00
AsmParser
Bitcode
CodeGen MachineRegionInfo.cpp: Another fix on MachineRegionInfo::MachineRegionInfo::recalculate() to appease msc17. 2014-07-20 11:14:55 +00:00
DebugInfo
ExecutionEngine [MCJIT] Add a 'decodeAddend' method to RuntimeDyldMachO and teach 2014-07-19 00:19:17 +00:00
IR [C++11] Add predecessors(BasicBlock *) / successors(BasicBlock *) iterator ranges. 2014-07-20 09:10:11 +00:00
IRReader
LineEditor
Linker
LTO MergedLoadStoreMotion pass 2014-07-18 19:13:09 +00:00
MC MC: permit emitting a symbol value as section relative 2014-07-19 21:01:58 +00:00
Object Namespace cleanup (no functional change) 2014-07-20 12:08:28 +00:00
Option
ProfileData
Support Remove uses of the redundant ".reset(nullptr)" of unique_ptr, in favor of ".reset()" 2014-07-19 01:05:11 +00:00
TableGen
Target [PowerPC] Refactor byval handling in LowerFormalArguments_64SVR4 2014-07-20 22:36:52 +00:00
Transforms [C++11] Add predecessors(BasicBlock *) / successors(BasicBlock *) iterator ranges. 2014-07-20 09:10:11 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile