llvm-6502/lib
Bob Wilson 0035f9c3b9 pr4926: ARM requires the stack pointer to be aligned, even for leaf functions.
For the AAPCS ABI, SP must always be 4-byte aligned, and at any "public
interface" it must be 8-byte aligned.  For the older ARM APCS ABI, the stack
alignment is just always 4 bytes.  For X86, we currently align SP at
entry to a function (e.g., to 16 bytes for Darwin), but no stack alignment
is needed at other times, such as for a leaf function.

After discussing this with Dan, I decided to go with the approach of adding
a new "TransientStackAlignment" field to TargetFrameInfo.  This value
specifies the stack alignment that must be maintained even in between calls.
It defaults to 1 except for ARM, where it is 4.  (Some other targets may
also want to set this if they have similar stack requirements. It's not
currently required for PPC because it sets targetHandlesStackFrameRounding
and handles the alignment in target-specific code.) The existing StackAlignment
value specifies the alignment upon entry to a function, which is how we've
been using it anyway.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82767 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-25 14:41:49 +00:00
..
Analysis No need to verify that malloc's return type is i8*. 2009-09-22 18:50:03 +00:00
Archive Prune #includes from llvm/Linker.h and llvm/System/Path.h, 2009-08-23 22:45:37 +00:00
AsmParser Auto-upgrade malloc instructions to malloc calls. 2009-09-24 17:47:49 +00:00
Bitcode Auto-upgrade malloc instructions to malloc calls. 2009-09-24 17:47:49 +00:00
CodeGen pr4926: ARM requires the stack pointer to be aligned, even for leaf functions. 2009-09-25 14:41:49 +00:00
CompilerDriver convert LoopInfo.h and GraphWriter.h to use raw_ostream 2009-08-23 07:19:13 +00:00
Debugger Prune #includes from llvm/Linker.h and llvm/System/Path.h, 2009-08-23 22:45:37 +00:00
ExecutionEngine Fix a struct/class mismatch. 2009-09-23 11:48:57 +00:00
Linker Remove unnecessary #include. 2009-09-12 22:24:25 +00:00
MC eliminate a use of strtoul. 2009-09-20 06:58:54 +00:00
Support add and document regex support for FileCheck. You can now do stuff like: 2009-09-24 21:47:32 +00:00
System ... missed hiding a variable for MSVC only. 2009-09-22 16:10:35 +00:00
Target pr4926: ARM requires the stack pointer to be aligned, even for leaf functions. 2009-09-25 14:41:49 +00:00
Transforms Constant propagating byval pointer is safe if function is readonly. 2009-09-24 18:33:42 +00:00
VMCore Auto-upgrade malloc instructions to malloc calls. 2009-09-24 17:47:49 +00:00
Makefile